Back

Install Windows Guest with Virtio driver on KVM

|

First, download the virtio driver from [here](http://alt.fedoraproject.org/pub/alt/virtio-win/stable/virtio-win-0.1-52.iso) and create a virtual disk before installation:
[cc lang="bash"]
wget http://alt.fedoraproject.org/pub/alt/virtio-win/stable/virtio-win-0.1-52.iso && \
qemu-img create -f raw windows.img 40G # Adjust size if you want.
[/cc]
Then build the guest system with the following parameters:
[cc lang="bash"]
virt-install --name win7 --ram 2048 --vcpus=2 \
--os-type=windows --os-variant=win2k8 --accelerate \
--cdrom=/home/eleven/iso/win7\_OEM.iso \
--disk path=/home/eleven/iso/virtio-win-0.1-52.iso,device=cdrom \
--disk path=/home/eleven/windows.img,format=raw,bus=virtio \
--bridge=br0,model=virtio \
--vnc --vncport=5991 --vnclisten=0.0.0.0
[/cc]
Finally, fire a VNC client and connect to host ip.

No comments yet

Leave a comment

About me

I live in Tasmania, an island a little far from the rest of the world and very close to the sea.
Father of two little girls, have two puppies.

Work

Work in IT industry, AI is my working partner.