Installing Windows XP On The VM

Previous Next
2:00 AM - 10/07/2009 by Adam Overa

Now that we are done configuring the VM's settings and the XP CD is in your optical drive, we can boot the VM for the first time. We are back to the VirtualBox main window and your Windows XP VM should be highlighted. Click the Start button in the navigation bar. A new window will open for the XP virtual machine. After a few seconds of nothing, and maybe a window resize or two, the familiar blue screen of Windows' pre-installation will appear. When you first press a key with the VM window selected or click the mouse inside of it, a Keyboard/Mouse capture pop-up window may appear. You can decide to read it or not before you close it; in a few pages, you won't need to use the Host key anyway.

From here, you can install Windows XP as you normally would. In a nutshell: Enter, F8, Enter, Enter, Restart. As long as the XP VM window is the currently selected window, any keystrokes will register in the VM and not in your host OS. When the VM reboots, you should be in the XP graphical installation that we all know and love.

When the loading stops, the Regional and Language Options need to be dealt with. To use your mouse in the VM, left-click once anywhere inside of the VM window. The mouse is now being used by the VM and not the host OS. Also, its movements are restricted to inside the VM window. The little mouse icon directly to the left of Right Ctrl has been filled with color to indicate the mouse is bound to the VM. Press the right Ctrl key (that is, the Ctrl key on the right-hand side of your keyboard) in order to unbind the mouse and return it to the host OS.

Now that you know how the keyboard and mouse interact with the VM, go ahead and finish the graphical installation of XP. Basically: Next, enter name, Next, enter product key, Next, Next, time zone, Next, Next, workgroup name, Next. After another pause, the graphical installer will perform another reboot. Do Not "press any key..." to boot from CD-ROM if prompted. That will only result in going back to the beginning of the installation.

The familiar Windows XP loading screen should be showing up. If you are asked to resize the screen, click OK and then Yes. If all went well, the VM's window should become larger. If not, don't worry, we'll be changing it later anyway.

Depending on your edition of Windows XP and how old the CD is, another phase of the graphical installer may appear. Follow it until you get to a working desktop. There should be some music, and the little help icon in the lower-right should also be making sounds. Note: If you don't hear any sound, or if the sound comes out garbled, you'll need to tweak your VM audio settings later. Finish the graphical installation first.

Whenever you do get to your first working desktop screen, as with any other Windows installation, update the operating system before proceeding!

Talkback
cmmcnamara 10/07/2009 8:14 AM
Hide
-20+

I applaud the promotion of Linux, but this can be done in Windows too....Virtualbox is multiplatform.

johnbilicki 10/07/2009 8:21 AM
Show
jsloan 10/07/2009 8:22 AM
Hide
-1+

xpm is nothing but an integrated microsoft virtual pc 2007, which microsoft makes available for free.

i've been running w7 since day one and i have not found a reason to use xpm. windows 7 runs everything i've thrown at it.

also, virtual box runs fine on w7, so there is no need for linux...

johnbilicki 10/07/2009 8:24 AM
Hide
-18+

How about some articles in regards to getting popular games to run on Linux distros? I finally got around to trying Wine and I was amazed as how insanely easy it was. A good article could convince many to migrate...and I'd love to see major releases start taking Linux as a serious gaming OS.

void5 10/07/2009 8:26 AM
Hide
-20+

You can't run Windows in virtual machine on Linux "all for free" - you still have to buy license to use Windows copy legally.

lifelesspoet 10/07/2009 8:30 AM
Hide
-1+

So far I tried 3 games that didn't run in windows 7 but ran in wine. It seems from my example, the older the program is the more likely it will run in linux and less likely it will run in the latest version of windows.
Also, virtual box doesn't support directx, so graphically intense programs will not run properly or at all.

JonathanDeane 10/07/2009 9:03 AM
Hide
-1+

