Saturday, March 22, 2008

Qemu and Debian

After a few hiccups, I had a new debian machine running on Qemu in my Ubuntu Gutsy machine

1. sudo apt-get install qemu
2. wget http://cdimage.debian.org/debian-cd/4.0_r3/i386/iso-cd/debian-40r3-i386-CD-1.iso
Ensure the md5 check sum matches with the site(md5sum debian-40r3-i386-CD-1.iso of the file should match what is there on the server). This would save a lot of trouble. Don't skip it.
3. Create the image file
dd if=/dev/zero of=rootfile bs=1M count=2048
4. qemu -cdrom debian-40r3-i386-CD-1.iso -hda rootfile -net user -net nic -boot d
Install only the base system if you want to save time
5. If you complete the above step... Voila you can now boot into your brand new debian machine
qemu -hda rootfile -net user -net nic
Boot into it and get excited about seeing the shell prompt.

No wonder I soooooo love debian..

1 comment:

Venkat said...

neat blog u got here....