VirtualBox Installation and Configuration on Fedora Linux

This brief how-to  explains how to install Oracle VirtualBox and Oracle Extension pack on Fedora Linux and convert VMware VMDK virtual disk to VirtualBox VDI disk. Finally, we discuss conversion of a normal VDI disk type to multiattach VDI type.

VirtualBox Installation

1. Add Oracle VirtualBox Repository

sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -P /etc/yum.repos.d

2. Install VirtualBox Dependencies

sudo yum install gcc kernel-devel kernel-headers dkms.noarch xdotool

3. Install Oracle VirtualBox

sudo yum install VirtualBox-5.0

4. Download and Install Oracle Extension Pack

The Oracle VirtualBox extension pack extends functionality of VirtualBox for USB 2.0 and VirtualBox Remote Desktop Protocol (VRDP) support. First, download an extension pack.

$ wget http://download.virtualbox.org/virtualbox/$(vboxmanage --version | cut -d 'r' -f1)/Oracle_VM_VirtualBox_Extension_Pack-`echo $(vboxmanage --version | cut -d 'r' -f1)-$(vboxmanage --version | cut -d 'r' -f2)`.vbox-extpack

Now, we can install the pack with the command.

$ sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-`echo $(vboxmanage --version | cut -d 'r' -f1)-$(vboxmanage --version | cut -d 'r' -f2)`.vbox-extpack

5. Add Existing User to Vboxusers Group

During the VirtualBox installation, the group vboxusers is created. Any system user who is going to use USB device from VirtualBox guest must be member of this group. The following command adds an actual user to the vboxusers if is not a memmber of group.

sudo usermod -a -G vboxusers $(whoami)

Note that adding an active user to that group will require that user to log out and back in again.

6. Convert VMware VMDK Disk to VirtualBox VDI Disk Type

$ vboxmanage clonehd -format VDI ./all-in-one-VM-1.3.0.181-disk1.vmdk all-in-one-VM-1.3.0.181-disk1.vdi

7. Convert VDI Normal Hard Disk to Multiattach Disk Type

If we want to a one VDI disk to be used by several VirtualBox machines simultaneously we have to convert a normal VDI disk type to a multiattach disk type.

vboxmanage modifyhd all-in-one-VM-1.3.0.181-disk1.vdi -type multiattach

We can show info about hard disk image with following command:

$ vboxmanage showhdinfo all-in-one-VM-1.3.0.181-disk1.vdi

Picture1-Info_about_VDI

Picture 1 - Getting Info About VDI Virtual Disk

Please notice that the disk is  multiattach type now.

End.

4 thoughts on “VirtualBox Installation and Configuration on Fedora Linux

Leave a comment

Your email address will not be published. Required fields are marked *