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 minuits in “Windows” We were shuting 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 shuting 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 wether its up and runing 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 wich will
act as an HDD during the emulation

qemu-img creat win.img 2048mb

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

Then create an ISO image of a CD wich 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 wich 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 trnsfer files between Linux and WIndows. But i dont
know wether 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

One thought on “Emulate with QEMU!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s