-
Notifications
You must be signed in to change notification settings - Fork 0
Win32 Machines
- python has to be installed and in the path
- ssh public key added in .ssh/authorized_keys (use echo in windows sh to copy the key)
How to get a QCow2 Windows VM + VirtIO for Openstack from a Official Vagrant Win32 Microsoft VM
-
download the vagrant win7-32 VM (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/)
-
create a Vagrant file and run vagrant up
-
download virtio-win iso drivers (https://docs.fedoraproject.org/quick-docs/en-US/creating-windows-virtual-machines-using-virtio-drivers.html)
-
mount the iso in the VM as cdrom
-
copy the files in C:\Users\IEUser\virtiodrivers
-
convert to QCow2 using qemu-img convert
qemu-img convert -f vmdk -O qcow2 image.vmdk image.qcow2 -
upload to Openstack
openstack image create --disk-format qcow2 --file win7_32.qcow2 win7_32 -
set the hardware disk bus to ide (Don't reboot the machine)
openstack image set --property hw_disk_bus='ide' win7_32 -
install manually the drivers (baloon and ethernet)
How to rearm the Win image when the temporary licens expires ( 3 months )
-
On a sysadmin command prompt ( from vagrant you should already be sysadm )
slmgr -rearm