Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Virtualbox &引用;“流浪者上”;失败:流浪VM无法保持运行状态_Virtualbox_Vagrant - Fatal编程技术网

Virtualbox &引用;“流浪者上”;失败:流浪VM无法保持运行状态

Virtualbox &引用;“流浪者上”;失败:流浪VM无法保持运行状态,virtualbox,vagrant,Virtualbox,Vagrant,Wagrant up命令失败,我不知道原因 $ egrep -v '^ *(#|$)' Vagrantfile VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "precise32" end $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [d

Wagrant up命令失败,我不知道原因

$ egrep -v '^ *(#|$)' Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "precise32"
end
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[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] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
The VM failed to remain in the "running" state while attempting to boot.
This is normally caused by a misconfiguration or host system incompatibilities.
Please open the VirtualBox GUI and attempt to boot the virtual machine
manually to get a more informative error message.
$ vagrant status
Current machine states:

default                   poweroff (virtualbox)

The VM is powered off. To restart the VM, simply run `vagrant up`
$ VBoxManage list runningvms
$
以下是VirtualBox日志文件VBoxSVC.log中的消息:

$ cat ~/.VirtualBox/VBoxSVC.log
VirtualBox XPCOM Server 4.2.16 r86992 linux.amd64 (Jul  4 2013 16:29:59) release log
00:00:00.000499 main     Log opened 2013-08-13T18:40:45.907580000Z
00:00:00.000508 main     OS Product: Linux
00:00:00.000509 main     OS Release: 3.6.11-4.fc16.x86_64
00:00:00.000510 main     OS Version: #1 SMP Tue Jan 8 20:57:42 UTC 2013
00:00:00.000537 main     DMI Product Name: X8DA3
00:00:00.000547 main     DMI Product Version: 1234567890
00:00:00.000647 main     Host RAM: 24103MB total, 17127MB available
00:00:00.000654 main     Executable: /usr/local/VirtualBox/VBoxSVC
00:00:00.000655 main     Process ID: 9417
00:00:00.000656 main     Package type: LINUX_64BITS_GENERIC
00:00:00.110125 nspr-2   Loading settings file "/opt/tomcat/.VirtualBox/VirtualBox.xml"     with version "1.12-linux"
00:00:00.110817 nspr-2   Failed to retrive disk info: getDiskName(/dev/md126p1) --> md126p1
00:00:00.264367 nspr-2   VDInit finished
00:00:00.275173 nspr-2   Loading settings file "/opt/tomcat/VirtualBox VMs/vagrant_getting_started_default_1376419129/vagrant_getting_started_default_1376419129.vbox" with version "1.12-linux"
00:00:05.288923 main     ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Medium '/opt/tomcat/VirtualBox VMs/vagrant_getting_started_default_1376419129/box-disk1.vmdk' cannot be closed because it is still attached to 1 virtual machines}, preserve=false
00:00:05.290229 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={3b2f08eb-b810-4715-bee0-bb06b9880ad2} aComponent={VirtualBox} aText={The object is not ready}, preserve=false
$ 

任何建议都将不胜感激。

我通过重新安装VirtualBox并加入
vboxusers
组解决了这个问题。重新安装过程会打印一条消息,指示VM用户必须是该组的成员。我不知道是否需要重新安装,或者添加到组中是否足够。

我的理解是,vboxusers组与访问来宾中的USB设备有关。不确定它为什么会导致问题通常情况下,作为一项“漫游基本盒”构建指南,音频和USB都被禁用。

根据VirtualBox手册=>

Linux安装程序在安装过程中创建系统用户组
vboxusers
。任何要使用VirtualBox来宾的USB设备的系统用户必须是该组的成员。用户可以通过GUI用户/组管理或使用
sudo usermod-A-G vboxusers username

请注意,将活动用户添加到该组将需要该用户注销并再次登录。此操作应在成功安装软件包后手动完成


主机为32位(Ubuntu),来宾为64位,我将来宾更改为32位,解决了这个问题。

在OSX上也有同样的错误。重新启动VirtualBox修复了它:S

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

另请参见:

我也有同样的问题。这是因为我在provider部分对我的文件进行了错误的配置。我曾试图使我的虚拟机功能更强大,当我在主机上只有一个CPU时,我使用了两个CPU。
当您尝试向虚拟机添加更多硬件,但主机没有最低要求时,通常会发生这种情况

您是否尝试按照建议从VirtualBox GUI手动引导虚拟机?从错误消息中,它似乎无法访问磁盘映像。我尝试了VirtualBox GUI,但它没有提供任何更清晰的信息。您是否尝试通过
VAGRANT\u LOG=info VAGRANT up
启用调试?这应该会输出一些有用的东西。顺便说一句:确保你使用最新的vagrant,现在是1.2.7。Terry,是的,我试过vagrant_LOG=info。。。问题不在于流浪汉;它是用VirtualBox实现的。对我来说,重新启动就足够了。请参阅下面的答案。我配置了一个最小的VM,只有1个CPU。重新安装VirtualBox修复了这个问题。这正是我的问题。1+这是问题的根源