我试图从我的家庭计算机上的工作环境中获得我的流量计安装设置,但我一直在遇到问题。我已经卸载并重新安装了两次Virtualbox和Vagrant。在工作中,一切都按预期工作。在家里,什么都没有。我游民文件如下:在一台计算机上但不在另一台计算机上的流量增加规定
Vagrant::configure("2") do |config|
config.vm.box = "saucy64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :private_network, ip: "192.168.33.10"
# Allow more memory usage for the VM
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", "1024"]
end
# Fix rights and permissions on shared folder
config.vm.synced_folder ".", "/vagrant/", :mount_options => [ "dmode=777", "fmode=666" ]
config.vm.synced_folder "./www", "/vagrant/www/", :mount_options => [ "dmode=775", "fmode=644" ], :owner => 'vagrant', :group => 'www-data'
# Set the timezone to something useful
config.vm.provision :shell, :inline => "echo \"Europe/London\" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata"
# Make sure APT is up to date
config.vm.provision :shell, :inline => "apt-get update --fix-missing"
# Fix locales
# config.vm.provision :shell, :inline => "apt-get -y install language-pack-en"
config.vm.provision :puppet do |puppet|
puppet.facter = { "fqdn" => "dev.oraculum2.local", "hostname" => "www" }
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "oraculum2.pp"
puppet.module_path = "puppet/modules"
puppet.options = "--hiera_config /vagrant/hiera.yaml"
end
end
我的输出是这样的:
$ vagrant up --provision
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'saucy64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[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...
[default] Waiting for machine to boot. This may take a few minutes...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period. This can
mean a number of things.
If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.
If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
当然,我试图增加启动超时但有相同的效果。我试图在GUI中启动,但它进入黑屏并且从不改变。
使用: 流浪1.4.1和4.3.6的virtualbox
我是一个Ubuntu 12.04的机器上,这就是一样的工作,以及。
我试着用Vagrant 1.4.3以及相同的结果。我迷失了,因为它在工作中工作得很好。有任何想法吗?
在尝试流浪之前,能否恢复(或重新下载)virtualbox映像并正常启动?如果通过GUI引导进入黑屏,那么它很可能是vb映像或本地vb配置。不看起来像流浪... –
我试图重新下载它,但仍然黑屏。试图重新安装Virtualbox,一无所获。我很难过。 – dansackett
当然(ish)不是那么流浪的。你有没有尝试过使用内置的virtualbox来流浪?看一下[Vagrant的入门](http://docs.vagrantup.com/v2/getting-started/index.html)页面,使用那里提到的精确框32。也许尝试另一个虚拟机提供商。 –