View Full Version : [ubuntu] launching guest operating system

September 20th, 2008, 10:26 PM
i have installed windows xp in virtualbox in hardy.how do i make virtualbox launch windows xp,from the terminal?

September 20th, 2008, 10:49 PM
i want to know the command so as to create a launcher to launch xp directly,rather than opening virtualbox first and then double-clicking xp.

September 20th, 2008, 10:56 PM
In terminal type

VBoxManage startvm WindowsXP

WindowsXP is the name of my xp virtual machine, subsitute with the name of yours.

September 20th, 2008, 11:01 PM
it didn't do the job,the output was:

sonu@sonu-desktop:~$ VBoxManage startvm windows xp
VirtualBox Command Line Management Interface Version 2.0.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.

[!] FAILED calling virtualBox->FindMachine(Bstr(argv[0]), machine.asOutParam()) at line 5620!
[!] 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 'windows'
[!] Component = VirtualBox, Interface: IVirtualBox, {557a07bc-e6ae-4520-a361-4a8493199137}
[!] Callee = IVirtualBox, {557a07bc-e6ae-4520-a361-4a8493199137}

September 20th, 2008, 11:03 PM
Try putting 'windows xp' between quotes.

Otherwise it's passed to VBoxManager as two separate arguments, one with "windows", the other with "xp".

Disclaimer : I am not familiar with VBoxManager, but this is pretty much standard behavior.

September 20th, 2008, 11:04 PM
Hmmm, works perfectly for me. You sure you typed correctly, it is case sensitive.

You could sub the name the vm with its UUID if you can get it, I'm not sure how you do that.

September 20th, 2008, 11:06 PM
Try putting 'windows xp' between quotes.


yep, I'd guess that is it, never thought to mention that.

September 20th, 2008, 11:06 PM
ok its working now,but its only launching the virtualbox.i want xp to be launched straightaway.

September 20th, 2008, 11:29 PM
sorry not sure what to suggest now, the command works on my box without launching the Virtualbox window itself, it goes straight into loading the vm.

One last long shot, is it the name of the .vdi you are using or the name of the vm to type the command ?

September 23rd, 2008, 08:15 PM
excuse me ,but i did not quite get that.