'-boot d' tells the emulated system to boot from the CD-ROM drive (or the. We launched the default qemu system (x86), and told it to use our computer's first CD-ROM drive as the guest OS's CD-ROM drive. Qemu -cdrom /dev/acd0 -boot d virtual_hard_drive.img & Insert your install CD, then, assuming it is an ISO9660 CD (most are, unless this is an Apple CD-ROM), mount it: I tested this with an old copy of Windows 98 that I had laying around. Now that we have a virtual hard disk image, we have to install a guest OS.
Note that the image will not actually take up 3 GB-it will grow as the guest OS needs it. This will create a Qemu formatted virtual hard drive image with a capacity of 3 GB named 'virtual_hard_drive.img' in the current directory. Qemu-img create -f qcow virtual_hard_drive.img 3G To create a new virtual hard drive image, as user, type To automatically load the kqemu kernel module every time your system starts up, add the following line to /boot/nf: We then need to load the kqemu kernel module: Optionally, if you want to build qemu with the qemu-accelerator kernel module, which will drastically increase qemu's performance in terms of x86-on-x86 emulation (if not, skip ahead): Its most popular (and well-developed) use is, however, decidedly x86 emulation. Qemu is a powerful computer processor emulator that can be used to emulate x86, Sparc, and PowerPC processors, among others.