Edit Info Other
Login

VirtualBox"

Differences between revisions 1 and 13 (spanning 12 versions)
Revision 1 as of 2016-03-04 05:59:40
Size: 1352
Comment:
Revision 13 as of 2016-04-02 01:15:11
Size: 3433
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Describe Howto/VirtualBox here. The goal is have a place with all information that is FAQ.
Line 8: Line 8:
Please do: 

    dnf install VirtualBox kernel-devel-$(uname -r)  akmod-VirtualBox
Please do:
{{{
    dnf install VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
Line 14: Line 14:

result: 
}}}
result:
{{{
Line 24: Line 24:
}}}

== Sign kernel modules to work with secure boot ==

To sign kernel modules to make work with secure boot, this 2 posts are a good reference, I haven't test my self:

http://stackoverflow.com/questions/29480176/how-to-install-virtualbox-on-linux-secure-boot-systems-bash-script

https://ask.fedoraproject.org/en/question/34470/virtual-box-on-fedora-19-fails-to-start-a-vm/

or google for "virtualbox fedora secure boot" ,

== Install VirtualBox_Extension_Pack ==

1- if you don't need usb or just for testing , go to setting usb and disable
usb , for that you have to have vm machine off .

2 - with firefox click here :
http://download.virtualbox.org/virtualbox/5.0.14/Oracle_VM_VirtualBox_Extension_Pack-5.0.14.vbox-extpack
firefox should ask if you want install with vbox something , say yes

3 - after try file -> check for updates , also should install the correct
extpackage

if this doesn't do nothing because you install a superior version

rm -rf /usr/lib64/virtualbox/ExtensionPacks/Oracle_VM_!VirtualBox_Extension_Pack
as root , and repeat items 2 and 3

anyway , you should use file -> check for updates to update extension pack

== Upgrade VirtualBox version without reboot ==

On upgrade VirtualBox for a new release, we need remove kernel modules loaded and load new ones (for the new release).

{{{
    dnf update VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
    # User is advised to run this after upgrades
    /sbin/modprobe -r -b vboxnetflt &>/dev/null ||:
    /sbin/modprobe -r -b vboxnetadp &>/dev/null ||:
    /sbin/modprobe -r -b vboxdrv &>/dev/null ||:
    akmods
    systemctl restart systemd-modules-load.service
    dmesg | grep -i vbox
}}}

== Fedora as a Virtual Machine ==

Install VirtualBox-guest.
VirtualBox-guest replaces VBoxGuestAdditions for Fedora itself, VirtualBox-guest is just to install in a vm guest system, You can't install VirtualBox-guest in a host system. . Therefore VirtualBox-guest conflicts with VirtualBox by design.

RPMFusion doesn't provide VBoxGuestAdditions for others OS , you have to download it , you have a button for that in VirtualBox, vm manager menu.
{{{
    dnf update VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
    # User is advised to run this after upgrades
    /sbin/modprobe -r -b vboxnetflt &>/dev/null ||:
    /sbin/modprobe -r -b vboxnetadp &>/dev/null ||:
    /sbin/modprobe -r -b vboxdrv &>/dev/null ||:
    akmods
    systemctl restart systemd-modules-load.service
    dmesg | grep -i vbox
}}}
Line 26: Line 88:
if you want try VirtualBox 5 you may enable my copr repo

    dnf copr enable sergiomb/vboxfor23

https://copr.fedorainfracloud.org/coprs/sergiomb/vboxfor23/

To sign kernel modules to make work with secure boot, this 2 posts are a good reference , I haven't test my self:
 
http://stackoverflow.com/questions/29480176/how-to-install-virtualbox-on-linux-secure-boot-systems-bash-script
https://ask.fedoraproject.org/en/question/34470/virtual-box-on-fedora-19-fails-to-start-a-vm/

or google for "virtualbox secure boot" ,
----
CategoryHowto

About this Howto

The goal is have a place with all information that is FAQ.

Quick install

Please do:

    dnf install VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
    akmods
    systemctl restart systemd-modules-load.service
    dmesg | grep -i vbox

result:

    [ 2870.556703] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
    [ 2870.565213] vboxdrv: Found 2 processor cores
    [ 2870.571315] vboxdrv: fAsync=0 offMin=0x1c2 offMax=0xa5f
    [ 2870.671515] vboxdrv: TSC mode is Synchronous, tentative frequency 3000795689 Hz
    [ 2870.671519] vboxdrv: Successfully loaded version 5.0.6_ (interface 0x00240000)
    [ 2870.671946] VBoxNetFlt: Successfully started.
    [ 2870.672227] VBoxNetAdp: Successfully started.

Sign kernel modules to work with secure boot

To sign kernel modules to make work with secure boot, this 2 posts are a good reference, I haven't test my self:

http://stackoverflow.com/questions/29480176/how-to-install-virtualbox-on-linux-secure-boot-systems-bash-script

https://ask.fedoraproject.org/en/question/34470/virtual-box-on-fedora-19-fails-to-start-a-vm/

or google for "virtualbox fedora secure boot" ,

Install VirtualBox_Extension_Pack

1- if you don't need usb or just for testing , go to setting usb and disable usb , for that you have to have vm machine off .

2 - with firefox click here : http://download.virtualbox.org/virtualbox/5.0.14/Oracle_VM_VirtualBox_Extension_Pack-5.0.14.vbox-extpack firefox should ask if you want install with vbox something , say yes

3 - after try file -> check for updates , also should install the correct extpackage

if this doesn't do nothing because you install a superior version

rm -rf /usr/lib64/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack as root , and repeat items 2 and 3

anyway , you should use file -> check for updates to update extension pack

Upgrade VirtualBox version without reboot

On upgrade VirtualBox for a new release, we need remove kernel modules loaded and load new ones (for the new release).

    dnf update VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
    # User is advised to run this after upgrades
    /sbin/modprobe -r -b vboxnetflt &>/dev/null ||:
    /sbin/modprobe -r -b vboxnetadp &>/dev/null ||:
    /sbin/modprobe -r -b vboxdrv &>/dev/null ||:
    akmods
    systemctl restart systemd-modules-load.service
    dmesg | grep -i vbox

Fedora as a Virtual Machine

Install VirtualBox-guest. VirtualBox-guest replaces VBoxGuestAdditions for Fedora itself, VirtualBox-guest is just to install in a vm guest system, You can't install VirtualBox-guest in a host system. . Therefore VirtualBox-guest conflicts with VirtualBox by design.

RPMFusion doesn't provide VBoxGuestAdditions for others OS , you have to download it , you have a button for that in VirtualBox, vm manager menu.

    dnf update VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
    # User is advised to run this after upgrades
    /sbin/modprobe -r -b vboxnetflt &>/dev/null ||:
    /sbin/modprobe -r -b vboxnetadp &>/dev/null ||:
    /sbin/modprobe -r -b vboxdrv &>/dev/null ||:
    akmods
    systemctl restart systemd-modules-load.service
    dmesg | grep -i vbox


CategoryHowto

Howto/VirtualBox (last edited 2024-03-28 19:38:02 by Sérgio Basto)