Recently Ubuntu 10.04 LTS was released and after spending a few hours on the LiveCD I finally found a reason to migrate my Windows run laptops to this faster, lighter Operating System. I was getting sick of Windows and the constant management I had to do to keep it running at optimal spec, I do enough of that in work! When I get home I want a system I can turn on and in 10 seconds be browsing the net (that’s basically all I use my laptop for), Ubuntu does that for me.
However (there’s always something, right?), given that Windows owns roughly 91% of the Market Share of Operating Systems (source) it’s inevitable that I’ll want to do something with a program that’s only available in Windows at some point. It’s a sad truth that no matter how hard you try, completely breaking away from Windows is an extremely difficult task (I’ll always have to use it in Work for example, and I’m not complaining since Windows is my work!). So I’m doing the next best thing.
By streamlining Windows into my Ubuntu OS, I can use the sleek, fast OS on a daily basis and should I need to do something in Windows (Photoshop? Office 2007?) I can boot up my Windows OS and run my Windows programs natively in the Ubuntu System.
Don’t get me wrong, there’s always WINE, but I’ve had more problems getting that to work seamlessly than I have getting XP to boot in Ubuntu! Here’s what I did from start to finish, a complete guide to getting Windows (in this case XP) running seamlessly inside Ubuntu.
I want XP to run in a virtual environment, separate from Ubuntu so as not to cause any clashes between the operating systems. I want to be able to right-click and delete XP on a whim if I decide I don’t want it any more!
As we’re setting up a virtual environment, we will need a few things:
There’s a great, free open source virtual manager named VirtualBox OSE which I’ll be using to set up the environment, but you should note immediately that the OSE version does not support USB. If you can’t live without USB you should download the personal edition of VirtualBox.
Using Ubuntu’s Software Centre, search for VirtualBox OSE and install it.
Once it’s installed, you’ll see it in Applications > Accessories > VirtualBox OSE. Open the program and you’ll be greeted with the VirtualBox GUI and a setup screen for a new virtual machine (if not, please click New!)
The following screens show how I set up my new XP virtual machine:
I decided that at the moment, I have no intention of using memory heavy applications in XP, though I may change this at a later date. If you feel you will be wanting to run heavy applications you may consider increasing the ram used to a higher amount, however note that you should not set it too high, as you want your host OS to run stably aswell!
Here as I have not created a virtual OS before, I had to set up a new virtual disk. This is what I mentioned earlier about setting up a separate system so that the OS’s don’t clash with each other, here are the settings I selected for the HardDisk:
From here the Wizard finishes and gives you a nice new OS listed in your Virtual machines:
Select it, and click “start”. You will be prompted by a window, and then a new wizard will appear:
If you’re using a CD, leave the above settings as they are and click next. However if you are using an ISO from your computer you will need to click the little folder icon to the right of the Media Source drop down, on the next screen select “add” and navigate to your ISO image. It will then display as below:
That’s the end of the Wizard, and now you’ll see the Virtual window kick-start into life, with the familiar XP install screens:
The unpartitioned space will be different depending on the size of the virtual disk you made!
Following these steps, XP will install itself (you’ll get the usual XP setup screens) and within 10 or so minutes you’ll be presented with the familiar grassy hills and blue start menu that you’re used to! Is it good to be back? 😉
At the moment, this is how the virtual machine looks against your normal system:
So there’s still a little work to do! Back to the Virtual Window:
To get seamless integration to work, we’ll need to first install an extra package from VirtualBox. Navigate to Devices > Install Guest Additions… (Host + D)
Optionally, you can install Direct3D Support, though not required (I did, and it didn’t make much difference).
These messages may pop up, it’s the typical “non-trusted” driver installation. Continue as per normal as they’re perfectly safe.
Once you’ve restarted the virtual machine, navigate to Machine > Seamless Mode and voila!
Well, actually we are there, however something that bugged me was needing to open Virtualbox OSE when I wanted to start the XP Virtual machine. Well I’m too impatient for that, so here’s a quick and easy way of making a direct shortcut to the virtual machine itself:
Right click on the desktop and select Create Launcher…
In the command box, type VBoxManage startvm [your virtual machine name] and click ok.
**Now, whenever you need to use that Windows program you can boot up XP from the desktop shortcut, (it should default to seamless mode) and enjoy!!
Should you need to get it out of seamless mode, hit Right CTRL + L.I’m just happy I can now use the location feature in Windows’ version of Google Chrome 🙂