3 QEMU options

Run the emulator command differently. Instead of using just one hard disk as hda, set up multiple hard disks. You have to use the options -hda, -hdb and -hdd. We cannot specify -hdc because that IDE channel is also used by the emulated CDROM that we need to start the installer. The following is a sample command (make changes as necessary):

qemu -M pc -m 512 -usb -hda hd1.qcow2 -hdb hd2.qcow2 -hdd hd3.qcow2 -localtime -cdrom installer.iso -net nic,vlan=0 -net user,vlan=0,hostname=emu -boot d  
  

If you are doing this in a Windows environment, and all files are created inside the QEMU (version 0.10 or more recent) folder, then the command should look like the following:

qemu -M pc -m 512 -usb -hda hd1.qcow2 -hdb hd2.qcow2 -hdd hd3.qcow2 -localtime -cdrom installer.iso -net nic,vlan=0 -net user,vlan=0,hostname=emu -boot d -L .  
  

Note that additional option -L . to specify where to find the BIOS files.

If you have an actual CD/DVD instead of an ISO image on the d: drive, then the command should be as follows:

qemu -M pc -m 512 -usb -hda hd1.qcow2 -hdb hd2.qcow2 -hdd hd3.qcow2 -localtime -cdrom \\.\d: -net nic,vlan=0 -net user,vlan=0,hostname=emu -boot d -L .  
  

Note the use of \\.\d: to specify the actual CD-ROM drive device.