Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GuestAdditions version mismatch

when I use this command:

vagrant up

I obtain this error:

[machine1] GuestAdditions versions on your host (4.3.36) and guest (5.0.10) do not match.

how can I update guest addition from ubuntu shell?

like image 319
Polly Avatar asked Jun 24 '16 09:06

Polly


2 Answers

Use the vagrant vbguest plugin

Install the plugin:

vagrant plugin install vagrant-vbguest 

Let vagrant up it will install the virtual box client if needed. If you want to force the installation you can run vagrant vbguest --do install

like image 106
Frederic Henri Avatar answered Oct 22 '22 11:10

Frederic Henri


You need to upgrade your VBoxGuestAdditions ISO either by:

  • installing/upgrading the package by running:

    sudo apt-get install virtualbox-guest-additions-iso
    
  • or by downloading ISO file from this Downloads page.

    Example for macOS:

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

    where version of VBoxGuestAdditions (5.0.10) should match installed VirtualBox binaries.

    See: How to upgrade to VirtualBox Guest Additions?


Consider also upgrading your VM box by:

vagrant box update

For Linux Ubuntu, also check this page: Setting up VirtualBox Guest Additions.

like image 29
kenorb Avatar answered Oct 22 '22 13:10

kenorb