VirtualBox

Opened 14 years ago

Closed 7 years ago

#7367 closed defect (obsolete)

VBoxManage startvm command fails if no gui is available

Reported by: tuomas leikola Owned by:
Component: VM control Version: VirtualBox 3.2.8
Keywords: NS_ERROR_FAILURE Cc:
Guest type: other Host type: Solaris

Description (last modified by Frank Mehnert)

when no X environment is present (ssh shell, no gui started on host, etc), this error message is presented:

tobo@elena:~$ VBoxManage startvm 2ct2 Oracle VM VirtualBox Command Line Management Interface Version 3.2.8 (C) 2005-2010 Oracle Corporation All rights reserved.

Waiting for the VM to power on... ERROR: The virtual machine '2ct2' has terminated unexpectedly during startup with exit code 0 Details: code NS_ERROR_FAILURE (0x80004005), component Machine, interface IMachine, callee tobo@elena:~$

which is far from elegant. Correct behaviour would be to require --type vrdp or such.

this is opensolaris host 111b or such.

please contact me at my registered address if further info is necessary.

Change History (6)

comment:1 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

Please reopen if still relevant with VBox 4.0.4.

comment:2 by Chris Wilson, 12 years ago

Resolution: fixed
Status: closedreopened

Still happens in 4.1.14.

This failure mode is really unclear. The logs don't appear to say anything useful. Not even a google search turns up that this error can be caused by failing to specify --type headless when starting the virtual machine.

comment:3 by Frank Mehnert, 12 years ago

Description: modified (diff)

Well, the error message I get when I try this is VBoxManage: error: Could not launch a process for the machine 'debian' (VERR_FILE_NOT_FOUND) .... I understand that in case there is no GUI application installed, the default type could be headless but OTOH I hesitate to implement that because this could also mean an installation problem.

comment:4 by scai, 11 years ago

Problem still exists:

$ VBoxManage --version
4.2.6r82870
$ VBoxManage startvm "Build Server"
Waiting for VM "Build Server" to power on...
VBoxManage: error: The virtual machine 'Build Server' has terminated unexpectedly during startup with exit code 0
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Machine, interface IMachine
$ VBoxManage startvm "Build Server" --type headless
Waiting for VM "Build Server" to power on...
VM "Build Server" has been successfully started.

I suggest adding a clearer error message.

comment:5 by a3nm, 9 years ago

From my experience, the problem still exists with VBoxManage version 5.0.4_Debianr102546. When running VBoxManage startvm "Machine" in a terminal without graphical interface ($DISPLAY is empty), the following is output

Waiting for VM "Machine" to power on...
VM "Machine" has been successfully started.

However this actually doesn't do anything, and Machine is not listed when you do VBoxManage runningvms. Instead, you need to do VBoxManage startvm Machine --type headless for the machine to actually run.

I think the invocation without --type should display an error message when there is no graphical display, instead of failing silently while confusingly claiming that it succeeded. Also, it should probably suggest the --type variant.

comment:6 by Frank Mehnert, 7 years ago

Resolution: obsolete
Status: reopenedclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use