我在Virtualbox 4.3.4上遇到Vagrant 1.3.5的特殊问题,vagrant up
在安装同步(共享)文件夹期间停顿。
输出顺序如下:
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
GuestAdditions 4.3.2 running --- OK.
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Setting hostname...
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-puppet/manifests
输出在最后一行之后停止,通常会继续挂载NFS文件夹。
有趣的部分:如果我再次vagrant destroy
vm和vagrant up
,则保证第一次工作,但任何up
或{{超越它将再次面临同样的问题。
由于这是我的开发环境,我尝试了很多解决方案,但到目前为止还没有解决我的特定问题,你可以在https://github.com/mitchellh/vagrant/issues/2564
看到我的调查我很感激有关如何调试和解决它的一些建议。
更新:
似乎Vagrant 1.2.x与Virtualbox 4.2.x在OSX Mavericks上工作,这让我觉得我的vagrantfile是错误的(或者它在vagrant 1.3中触发了一些bug),但我自己无法发现它,所以这是我所做的改变:
我的旧1.2配置
reload
vs 1.3 config
if Vagrant::Util::Platform.windows?
config.vm.synced_folder "www", "/var/www", :extra => "dmode=777,fmode=777", :owner => "vagrant", :group => "vagrant"
else
config.vm.synced_folder "www", "/var/www", :extra => "dmode=777,fmode=777", :nfs => true
end