3.6 Running the emulator to install the guest operating system

In a command line interface, run the following commands. You can also enter all the commands in a text file, called it startvm.bat, and run the batch file instead. This can save you a lot of typing!

e:  
cd \qemu-0.10.5-windows  
qemu -hda hd1.qcow2 -m 256 -cdrom \\\\.\\d: -net nic,vlan=0 -net user,vlan=0,hostname=emu -boot d -L .  
    

If you have an ISO file that is not burned to a DVD, use the following command instead (assuming the ISO file is called binary.iso and it is in the same folder as the main QEMU folder):

e:  
cd \qemu-0.10.5-windows  
qemu -hda hd1.qcow2 -m 256 -cdrom binary.iso -net nic,vlan=0 -net user,vlan=0,hostname=emu -boot d -L .  
    

Let’s disect the last long command:

This should start the virtual machine. You should see a window that represents the virtual machine, and it should bootstrap as if the window itself is a real PC. The actual steps to install Linux in a virtual machine will be discussed later.