vagrant で共有フォルダが共有されない?

症状


[syamamura@s11-chef vagrant_vm]$ vagrant up
[default] Importing base box 'base'...
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.2.8
VirtualBox Version: 4.2.10

対処

Guest Additions と VirtualBox のバージョンを合わせる。
$ vagrant ssh
[vagrant@default ]$ cd
[vagrant@default ~]$ wget http://download.virtualbox.org/virtualbox/4.2.10/VBoxGuestAdditions_4.2.10.iso
[vagrant@default ~]$ sudo umount /mnt
[vagrant@default ~]$ sudo mount VBoxGuestAdditions_4.2.10.iso -o loop /mnt
[vagrant@default ~]$ sudo sh /mnt/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.

Do you wish to continue anyway? [yes or no]
yes
Removing existing VirtualBox DKMS kernel modules              [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Removing existing VirtualBox DKMS kernel modules             [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                          [  OK  ]
Building the shared folder support module                          [  OK  ]
Building the OpenGL support module                                [失敗]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions                   [  OK  ]
Installing the Window System drivers                                 [失敗]
(Could not find the X.Org or XFree86 Window System.) 

参考

Vagrant upで"The Guest Additions on This VM Do Not Match the Install Version of VirtualBox!"と言われた時の対策

追記

カスタマイズしたマイISOを作った方がいい。

コメント

このブログの人気の投稿

AppSheet の Data Source に Heroku Postgres を追加したい