Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to install a Windows XP or Windows Server 2003 virtual machine on a remote Ubuntu server by command line?

Also, please advise what virtualization software is best for this kind of job?

share|improve this question
Please be more specific, what virtualization software are you using? – Nick Kavadias Oct 27 '09 at 3:13
up vote 2 down vote accepted

This assumes you are using VirtualBox, which is free and available for Linux as well as other operating systems:

Create the virtual machine on another computer first, and install windows the normal way. Once the virtual machine is configured the way you want it, transfer the virtual disk image to the remote ubuntu machine.

Once you have the image in place, you can control virtualbox from a command line using the VBoxManage command. For example, to start a VM called "WinXP" you issue a command like:

$ VBoxManage startvm "WinXP" -type vrdp.

share|improve this answer
Does the computer on which WinXP is installed need to be exactly same in configs as the remote server? – jack Oct 27 '09 at 7:20
@jack - no: the virtual machine handles that level of abstraction for you – warren Oct 27 '09 at 7:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.