How to update VirtualBox guest add-ons in a virtual machine?

I have the latest version of VirtualBox installed on my desktop (4.3.4).

I use Vagrant to start a virtual machine based on the 64-bit block of Ubuntu 12.04 LTS example:

http://files.vagrantup.com/precise64.box

Every time I run vagrant up , I get the following warning:

 The guest additions on this VM do not match the installed version of VirtualBox! In most cases this is fine, but in rare cases it can cause things such as shared folders to not work properly. If you see shared folder errors, please update the guest additions within the virtual machine and reload your VM. Guest Additions Version: 4.2.0 VirtualBox Version: 4.3 

I have googled, but I can not find a way to upgrade to Guest Additions v4.3. The latest version is in the Ubuntu repository for the exact version 4.1, and there is no download link on the official VirtualBox download page.

+43
vagrant ubuntu virtualbox
Dec 01 '13 at 4:42
source share
3 answers

You can check the following plugin, it should meet your needs:

https://github.com/dotless-de/vagrant-vbguest

For strollers ≥ 1.1

vagrant plugin install vagrant-vbguest

Vagrant 1.0 and later

vagrant gem install vagrant-vbguest

+51
Dec 01 '13 at 9:37
source share

Existing VM

Check host version and guest version:

 vagrant vbguest --status 

or for a specific virtual machine:

 VBoxManage guestproperty get <UUID> /VirtualBox/GuestAdd/Version 

where <UUID> can be found through VBoxManage list vms .

Then try updating your guest add-ons:

 VBoxManage guestcontrol <uuid/vmname> updatega|updateguestadditions|updateadditions 

or by installing it again in VM:

 vagrant vbguest --do install 

Alternatively, install the version recorded in the VBox using:

 /Applications/VirtualBox.app/Contents/MacOS/VBoxManage guestproperty set "new_version" /VirtualBox/GuestAdd/Version 

Note: change new_version to right

To remove the guets add-on in VM ( vagrant ssh ), follow these steps:

 /opt/VirtualBoxGuestAdditions/uninstall.sh rm -rf /tmp/Virtualbox; sudo reboot; 

To install it again:

 VAGRANT_LOG=info vagrant vbguest --do install 

Finally, repeat the check: vagrant vbguest --status .

Source: Problems uninstalling and updating add-ons using Virtualbox 4.3 # 95 on GitHub




New virtual machines

If the above warning does not help, and this mismatch occurs for all new virtual machines, you need to either update VirtualBox or download the ISO VBoxGuestAdditions file from the VirtualBox website (with the correct version, so they can match) and replace it manually.

On OS X, this is in /Applications/VirtualBox.app/Contents/MacOS , so the command will be:

 sudo wget -O /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso http://download.virtualbox.org/virtualbox/5.0.14/VBoxGuestAdditions_5.0.14.iso 

where the version of VBoxGuestAdditions should match the installed VirtualBox binaries.

Consider also the Vagrant update, if it was installed via Homebrew, try:

 brew cask update brew install Caskroom/cask/vagrant # Or: brew cask install Caskroom/cask/vagrant 



New virtual machines (with existing Vagrantfile )

If this is the beginning for new virtual machines with an existing Vagrantfile that worked earlier, the problem may be loading metadata for your field (for example, the window was removed from your provider, for example Atlas ), and this may lead to the default settings being rejected, therefore make sure your config.vm.box in your Vagrantfile points to a valid VM box or you have temporary network problems.




For more information and troubleshooting, check out: Microsoft's VMware VirtualBox User Guide.

+5
Feb 28 '16 at 3:52
source share

Here you can download the Official 4.3.8 VBox ISO Guest Extras:

http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_4.3.8.iso

+2
Nov 19 '14 at 18:28
source share



All Articles