15

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?

Frederic Henri
  • 51,761
  • 10
  • 113
  • 139
Polly
  • 637
  • 3
  • 12
  • 25

2 Answers2

16

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

Frederic Henri
  • 51,761
  • 10
  • 113
  • 139
1

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.

kenorb
  • 155,785
  • 88
  • 678
  • 743