gpt4 book ai didi

vagrant - 启动Virtualbox的问题

转载 作者:行者123 更新时间:2023-12-01 16:16:02 25 4
gpt4 key购买 nike

我尝试启动 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,而不是关于 Vagrant。

根据这篇文章 - http://www.macbreaker.com/2015/01/virtualbox-yosemite-zone.html :

If your version of Virtualbox asks you to choose between 64-bit and 32-bit, be sure to choose 64-bit. Choosing 32-bit will result in a critical "Guru Meditation" error later on.



可能这也是你的情况吗?如果您尝试在没有 Vagrant 的情况下使用上述文章安装 Yosemite 怎么办?

关于vagrant - 启动Virtualbox的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29609158/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com