Page 1 of 1

VBoxManage list vms empty

Posted: 1. Sep 2008, 20:47
by ccyril95
Hi,

When i do VBoxManage list vms, i have nothing, the list is empty

I have created the vm by the GUI, and i can launch it. but not in command line :

Code: Select all

VboxManage startvm [b]win [/b]: 
VirtualBox Command Line Management Interface Version 1.6.4
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

[!] FAILED calling virtualBox->FindMachine(Bstr(argv[0]), machine.asOutParam()) at line 5443!
[!] Primary RC  = NS_ERROR_INVALID_ARG (0x80070057) - Invalid argument value
[!] Full error info present: true , basic error info present: true 
[!] Result Code = NS_ERROR_INVALID_ARG (0x80070057) - Invalid argument value
[!] Text        = Could not find a registered machine named '[b]win[/b]'
[!] Component   = VirtualBox, Interface: IVirtualBox, {2d3b9ea7-25f5-4f07-a8e1-7dd7e0dcf667}
[!] Callee      = IVirtualBox, {2d3b9ea7-25f5-4f07-a8e1-7dd7e0dcf667}
The file file:///home/user1/.VirtualBox/VirtualBox.xml

Code: Select all

<MachineRegistry>
<MachineEntry uuid="{a560c615-1a60-4cbf-5b8d-e07ef250f260}" src="Machines/win/win.xml"/>
</MachineRegistry>
The file file:///home/user1/.VirtualBox/Machines/win/win.xml :

Code: Select all

<VirtualBox version="1.3-linux">
<Machine OSType="win2k" lastStateChange="2008-09-01T18:05:43Z" name="win" uuid="{a560c615-1a60-4cbf-5b8d-e07ef250f260}" snapshotFolder="Snapshots">
I use ubuntu 8.04

Thanks for your help

Posted: 1. Sep 2008, 21:27
by Sasquatch
How do you run each command? From the GUI, that should be with your own user credentials. If you run VBoxManage as root (with sudo) then it's obvious that you don't get a list.

Posted: 2. Sep 2008, 09:54
by ccyril95
Sasquatch wrote:How do you run each command? From the GUI, that should be with your own user credentials. If you run VBoxManage as root (with sudo) then it's obvious that you don't get a list.
It's right !!!

thanks