Page 1 of 1
Start a VM from telnet on Windows XP
Posted: 8. Nov 2009, 00:49
by sheperson
Hi,
Here is my situation:
I have installed VirtualBox 3.0.8 on a remote machine running Windows XP SP3. Inside VB, I have installed Ubuntu Jaunty.
I connect to the host OS using Telnet and when I try to run the VM from command line, I get this error:
Code: Select all
VBoxManage startvm Jaunty
ERROR: Could not find a registered machine named 'jaunty'
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee IUnknown
Context: "FindMachine(Bstr(VMName), machine.asOutParam())" at line 512 of file VBoxManage.cpp
Here Jaunty is the name of the VM.
When connect to the remote machine using Remote Desktop Connection, and execute the same command, it starts the VM, but from Telnet, it doesn't.
Does anyone have any idea?
Thanks in advance.
Re: Start a VM from telnet on Windows XP
Posted: 8. Nov 2009, 06:56
by MarkCranness
Perhaps try setting the VBOX_USER_HOME environment variable? (See section 9.1 of the manual).
Re: Start a VM from telnet on Windows XP
Posted: 8. Nov 2009, 09:54
by sheperson
MarkCranness wrote:Perhaps try setting the VBOX_USER_HOME environment variable? (See section 9.1 of the manual).
Well I had seen that suggestion in another post. I tried it before posting, but that doesn't work.
Re: Start a VM from telnet on Windows XP
Posted: 8. Nov 2009, 11:44
by MarkCranness
What do:
Code: Select all
VBoxManage -q list systemproperties
VBoxManage -q list vms
... show?
I wonder if the lower-upper-case in 'jaunty' is significant?
(I know that usually VirtualBox is case significant, but in your example, you started 'Jaunty' but the error message was 'jaunty'. Was that a transcription error or is there some case conversion going on behind the scenes?)
Re: Start a VM from telnet on Windows XP
Posted: 8. Nov 2009, 12:41
by sheperson
MarkCranness wrote:What do:
Code: Select all
VBoxManage -q list systemproperties
VBoxManage -q list vms
... show?
I wonder if the lower-upper-case in 'jaunty' is significant?
(I know that usually VirtualBox is case significant, but in your example, you started 'Jaunty' but the error message was 'jaunty'. Was that a transcription error or is there some case conversion going on behind the scenes?)
Well I ran both commands and here are the outputs:
Code: Select all
C:\>VBoxManage -q list systemproperties
Minimum guest RAM size: 4 Megabytesge -q list systemproperties
Maximum guest RAM size: 1500 Megabytes
Maximum video RAM size: 128 Megabytes
Maximum VDI size: 2097151 Megabytes
Default hard disk folder: C:\WINDOWS\system32\config\systemprofile\.VirtualBox\HardDisks
Default machine folder: C:\WINDOWS\system32\config\systemprofile\.VirtualBox\Machines
VRDP authentication library: VRDPAuth
Webservice auth. library: VRDPAuth
Log history count: 3
And
Code: Select all
C:\>set
//Some more stuff here
VBOX_USER_HOME=c:\Documents and settings\Sheperson\.VirtualBox\
I have completely confused!
The set command gives one thing forVBOX_USER_HOME but VBoxManage gives something different for Default machine folder!!!

Re: Start a VM from telnet on Windows XP
Posted: 8. Nov 2009, 15:25
by MarkCranness
Is it an access rights issue? What happens if you:
Code: Select all
notepad "c:\Documents and settings\Sheperson\.VirtualBox\VirtualBox.xml"
notepad %VBOX_USER_HOME%VirtualBox.xml
Re: Start a VM from telnet on Windows XP
Posted: 8. Nov 2009, 21:37
by sheperson
MarkCranness wrote:Is it an access rights issue? What happens if you:
Code: Select all
notepad "c:\Documents and settings\Sheperson\.VirtualBox\VirtualBox.xml"
notepad %VBOX_USER_HOME%VirtualBox.xml
Well I cannot do it, because I am connecting via telnet.
However, I don't think it is an access rights problems, because I use the same user for telnet and Remote Desktop.
In Remote Desktop Connection, I can run it VBoxManage from command line with no problem.
Re: Start a VM from telnet on Windows XP
Posted: 9. Nov 2009, 01:22
by MarkCranness
sheperson wrote:Well I cannot do it, because I am connecting via telnet.
Doh!
Code: Select all
cacls "c:\Documents and settings\Sheperson\.VirtualBox\VirtualBox.xml"
type "c:\Documents and settings\Sheperson\.VirtualBox\VirtualBox.xml"
type %VBOX_USER_HOME%VirtualBox.xml
Re: Start a VM from telnet on Windows XP
Posted: 10. Nov 2009, 01:36
by sheperson
Hi,
It is now working!
To my great surprise, it is working now. I think the problem was with the VBOX_USER_HOME environment variable. Not with setting it, because it was set right.
I hadn't restarted my PC since setting the variable, and now after a reboot, it is working. I think it is the VirtualBox's problem (actually the service) which is faulty in checking environment variable.
Thanks again for your help.