間に vagrant up
新しいクエストの追加がインストールされます
Virtualbox Guest Additions5.2.0のインストール-ゲストバージョンは5.1.30です
しかし、それはこのエラーを示しています:
VirtualBox Guest Additions5.2.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
マウントは正常にセットアップされます。