Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is what I did on Folsom, I suppose it's still current. I used Windows 2012 ISOs for this:

  1. Download the virtio drivers from Fedora, place it with the Windows ISO
  2. Using virtmanager connect to a linux KVM host (you can use one of the compute nodes of Openstack!), create a new VM, use standards but don't start it.
  3. Edit the VM: remove the IDE disk, create a new qcow2 disk with virtio bus and attach; create a second IDE cdrom and attach the virtio drivers iso. Set the NIC to virtio too.
  4. Start the machine, at the disk selection screen, load the drivers from the second cdrom, the disk will appear and you can now install
  5. Boot, enable RDP, open Device Manager and install all the missing drivers (use the virtio iso). Be sure the network is set to DHCP and shutdown the KVM vm.

Now, in my case, the image was too big for glance to import (timeout); I then shrink it with (look into /var/lib/libvirt/images for the file):

# qemu-img convert -c -O qcow2 <input image>.img <output-image>.img

. Final size was ~8GB for a Windows 2012 with GUI. Now I can import it:

 # glance image-create --name="Windows" --is-public=true --container-format=ovf --disk-format=qcow2 < /var/lib/libvirt/images/windows.img