6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vagrantでguest additionsエラー

Posted at

vagrant boxにubuntuを追加してvagrant sshしたところ、
以下のエラーが出力された

$ vagrant ssh
・・・
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.3.10
VirtualBox Version: 4.2

Virtual Boxをアップデートして、バージョンを一致させる
https://www.virtualbox.org/wiki/Downloads から
欲しいバージョン(今回は4.3.10)をダウンロード・インストール

アップデート後に再挑戦したら、
今のvagrantバージョンではVirtual Box4.3.10には対応してないと怒られた

$ vagrant up
Vagrant has detected that you have a version of VirtualBox installed
that is not supported. Please install one of the supported versions
listed below to use Vagrant:

4.0, 4.1, 4.2

ちなみに今のvagrantバージョン

$ vagrant -v

Vagrant 1.3.1

http://pxp-ss.hatenablog.com/entry/2013/10/31/020025 によると
1.3.5なら対応しているらしいのでダウンロード・インストール

成功!と思いきや、再びエラー

$ vagrant up
・・・
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.16
VirtualBox Version: 4.3

結局Guest Additionsも上げないとダメっぽい
ここを参考にアップデート

$ vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.10.0)'!

$ vagrant vbguest

$ vagrant vbguest --status
GuestAdditions 4.3.10 running --- OK.
GuestAdditions 4.3.10 running --- OK.

これでエラーが出なくなった(∩´∀`)∩ワーイ

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?