我已经从神谕网站不属于我ubuntu 14.04 存储库。
我已经下载了virtualbox 客户机添加符合我目前的虚拟盒即5.0来自 Oracle 网站。
以下是我安装的步骤virtualbox 客户机添加。我在主持人机器。
sudo mnt -o loop ~/Downloads/VBoxGuestAdditions_5.0.0.iso /mnt
cd /mnt
sudo sh VBoxGuestAdditions_5.0.0.iso
但每当我运行时homestead up
,它都显示我的 virtualbox 和 virtualbox-guest-additions 的版本不匹配。
这是我每次运行时的输出homestead up
。
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 443 => 44300 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> 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: 4.3.14
default: VirtualBox Version: 5.0
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /home/chanhxc/.composer/vendor/laravel/homestead
default: /home/vagrant/Codes => /home/chanhxc/Codes
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
我不知道可能存在什么问题。
答案1
尝试从终端添加此插件:
sudo vagrant plugin install vagrant-vbguest
安装后,执行“vagrant up”,它将检测主机和客户机之间的版本。如果版本不匹配,则它会相应地更新客户机添加版本。希望有帮助。;)