GuestAdditions version mismatch

时光总嘲笑我的痴心妄想 提交于 2020-01-02 03:11:54

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/38010519/guestadditions-version-mismatch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!