Method 1 (ref)
qemu-img create -f qcow2 vdisk.img 100g
sudo kvm -m 750 -cd-rom /dev/sr0 -boot d -vdisk.img
* kvm - calls the kernel virtual machine (obvious)
* -m 750 - allocates 750mb of memory for the virtual machine
* -cd-rom sets up the cd-rom. For a physical disk use same disk as your HostOS. For a image, provide a path to the image file.
* -boot d boots the virtual machine from the cd-rom
kvm -m 512 vdisk.img
Method 2 (link)
qemu-img create -f qcow2 vdisk.img 100g
sudo kvm -m 750 -cd-rom /dev/sr0 -boot d -vdisk.img
* kvm - calls the kernel virtual machine (obvious)
* -m 750 - allocates 750mb of memory for the virtual machine
* -cd-rom sets up the cd-rom. For a physical disk use same disk as your HostOS. For a image, provide a path to the image file.
* -boot d boots the virtual machine from the cd-rom
kvm -m 512 vdisk.img
Method 2 (link)