Here's a little convenience script to download virtio Windows drivers and launch virt-install to Install Windows. Copy/Paste this script into an empty folder, chmod +x it, and run it.
#!/bin/sh
WINISO=/path/to/win7.iso #Windows ISO
INSTALLDISK=win7virtio.img #Disk location. Can be LVM LV
VFD=http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-1.1.16.vfd
DRVRISO=http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-1.1.16.iso
[ -e $(basename $VFD) ] || wget $VFD
[ -e $(basename $DRVRISO) ] || wget $DRVRISO
[ -e $INSTALLDISK ] || qemu-img create $INSTALLDISK 30G
sudo virt-install -c qemu:///system --virt-type kvm --name win7virtio --ram 1024 --disk path="$INSTALLDISK",bus=virtio \
--disk $(basename $VFD),device=floppy --os-variant win7 --cdrom $(basename $DRVRISO) --cdrom "$WINISO" --vcpus 2
et voila Windows installer kicks in, we're greeted with the usual


Next the welcome screen, and agree on the license agreement (if you want!)

In this next screenshot, we see how Windows Installer does not see any "disks". This is because Windows now does not have any drivers for the virtio disk that we attached!

Let's fix that, clicking "Load Driver" and clicking OK, Windows starts reading the VFD virtual floppy image we attached, and detects the driver


Clicking Next, Windows can now see the virtio disk

Then it's business like usual

After installation completes, be sure to check the device manager and confirm the disk (and network) are both using optimized virtio drivers

et voila, Windows in its full glory running over optimized virtio drivers. The only part that sucks is desktop VNC performance, something that I'll probably write about very soon :)

Hi,
this is a very interesting article. I did try to do the same on my maverick install.
I had to stop beacuse of unsigned virtIo storage drivers?
Am I missing something?
Thanks
Hi sante,
The storage drivers are installed from that vfd early in the win7 installation process. I didn’t get unsigned warnings. Are you sure you’re using that vfd =>
http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-1.1.16.vfd
What happens if you accept installing it, does it work
I guess the word is “burst of laughing”. Simply on the net somebody who is talking about my most secret ideas? You really manage to operate a fast KVM? HOW? To get back serious:
– my base is also UBUNTU 11.04
– via Virtual Box I am placing Content Management Systems and historical OS’s commencing with W but only as isles in a sea of UBU.
My experience now is cruel slow working of KVM Qemu.
How could I proceed
– download kvm…..tar.bz2
– expand it into htdocs of the existing apache
– is there something to do with drivers
– install it using mozi with localhost/kvmdirectory
Hi Roland, Not really sure why you’re downloading kvm into apache and “mozi” is ? Care to please supply more detail ?
mozi = mozilla firefox what I am using. I will use the clear expression Firefox.
On the net I find files with extension …. kvm … tar bz….
I am used to download eg Joomla with “tar xvfz ..tar.gz into “xampp/…/ htdocs .. This makes me do Joomla.
The big question: how do I expand the kvm so it will work fast. I Think this could be done in 5 5 lines. I tried also kvm once and I managed to start work with it but but cruel slow. the machine says: kvm ist not loaded.
OK, stupid question:
Once you’ve installed it, how do you fire up that Win7 VM next time you need to use it?
Don’t have much experience with qemu-kvm…
Hi ziv, well it’s quite simple, just launch virt-manager and you should find the vm listed there, click it and click the power-on button that’s it
OK, now I understand why I was having troubles…
Let me give you a constructive critique
When you wrote this “howto” you assumed one has all the required stuff upfront and didn’t even mention them, so I’d like to point out that prior to using this script you should make sure you have installed the following packages:
libvirt-bin
libvirt0
virtinst
virt-manager
qemu-kvm
this is for people like me, that didn’t think of it before and got in a lot of errors when trying to run the script and ever time had to solve a different dependency issue…
After I install the drivers, I can not continue because it says “No new Driver can be found, make sure the driver files are correct and located on the driver installation media”. I have been struggling with this issue. any help would be appreciated.
Thanks!
Gary
Hey Gary, I see the iso has been updated, this is the new one
http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-0.1-mm34.iso
So update the script with that, hopefully it’ll work