Vagrant 启动Virtualbox的问题

Vagrant 启动Virtualbox的问题,vagrant,virtual-machine,virtualbox,vagrantfile,Vagrant,Virtual Machine,Virtualbox,Vagrantfile,我尝试启动Virtualbox,以下是我的步骤 vagrant box add jhcook/osx-yosemite-10.10 mkdir test cd test vagrant init jhcook/osx-yosemite-10.10 按如下方式修改vagrant文件: config.vm.provider "virtualbox" do |vb| # Don't boot with headless mode vb.gui = true vb.cpus = 2 # Use V

我尝试启动Virtualbox,以下是我的步骤

vagrant box add jhcook/osx-yosemite-10.10
mkdir test
cd test
vagrant init jhcook/osx-yosemite-10.10
按如下方式修改vagrant文件:

 config.vm.provider "virtualbox" do |vb|
# Don't boot with headless mode
vb.gui = true
vb.cpus = 2

# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxvga"]
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
结束

比我得到的还多

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'jhcook/osx-yosemite-10.10'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'jhcook/osx-yosemite-10.10' is up to date...
==> default: Setting the name of the VM: VagrantTest_default_1428936332822_32428
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> 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...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'gurumeditation' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

我尝试了不同版本的Virtualbox,并在互联网上搜索答案。但我真的不明白我的错误,如果有人能帮助我,我会很高兴:)

看来这是关于VirtualBox的问题,而不是关于流浪汉的问题

根据本文-:

如果您的Virtualbox版本要求您在64位和32位之间进行选择,请确保选择64位。选择32位将导致严重的“大师冥想”错误


也许这也是你的情况?如果您尝试使用上述文章安装Yosemite而不使用Vagrant怎么办?

所以,我不使用Windows,我使用的是Mac和Yosemite。我试试这个教程。一位朋友也尝试了一下,它在他的mac电脑上运行得非常好。我还尝试了不同版本的virtualbox 4.3.26,现在是4.2.28。这一次,在等待机器启动时,我有一个不同的异常超时。这意味着Vagrant无法在配置的(“config.vm.boot_timeout”值)时间段内与来宾计算机通信。如果您查看上面的内容,您应该能够看到Vagrant在尝试连接到机器时出现的错误。这些错误通常是很好的提示,提示可能出现的错误。请使用VirtualBox GUI确保您的虚拟机正常工作,好吗?您可以尝试从那里运行VM。我们需要澄清的是,这个问题是否与流浪者有关。我使用了GUI,但仍然是同一个问题,它停止了并给我一个错误。在我的情况下,我刚刚在Windows中再次运行了
init.bat
。再次编辑了
homestad.yaml
文件,然后我运行了
vagrant-up--provision
,它只是简单地工作了!