ლ(ಠ益ಠლ)

Fedora 21: VirtualBox 4.3.20 - Install Guest Additions for Seamless Mode

After deploying a new Fedora 21 virtual machine within VirtualBox on my development workstation, I observed that I did not have the option to enter “Seamless Mode” (offered by VirtualBox).

It’s necessary to install the Guest Additions manually.

WARNING, do not proceed if there are pending kernel packages pending installation. Make sure you’re up-to-date. On Fedora 21, this can be accomplished by:

1
$ sudo yum --disableexcludes=all check-update | grep kernel

If you see any packages returned, update your system:

1
$ sudo yum --disableexcludes=all update

Restart the virtual machine to boot from the new kernel:

1
$ sudo reboot

Mount the VirtualBox Guest Additions on the VirtualBox hypervisor tool-bar menu, by clicking “Devices” and then “Insert Guest Additions CD Image…”.

You should see the Guest Additions has been mounted, to confirm:

1
2
$ sudo mount | grep -i vbox
/dev/sr0 on /run/media/user/VBOXADDITIONS_4.3.20_96996 type iso9660 (ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)

Add “KERN_DIR” environment variable:

1
2
$ KERN_DIR=/usr/src/kernels/`uname -r`
$ export KERN_DIR

Confirm new “KERN_DIR” environment variable has been set:

1
2
$ echo $KERN_DIR
/usr/src/kernels/3.18.5-201.fc21.x86_64

Proceed with installation:

1
2
$ cd /run/media/user/VBOXADDITIONS_4.3.20_96996/
$ sudo ./VBoxLinuxAdditions.run

You should see the following:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.20 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules     [  OK  ]
Doing non-kernel setup of the Guest Additions              [  OK  ]
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.16 modules                       [  OK  ]
Setting up the Window System to use the Guest Additions    [  OK  ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services component[  OK  ]

Restart the virtual machine:

1
$ sudo reboot

Comments