

Installing Required Build Tools on the Ubuntu VM:

In this article, I am going to show you how to install VirtualBox Guest Additions on your Ubuntu VM.

You no longer need to press the Host key (usually Right key). Mouse pointer integration: You can move in and move out of the VM freely.VirtualBox Guest Additions allows you to use the following features of VirtualBox: Because of the vbguest check happens during the early stages of booting the box, the direct check is not yet possible and VirtualBox returns the stored / older / calculated / fallback version, hence the mismatch.If you’re using VirtualBox for virtualization, then VirtualBox Guest Additions is a must have tool for you. My verdict: Virtualbox somehow stores what version the box is first brought up with or falls back to some kind of default or whatever, and only if possible checks the correct version directly in the box itself. About 10 seconds after the box is completely up again, the left terminal will show the correct version again (5.0.14 in my case).During the vbguest check, the version returned by the left terminal is still 4.2.0, hence the whole Virtualbox claims this and VBoxService claims that thing.During reload, the left terminal starts showing a older version again, 4.2.0 in my case.In the right terminal, type vagrant reload.Now watch this command: watch -n1 vboxmanage guestproperty get /VirtualBox/GuestAdd/Version.See that this shows the correct version, in my case 5.0.14.In the left one, type the vboxmanage guestproperty get /VirtualBox/GuestAdd/Version command.I have the same problem on a lot of my vagrant boxes. I then have to run the following script to get it back again because every watch script and just about every bit of networking code that uses some 3rd party service goes completely haywire: Things like shared folders appear to work OK, but the date/time keeps going completely out of sync (by hours and days) even though I'm running ntpd. This doesn't seem possible, because my VirtualBox claims top be 4.3.14 in the "VirtualBox -> About VirtualBox" dialog. => default: Checking for guest additions in VM. GuestAdditions seems to be installed (4.3.14) correctly, but not running.

Going on, assuming VBoxService is correct. Got different reports about installed GuestAdditions version:
