質問: osx-virtualboxv5.2-vagrantはvirtualbox共有フォルダーをマウントできませんでした 間に vagrant up新しいクエストの追加がインストールされます virtualbox guest additions5.2.0のインストール-ゲストバージョンは5.1.30です しかし、それはこのエラーを示しています: virtualbox guest additions5.2.0のインストール中にエラーが発生しました。一部の機能が意図したとおりに機能しない場合があります。ほとんどの場合、「ウィンドウシステムドライバ」のインストールが失敗しても問題ありません。 問題を解決する方法は?次の設定を使用します。 mac os-xsierraバージョン10.12.6 virtualboxバージョン5.2.0r118431(qt5.6.3) vagrantバージョン2.0.0 これらの詳細も参照してください$ vagrant --version vagrant 2.0.0 $ vagrant plugin list vagrant-aws (0.7.2) - version constraint: > 0 vagrant-share (1.1.9, system) - version constraint: > 0 vagrant-vbguest (0.15.0) - version constraint: > 0 出力の詳細は以下のとおりです。$ vagrant up --provider=virtualbox bringing machine 'default' up with 'virtualbox' provider... ==> default: importing base box 'bento/ubuntu-16.04'... ==> default: matching mac address for nat networking... ==> default: checking if box 'bento/ubuntu-16.04' is up to date... ==> default: setting the name of the vm: vagrant-ubuntu-1604_default_1509481785760_74033 ==> default: fixed port collision for 22 => 2222. now on port 2200. ==> default: clearing any previously set network interfaces... ==> default: preparing network interfaces based on configuration... default: adapter 1: nat ==> default: forwarding ports... default: 22 (guest) => 2200 (host) (adapter 1) ==> default: booting vm... ==> default: waiting for machine to boot. this may take a few minutes... default: ssh address: 127.0.0.1:2200 default: ssh username: vagrant default: ssh auth method: private key default: warning: remote connection disconnect. retrying... default: warning: connection reset. retrying... default: warning: remote connection disconnect. retrying... default: warning: connection reset. retrying... default: warning: remote connection disconnect. retrying... default: warning: connection reset. retrying... default: default: vagrant insecure key detected. vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: inserting generated public key within guest... default: removing insecure key from the guest if it's present... default: key inserted! disconnecting and reconnecting using new ssh key... ==> default: machine booted and ready! [default] guestadditions versions on your host (5.2.0) and guest (5.1.30) do not match. reading package lists... building dependency tree... reading state information... dkms is already the newest version (2.2.0.3-2ubuntu11.5). the following new packages will be installed: linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. need to get 10.7 mb of archives. after this operation, 78.0 mb of additional disk space will be used. get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-87 all 4.4.0-87.110 [9,892 kb] get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-87-generic amd64 4.4.0-87.110 [785 kb] dpkg-preconfigure: unable to re-open stdin: no such file or directory fetched 10.7 mb in 5s (1,977 kb/s) selecting previously unselected package linux-headers-4.4.0-87. (reading database ... 35843 files and directories currently installed.) preparing to unpack .../linux-headers-4.4.0-87_4.4.0-87.110_all.deb ... unpacking linux-headers-4.4.0-87 (4.4.0-87.110) ... selecting previously unselected package linux-headers-4.4.0-87-generic. preparing to unpack .../linux-headers-4.4.0-87-generic_4.4.0-87.110_amd64.deb ... unpacking linux-headers-4.4.0-87-generic (4.4.0-87.110) ... setting up linux-headers-4.4.0-87 (4.4.0-87.110) ... setting up linux-headers-4.4.0-87-generic (4.4.0-87.110) ... examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic copy iso file /applications/virtualbox.app/contents/macos/vboxguestadditions.iso into the box /tmp/vboxguestadditions.iso mounting virtualbox guest additions iso to: /mnt mount: /dev/loop0 is write-protected, mounting read-only installing virtualbox guest additions 5.2.0 - guest version is 5.1.30 verifying archive integrity... all good. uncompressing virtualbox 5.2.0 guest additions for linux........ virtualbox guest additions installer removing installed version 5.1.30 of virtualbox guest additions... copying additional installer modules ... installing additional modules ... virtualbox guest additions: building the virtualbox guest additions kernel modules. virtualbox guest additions: look at /var/log/vboxadd-setup.log to find out what went wrong virtualbox guest additions: running kernel modules will not be replaced until the system is restarted virtualbox guest additions: starting. virtualbox guest additions: modprobe vboxsf failed an error occurred during installation of virtualbox guest additions 5.2.0. some functionality may not work as intended. in most cases it is ok that the "window system drivers" installation failed. job for vboxadd-service.service failed because the control process exited with error code. see "systemctl status vboxadd-service.service" and "journalctl -xe" for details. unmounting virtualbox guest additions iso from: /mnt ==> 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.1.30 default: virtualbox version: 5.2 ==> default: mounting shared folders... default: /vagrant => /users/tjeerd/git/vagrant/vagrant-ubuntu-16.04 vagrant was unable to mount virtualbox shared folders. this is usually because the filesystem "vboxsf" is not available. this filesystem is made available via the virtualbox guest additions and kernel module. please verify that these guest additions are properly installed in the guest. this is not a bug in vagrant and is usually caused by a faulty vagrant box. for context, the command attempted was: mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant the error output from the command was: : no such device
回答: すべての新しいvirtualboxguestadditionsが正常にインストールされた後。 a vagrant reloadマウントは正常にセットアップされます。