mwrock / packer-templates

Templates for creating vagrant boxes
Other
536 stars 250 forks source link

Libvirt support for Windows 2012R2 #40

Closed urisimchoni closed 8 years ago

urisimchoni commented 8 years ago

Hi,

This pull request adds support for creating Windows Vagrant boxes for the Vagrant libvirt provider, using the packer qemu builder. Libvirt/qemu (+kvm) are the "native" virtualization tools on Fedora Linux.

The patch attempts to reuse common code as much as is reasonable - so the Autounattend.xml is modified to include drivers on the virtual floppy. This is required for qemu to support virtio drivers which are not built-in on Windows. The directive is "grab whatever you find on A:\" - I hope it won't break vbox builds where there are no drivers (I wonder whether it's possible to always add those drivers to create a one-image-fits-all build. On Linux that works - the extra drivers just sit there and the kernel loads them on demand).

mwrock commented 8 years ago

Thanks! I tried a VirtualBox run with your added A:\ drive and things worked fine.