对vagrant文件进行了更改-现在我的vagrant将不会启动
我对我的文件做了一些修改。我所做的只是在配置中添加更多的处理器和ram 之前(并注释掉): 之后:对vagrant文件进行了更改-现在我的vagrant将不会启动,vagrant,vagrantfile,Vagrant,Vagrantfile,我对我的文件做了一些修改。我所做的只是在配置中添加更多的处理器和ram 之前(并注释掉): 之后: .... config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine vb.gui = true # # # Customize the amount of memory on the VM: vb.memory = "1024
....
config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
vb.gui = true
#
# # Customize the amount of memory on the VM:
vb.memory = "1024"
vb.cpus = "2"
end
....
我重新启动了计算机,并出现以下错误:
来宾计算机在等待时进入无效状态
启动。有效状态为“正在启动,正在运行”。这台机器在厨房里
“断电”状态。请验证所有配置是否正确
请检查并重试
如果您使用的提供程序附带GUI,
打开它并观察机器通常是有帮助的,因为
GUI通常有比Vagrant检索到的更有用的错误消息。
例如,如果您正在使用VirtualBox,请在
VirtualBox GUI已打开。
此错误的主要问题是您正在使用的提供程序
配置不正确。这很少是一个流浪问题。
所以我把我的Vagrant文件改回原来的样子(如上所述)
我仍然无法启动带有vagrant up
的机器。我做错了什么
当我启用UI时。它只是在我看不到的情况下打开和关闭。你从
流浪状态中得到了什么?
?如果你直接从VirtualBox启动虚拟机而没有流浪状态,会发生什么?
....
config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
vb.gui = true
#
# # Customize the amount of memory on the VM:
vb.memory = "1024"
vb.cpus = "2"
end
....