This repository contains MS Windows templates, powershell scripts and bash scripted logic used to create qcow2 images for QEMU/KVM based virtual machines used in OpenStack.
Supported by builder versions with en_US localization:
Trial versions of Windows 2008 R2 / 2012 R2 used by default. You could use these images for 180 days without activation. You could download evaluation versions from official Microsoft website:
Debian based Linux distribution, like Ubuntu, Mint and so on.
Packages required: qemu-kvm virt-manager virt-goodies virtinst bridge-utils libvirt-bin uuid-runtime samba samba-common cifs-utils
User should be able to run sudo without password prompt!
sudo echo "${USER} ALL = NOPASSWD: ALL" > /etc/sudoers.d/${USER}
sudo chmod 440 /etc/sudoers.d/${USER}
Free disk space > 50G on partition where script will spawn virtual machines because of 40G required by virtual machine HDD image.
Internet connectivity.
Samba shared resource.
Configuration parameters to tweak:
[default]
[samba]
MS Windows install preparation:
[win2k12r2] or [win2k8r2] - shortcuts for 2012 R2 and 2008 R2.
By default [win2k8r2] - disabled, if you need you can enable this release in config.ini file.
Run chmod +x *.sh in builder directory to make script files executable.
runme.sh - the main script
All examples below describes changes in config.ini file
Disable [win2k8r2] from script processing.
[win2k8r2] enabled=false
Update [win2k12r2] with desired edition(standard).
[win2k12r2] enabled=true editions=standard
- Execute runme.sh --run
Disable [win2k8r2] from script processing.
[win2k8r2] enabled=falseUpdate [win2k12r2] with desired editions(standard and core).
[win2k12r2] enabled=true editions=standard coreExecute runme.sh --run
Update [win2k8r2] with desired edition(core).
[win2k8r2] enabled=true editions=coreUpdate [win2k12r2] with desired edition(core).
[win2k12r2] enabled=true editions=coreExecute runme.sh --run