vagrantとvirtualboxでguest additionsのバージョンが合わない

SSD換装もして快適になってきたので、今度は開発環境の整備。

vagrantvirtualboxでUbuntu16.04の環境を作ってみたら以下のメッセージ。

virtualboxが新しいのかな。

==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 5.0.40
default: VirtualBox Version: 5.1 

 

vagrant up しても、virtualbox マネージャ上の表示は電源オフのまま。なんで?

virtualbox マネージャでCDデバイス追加した後でvagrant upしてもデバイス無いと言われる。なんで?

 

Guest Additionsのバージョンが合ってないから??

う~む。

 

追記

vagrant-vbguestというプラグイン使うと簡単にアップデートできた。

でもvirtualboxマネージャーでCDデバイス追加してもvagrantで起動した仮想マシンにはなかったのなんでだろ。