vagrant up時カーネルの違いでコケるときの対応


virtual box vagrant
5.0.14 1.7.4

vagrant up で失敗する(つらい)

1.vagrant up時にバーっと流れる文の中にこれがこっそり出てる。。。

An error occurred during installation of VirtualBox Guest Additions 5.0.14. Some functionality may not work as intended. In most cases it is OK that the "Window System drivers" installation failed. Restarting VM to apply changes..

[vagrant@vagrant-centos65 ~]$ sudo vagrant plugin install vagrant-vbguest
このプラグインでGuest Addtionsを合わせることで解決します。

2.vagrant up時下記のエラー分が出る場合
GuestAdditions versions on your host (5.0.14) and guest (4.3.10) do not match.

[vagrant@vagrant-centos65 ~]$ sudo yum update --exclude=centos*
[vagrant@vagrant-centos65 ~]$ sudo yum install

このときに --exclude=centos*が入ってないとOSのバージョンまで上がってしまうため注意が必要です。。。

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.