Hi All:
I wasted about a day and a half trying to get windows 7 pro x64 installed under kvm...much more difficult that installing XP pro.
I generally followed these links:
http://www.linux-kvm.org/page/Windows7Install
http://element.edoceo.com/howto/kvm
The second link suggested using the qcow2 format for the image and having had to increase my raw images before I wanted to use Qcow2 as well since resizing is simple. I created the image using:
qemu-img create -f qcow2 ~/VMs/Win_7_Pro.qcow2 24G
Qcow2 is interesting as it grows as required so the actual image created in disk was only a few hundred kilo bytes initially.
Here is my install script:
export SDL_VIDEO_X11_DGAMOUSE=0
export QEMU_AUDIO_DRV=alsa
kvm -boot d -drive file=/home/jserink/VMs/Win_7_Pro.qcow2,if=virtio,index=0,media=disk -drive file=/home/jserink/CDs/virtio-win-0.1-15.iso,if=ide,index=1,media=cdrom -drive file=/home/jserink/CDs/Win7X64.iso,if=ide,index=2,media=cdrom -m 4000 -smp 2 -usb -net nic,vlan=0,model=virtio,macaddr=52:54:00:00:EE:07 -net vde -localtime -no-quit -vga cirrus -name Win7 -monitor telnet:127.0.0.1:12997,server,nowait,ipv4 &
Worked fine but was very slow and right at the end when the installation was finishing, windows BSOD's inside the VM. Tried again installing on the same image, went faster as the files were already there but BSOD'd again, same spot. Tried one more time deleting the image and recreating it as above but again, BSOD, exact same spot.
Dumped the qcow2 and went for raw:
qemu-img create -f raw /opt/kvm/Win_7_Pro.img 24G
Installation script:
export SDL_VIDEO_X11_DGAMOUSE=0
export QEMU_AUDIO_DRV=alsa
kvm -boot d -drive file=/home/jserink/VMs/Win_7_Pro.img,if=virtio,index=0,media=disk -drive file=/home/jserink/CDs/virtio-win-0.1-15.iso,if=ide,index=1,media=cdrom -drive file=/home/jserink/CDs/Win7X64.iso,if=ide,index=2,media=cdrom -m 4000 -smp 2 -usb -net nic,vlan=0,model=virtio,macaddr=52:54:00:00:EE:07 -net vde -localtime -no-quit -vga cirrus -name Win7 -monitor telnet:127.0.0.1:12997,server,nowait,ipv4 &
Installed perfectly.
It appears Qcow2 is not quite up to snuff yet.
If you're installing Win 7 Pro in a VM for use under qeum-kvm, save yourself some time, use raw for your image format.
Cheers,
john


