在ubuntu 12.04中制作
1.下載virtio
http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-0.1-30.iso
2.下載windows server 2008
本例中鏡像名稱為windows2008.iso
3.
kvm-img create -f qcow2 windowsserver.img 20G
4.
kvm -m 1024 -cdrom windows2008.iso -drive file=windowsserver.img,if=virtio -boot d -drive file=virtio-win-0.1-30.iso,index=3,media=cdrom -device virtio-net-pci
-net nic -net user -nographic -vnc :5
5. 新打開一個ternal
vncviewer localhost:5
6.
默認不識別硬盤,網卡。點擊Load Driver,選擇
選擇第二個CDROM,依次Vista, win7,wlh,加載x86的驅動