I like my main machine (the one with the most oomph) to run Windows what ever flavor is the latest. Then I like to run Linux on older hardware since Windows tends to bloat over time and not work so well. The OS is just a tool. XP is almost to that Windows 98 stage where it lacks security and is getting slower with each patch and lacks the new shiny. RIP XP you where the best of the best in your day! Being OS agnostic gives you more tools to work with in your life learn to use them all properly and you will find you can do things you thought where too hard or too complex before. Maybe one day people will learn to love all OS's equally lol

bujcri 10/07/2009 10:15 AM
Hide
-0+

Very nice article, still, it doesn't mention anything about possibility of running 64 bit software or how many cpu cores virtual box can use (I saw from the picture that it could be more than one)

danny69t 10/07/2009 10:22 AM
Hide
-8+

Good article. Keep it up with Ubuntu "stuff" like this. How about making a short article about installing software from tar.gz ? I didn't manage to use them darn tarballs.

"all the ways to customize your GUI, from panels to widgets and everything in-between. Don't worry, there will be a ton of transparency effects for those interested in cloning the Windows 7 GUI. There will even be some effects, like expo for Compiz Fusion, never before seen on a Windows machine."

Can't wait for that article, Adam.

mitch074 10/07/2009 10:55 AM
Hide
-7+

Please note:

- the article does state that you need a valid XP install media - meaning, that you should have a Windows XP license with it. Say, the one that came with the computer you converted to Linux... Moreover, if you happen to install an 'update' version of Windows, you lose the right to install both the older and newer OS on the machine (check EULA) - so you'd need to spring for a 'full' version of either. Linux has no EULA (only the GPL, which essentially says 'use at will') so you can use the former OEM OS (presumably Win XP - lower-end Vista have EULA limitations) in a VM, IF KEPT ON THAT 'REAL' MACHINE.

- DirectX acceleration is available in VirtualBox (this is not the case with VirtualPC), but it is experimental. Essentially, it creates an OpenGL context on the host OS (Linux or Windows), a virtual 3D device on the guest OS, provides a DirectX to OpenGL translator and a WGL to XGL passthrough (think Wine) - giving the guest OS accelerated OpenGL and DirectX capabilities. Note that currently, the OpenGL option is considered more stable than DirectX, because like Wine's WGL to XGL passthrough driver, there's (almost) no code translation required. As far as I know, there is no passthrough option available for DirectX (thus Windows on Windows has no advantage over windows on Linux - it's even worse, due to Windows on Linux making use of Linux's much faster I/O capabilities - my test results, not mine).

- The vbox 'CPU cores' options defines how many cores are emulated on the host; as far as I know, vbox ain't multithreaded yet. Think SMP emulation for the host. You should also enable IO APIC emulation with it, and this may be unstable in WinXP.

About .tar.gz packages: they can contain both binaries and source code; thing is, in Linux, it's often more practical to ship source code and make the user compile it, but the user has to know which is what. If we take Skype's example, there are two .tar.gz available: the 'dynamic' one will make use of local libraries already installed on your machine (mainly Qt), the 'static' is a complete package that doesn't require any extra install (but is a much bigger download). On Xvid's page though, the .tar.gz package only contains source code; you have to enter the directory that contains the UNIX-like source, and do 'magic':

./configure --help ## that parses the 'configure' script and recaps default compilation and install settings. Read it thoroughly. Don't forget the './', required to run the local version; otherwise, Linux will default to 'configure' located in /usr/bin, which is NOT the same.

./configure ## that checks for dependencies on the system and prepares the build; if it can't find a compiler or any other required dependency it'll abort: install GCC and whatever library is missing (you may need the -dev or -devel package). If it can't find NASM, an assembly optimizer, it'll revert to slow 'pure C' implementation - and say so. Thus, read ./configure's output. Install optional dependencies for those features you need. You may need to pass options defined in the --help.

make ## that will actually start the compile job, according to the last ./configure run (some will actually run configure with default settings first; it is also possible that there is no ./configure script). It should take a few minutes depending on how fast your processor is.

