vm created in gui cannot be run/configured in the cli

This is for discussing general topics about how to use VirtualBox.
Post Reply
supremedalek
Posts: 32
Joined: 17. Oct 2008, 17:10
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Linux

vm created in gui cannot be run/configured in the cli

Post by supremedalek »

I am running vbox 3.0.12 PUEL and created a vm using the gui, VirtualBox,

Code: Select all

% VBoxManage list vms
VirtualBox Command Line Management Interface Version 3.0.12
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
[...]
"ubuntu2" {df9e037f-c34a-4efe-b1b6-b6c1330d41e8}
%
Now, let's say I want to do something to it, like enable vrdp (or run it using VBoxHeadless):

Code: Select all

sudo VBoxManage modifyvm "ubuntu2" --vrdpport 14001 --vrdp on --vrdpauthtype external
VirtualBox Command Line Management Interface Version 3.0.12
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

ERROR: Could not find a registered machine named 'ubuntu2'
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindMachine(Bstr(a->argv[0]), machine.asOutParam())" at line 863 of file VBoxManageModifyVM.cpp
Why is it reporting ubuntu2 does not exist?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: vm created in gui cannot be run/configured in the cli

Post by vbox4me2 »

You are doing things with 2 different users, the second one does not know the VM's from the first.
supremedalek
Posts: 32
Joined: 17. Oct 2008, 17:10
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Linux

Re: vm created in gui cannot be run/configured in the cli

Post by supremedalek »

Thanks for the answer. I should have been paying attention more. :D
Post Reply