1. Download the driver
[Email protected] ~]# cd/usr/local/src[[email protected] src]# wget https://launchpad.net/kvm-gues ... ar.gz[[email pro Tected] src]# tar zxf virtio-win-full-20120712.tar.gz [[email protected] src]# CD virtio-win-full-20120712
2. Create a virtual disk.
[Email protected] opt]# qemu-img create-f raw/opt/windows-2008-x86_64.raw 10G
3. Start the installer and load the hard drive
[Email protected] opt]# virt-install--virt-type KVM--name windows2008--ram 1024x768--cdrom/opt/windows-2008-x86_64.iso- -disk path=/opt/windows-2008-x86_64.raw,device=disk,bus=virtio --network network=default--graphics Vnc,listen =0.0.0.0--noautoconsole--os-type=windows--disk path=/opt/virtio-win-drivers-20120712-1.vfd,device=floppy -- Os-type=windows--os-variant win2k8--boot cdrom
(Note: If the driver cannot be loaded automatically, manually select the driver inside the floppy disk and load the hard drive.) )
4. Restart the virtual machine and load the NIC driver
[Email protected] opt]#/usr/libexec/qemu-kvm-m 1024-drive file=/opt/windows-2008-x86_64.raw -cdrom/opt/ Virtio-win-drivers-20120712-1.iso-net nic,model=virtio-net user-boot Order=c-usbdevice tablet-nographic-vnc:0
OpenStack makes a Windows KVM image