make install ## to be run as root. Will add libraries and binaries in default paths on your system, overwriting existing files. If run as user, will probably fail. You may run into dependency hell if you overwrite existing critical files.

For actual, package-dependent instructions, read the README files that are found inside the package. Most will sum up the above, others may give different instructions.

Some packages (mainly daily builds) will actually require tools like 'automake' that parse the current source files, create a ./configure script and run it.

Thanatopsis 10/07/2009 11:04 AM
Show
anamaniac 10/07/2009 11:04 AM
Hide
--3+

$100 for somethng you use everyday and is the base of everything you do is too expensive?
Hell, I pay $100 for my shoes (I like having comfortable shoes that don't fall apart), and I replace them once a year, so once every 3-4 years for a new OS isn't bad. I use my computer more than my shoes...

anamaniac 10/07/2009 11:08 AM
Hide
-0+

On a side note, if I remember correctly, Win7 Home is $100 OEM and $250 OEM.
These come with no support, but really, not like you'd use microsoft support anyways, especially if your a user using a linux distribution.

Anonymous 10/07/2009 12:29 PM
Hide
-6+

Really liked your article.
VBox is improving really fast, is free, and can do everything VmWare does.

zingam 10/07/2009 1:11 PM
Hide
-4+

Virtual Box is amazing!
If I use it and have money I would gladly donate! :) (But I'm not a nice guy I would still pirate Win because MS does not deserve my money)

zipzoomflyhigh 10/07/2009 1:49 PM
Show
evongugg 10/07/2009 1:58 PM
Hide
-1+

Finally you can do your taxes in Ubuntu with the Virtual machine.

You can install just about any version of Windows you want with a Virtual machine and more operating systems. See here for all the operating system supported.

http://www.virtualbox.org/wiki/Guest_OSes

randomizer 10/07/2009 2:37 PM
Hide
-7+

Thanatopsis :
"In order to follow this guide, you need an installed Linux distribution (I use Ubuntu), a legitimate copy of Windows XP, familiarity with the XP installation, and Sun's VirtualBox virtualization software (free). "You don't NEED a legitimate copy of XP. There's no reason this wouldn't work with any copy of it.


Are you suggesting that they actively promote piracy on a front page article? You must be joking.

Bunz_of_Steel 10/07/2009 2:52 PM
Hide
-1+

jsloan There is no need for your DA comments either! Gr8 article Adam!! Looking forward to pt2 maybe w/64bit multi-core difference comparisons with different memory allocations.

climber 10/07/2009 2:59 PM
Hide
-0+

I wonder if someone could switch their computer to linux, install the virtual box environment then install XP and get all the updates and everything to bring windows up to date, then install Ghost. Could one do a Ghost restore to that virtual PC to restore your drive to the virtual drive?


Sponsored links

Related articles

  • Construction and Form Factor Qnap is one of the vendors that builds high-dollar NAS devices--and you see that heritage in the TS-509 Pro. This device comes equipped with a 1.6 GHz Intel Celeron M420 CPU, as well as 1 GB DDR2-667 RAM, which also...

  • Some people might wonder whether installing this Linux derivate really is easy to do, and we are pleased to report that it is. We picked an ordinary computer system in our office, plugged the H2 device into an empty USB 2.0 port, and inserted the...

  • Macs are definitely cool, but Apple still needs to step up its game to gain more market share. Not only this, Apple needs to be on the side of users. Whatever the company is doing, it’s working nicely, and maybe Apple should stick with its current...

All about Software
 Latest Software articles
All Software articles

Newsletters


  • Ask your question about IT issues
  • Post

Partners

The Games selection

violent : Interactive Buddy Unwind on your interactive buddy: Do anything you want to him, it will earn you money, and you can buy other stuff to torture him with.
crazy : PC Breakdown What is worst than a Fatal Error occuring during a game you did not save? Unleash your rage at your PC in this game. Blow it to pieces, it feels so...
Ads

Sponsored links