PDA

View Full Version : Virtualization using Qemu


dsmyth
14th February 2010, 05:23 PM
I've managed to get a virtualised Windows running using a tool called qemu (which I think is KVM or at least has something to do with KVM). It's even more lightweight than VirtualBox.

Here are the steps I took if anyone is interested. This was done using F12 on a 32 Bit Celeron laptop with 3Gb of memory.

1. install the tools

yum groupinstall Virtualization
yum install gemu-system-x86 <-- might not be needed but doing it updated some files

2. Create a hard disk hda.img (6gigs)

qemu-img create hda.img 6G

3. Boot off a Windows Install CD (stored as an iso)

qemu -m 1552 -cdrom winxp.iso -hda hda.img -boot d

Wait for ages.... as it installs

4. Run the box with 1552 mb of memory

qemu -m 1552 -hda hda.img

The last command you can set up as an alias

alias winxp='qemu -m 1552 -hda hda.img'

so all you need to do at command prompt is type 'winxp' and the machine loads.

Hope this helps.