Page 1 of 1

Autostart fails [solved]

Posted: 6. Jul 2009, 12:44
by xcomm
Hi Community,

I'm just wondering about how to autostart a VM under Debian (Unstable) with SunVirtualBox 3.0.0 running.
Unfortunately the VBoxManage command seem totaly broken.

Code: Select all

VBoxManage startvm          <uuid>|<name>
                            [--type gui|sdl|vrdp|headless]



VBoxManage startvm "winxp"
 VirtualBox Command Line Management Interface Version 3.0.0
 (C) 2005-2009 Sun Microsystems, Inc. 
 All rights reserved.

 ERROR: Could not find a registered machine named 'winxp' 
 Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
 Context: "FindMachine(Bstr(VMName), machine.asOutParam())" at line 512 of file VBoxManage.cpp
Any ideas?

Best regards, xcomm

Re: Autostart fails

Posted: 6. Jul 2009, 13:24
by baf
Use
VBoxManage list vms
to see exactly how it is named. Remember case matters!

Re: Autostart fails

Posted: 6. Jul 2009, 13:35
by xcomm
Hi baf,

Thank you very much for the reply. It seems not being able to collect this information.
Maybe my installed gcc or similiar is too new as on Debian unstable.

Code: Select all

# VBoxManage list vms
VirtualBox Command Line Management Interface Version 3.0.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
As I have winxp running right now to use XenCenter. ;-)

Code: Select all

# VBoxManage list runningvms
VirtualBox Command Line Management Interface Version 3.0.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

# VBoxManage list hostinfo
VirtualBox Command Line Management Interface Version 3.0.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Host Information:

Host time: 2009-07-06T11:30:43.027000000Z
Processor online count: 2
Processor count: 2
Processor#0 speed: 2501 MHz
Processor#1 speed: 2501 MHz
Memory size: 2025 MByte
Memory available: 1240 MByte
Operating system: Linux
Operating system version: 2.6.29-2-686
Best regards, xcomm

Re: Autostart fails

Posted: 6. Jul 2009, 15:15
by baf
Did you create this guest as root or as you?
VBox has one machine list per user so root will only see roots machines not yours.

Re: Autostart fails

Posted: 6. Jul 2009, 15:23
by xcomm
Hi baf,

Thank you very much! Great - this way it works like a charme! :-)

Code: Select all

xcomm:(~)$ VBoxManage list vms
VirtualBox Command Line Management Interface Version 3.0.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

"winxp" {47e1f6e4-59f8-4a75-892f-12780382e2b8}
xcomm:(~)$ VBoxManage startvm winxp
VirtualBox Command Line Management Interface Version 3.0.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Waiting for the remote session to open...
Remote session has been successfully opened.
Best regard, xcomm