Nov 13, 2007

Install Windows XP via VirtualBox in Ubuntu

Now, VirtualBox comes gradually to maturity.

Some of the features of VirtualBox are:
1.Modularity.
2.Virtual machine descriptions in XML.
3.Guest Additions for Windows and Linux.
4.Shared folders.
5.Virtual USB Controllers.
6.Remote Desktop Protocol.
7.USB over RDP.
See more Here.

I want to talk about the installation of windows XP in Ubuntu via VirtualBox.
Installation of VirtualBox:
sudo apt-get install virtualbox
Or you can get the newest version at the Homepage.

Install Windows XP in Virtualbox:

1. Run Virtualbox in "Applications/System Tools/innotek VirtualBox".

2. Click "New" to creat a new "Machine".


3. Press Next.


4. Type in the name of your new machine and choose the Operating System Type. Here I choose Windows XP.


5. Set base memory size, I think the recommended one is good enough.


6. Creat a new Virtual machine. Choose it
by pressing "Existing" if you have created one .


7. Creat a new Virtual disk. You can choose the Virtual Disk Image Type. "Dynamically" or "Fixed", I think the former is better.


8. Set the maximum size of the disks you need.


9. Confirm the Summary of your settings. After that, press "Finish".


10. Set the Location of iso image, you can read it from CDROM or you can creat an ".iso" file on your compute first (I recomend this way since it is much more fast ):
cp /dev/cdrom ~/winxp.iso


11. After about 15 minites to 30, a new Windows XP comes out!


12. Install Guest Additons .
By click "Devices/Install Guest Additons" in the above menu.

13. Moreover, you can choose seamless mode by choose "Machine/Seamless Mode" in the menu so that you can use Windows and Linux more conveniently.


14. Some shortcuts.
The default Host Key is the right "Ctrl".
Fullscreen Mode: Host + F
Seamless Mode: Host + L

15. Share Folders with the host machine.
1) Set the share folders by click "Device/Shared Folders..." in the menu.
2) Click "Tools" in the menu of "My computer",and set the "Mapping Network Drive".
3) Now open your "My Computer", Here comes the Shared Folders.

6 Comments:

justinf said...

if you have a WinXP install disk, you can create an iso image by typing this in the terminal

dd if=/dev/cdrom of=winxp.iso

which will create an iso image of your Win XP cd named "winxp.iso"

nogrod said...

Thanks for this. I had wondered if it was possible to install from an image rather than directly from CD.

Evan said...

So I have tiny xp within ubuntu but I am having trouble with the network in xp.

In IE, the problem states, "Windows could not detect any wired or wireless network cards installed on your machine." Obviously I need some kind of driver, where can I find this?

Varun said...

I am having this trouble with installation of Windows XP via VirtualBox in Ubuntu.. I have an iso file of the windows xp; it's Windows XP Pro SP2 2005 Gold Reloaded Edition.. and when I 'start' the installation of windows, I get a message: FATAL: INT18: BOOT FAILURE

Any suggestions so as to what I do now?
Will be a great help..

Anonymous said...

justinf where is the iso placed after creation. i would think home?

Anonymous said...

Thanks... this tutorial worked just fine.