Emulate with QEMU!

The first day I met Ven.ilgo (my Linux guru) The venerable thero showed me a magic (it was that much surprising for me at that day) with his Linux installed laptop by Booting “Windows Xp” within a window of his Debian Linux installation. Although we could see it in a window, “Windows Xp” seems to be acting just as it was the only OS running at that moment He has installed Firefox and even a python interpreter.
“First I used this to make my machine useful to another monk who refused to work with linux because he was a great fan of “MS Word Macro’s But now I use QEMU to check how well my python scripts work in Windows” said Ven.ilgo
After few minuets in “Windows” We were shutting down WinXp, guess what! Windows crashed!
“This is a joke! I can’t believe how people use this in their day2day life” it was ven.ilgo.
“May be it’s because of the Emulation? ” I replied.
“Oh no, It’s True that QEMU might slower than a normal windows installation. But not when KQEMU installed with 1GB of RAM. At least its fast enough not to crash” said the Venerable thero.(KQEMU is a driver allowing the QEMU PC emulator to run much faster when emulating a PC)
“What if we just close this window without shutting down windows?” It was me
“Then Windows will assume it as a power loss and run ‘the famous disk scan!’ “
That was enough for me at that day but wasn’t enough for me later so I Used QEMU after having a good tutorial from Ven.ilgo. I always wanted to cover a post on this but couldn’t done it coz of ma absence of leisure. Here is it now
(important : This is not a QEMU man page. This is just a simple intro to QEMU)
(Disclaimer : I’M NOT GUILTY IF U GET BUSTED OR KICKED OUT FROM “LKLUG” FOR USING ‘Windows’ WITH THIS EMULATOR D

Ok First We should install QEMU

apt-get install qemu

when qemu is installed try typing ‘qemu‘ to check weather its up and running or not

I assume U guys (or gals) are going to emulate ‘Windows’ Normally
windows will need 2Gb disk space so lets create a image file which will
act as an HDD during the emulation

qemu-img create win.img 2048mb

Yes! U can change the name or file size as U like.

Then create an ISO image of a CD which containing windows XP U can do
it by selecting the “copy to disk image” option which comes after
selecting copy from the right click menu of CD icon Give the name as “winXP.iso“

And now to switch on Ur emulated PC type we boot from CD now

qemu -hda win.img -cdrom /path/to/winXP.iso -boot d

You should replace the /path/to/winXP.iso with the correct path

now a window looking like a normal BIOS will open then act as U normally do during windows windows setup.

After installing U have to boot from HDD then type

qemu -hda win.img -cdrom /path/to/ANY.iso -boot c

If U want to install softwares in to Windows (or drivers) simply
create an ISO image which contains the softwares and replace the
/path/to/ANY.iso with the correct path and name of ISO image.

Check man qemu for further info.U can Use
a SAMBA server to transfer files between Linux and WIndows. But i don’t
know whether it supports winXP or not.

Oh! for the guys(or gals) who have been thinking. Yes! U can Use
another distro of Linux to emulate within QEMU too after all Why
Emulate being a fool? 😉

C.j

Leave a Reply

%d bloggers like this: