Using Qemu By Example

Yesterday, I wrote a post about how to install Qemu and KQemu in Ubuntu Linux. There’re more interesting things about Qemu. Let’s get started with basic usage of Qemu. Following example creates 2GB disk image for Fedora Core 6.

qemu-img create fc6.img 2G

Start Qemu with following command,

qemu -hda fc6.img -cdrom /dev/cdrom -boot d -m 256 -enable-audio -localtime -user-net

The -hda fc6.img tells Qemu to use the image that you’ve created. The -boot d tells Qemu to boot from CD-ROM, then from HDA. If you want to boot from floppy, use -boot a and -boot c for the Hard Disk. And the -m 256 is to use 256MB of virtual machine memory.

The keyboard shortcuts for Qemu is here. If you would like to explore more about Qemu, you may read the Qemu Documentation. I like Qemu because it’s easier to install and configure than VMware.

Leave a Reply