-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
my_windows template added + minor fix in the scripts
- Loading branch information
Showing
5 changed files
with
169 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# [My Windows $WINDOWS_VERSION ${WINDOWS_EDITION^} Evaluation](https://www.microsoft.com/en-us/evalcenter/evaluate-windows-${WINDOWS_VERSION}-${WINDOWS_EDITION}) | ||
|
||
## Modified Windows $WINDOWS_VERSION ${WINDOWS_EDITION^} ($WINDOWS_ARCH) Evaluation base box for [libvirt](https://github.com/vagrant-libvirt/vagrant-libvirt) and [virtualbox](https://www.vagrantup.com/docs/virtualbox/) Vagrant providers | ||
|
||
--- | ||
|
||
#### Github repository for bug reports or feature requests: | ||
|
||
[https://github.com/ruzickap/packer-templates/](https://github.com/ruzickap/packer-templates/) | ||
|
||
|
||
## Requirements | ||
* [QEMU-KVM](https://en.wikibooks.org/wiki/QEMU/Installing_QEMU) | ||
* [Vagrant](https://www.vagrantup.com/downloads.html) | ||
* [Vagrant Libvirt Plugin](https://github.com/pradels/vagrant-libvirt#installation) | ||
* [VirtualBox](https://www.virtualbox.org/) | ||
|
||
|
||
## Requirements for linux distributions running Vagrant | ||
Unfortunately you can not use the Vagrant package provided by your Linux distribution (at least for CentOS / Fedora / Debian). | ||
These distributions doesn't support naively [Ruby library for WinRM](https://github.com/WinRb/WinRM) needed by Vagrant for "talking" to Windows. | ||
Luckily [WinRM communicator](https://github.com/mitchellh/vagrant/tree/master/plugins/communicators/winrm) including the Ruby WinRM library is part of official Vagrant package. | ||
You will also need the latest version of [Vagrant Libvirt Plugin](https://github.com/pradels/vagrant-libvirt#installation) supporting [libvirt channels](https://libvirt.org/formatdomain.html#elementCharChannel). | ||
|
||
Here are the steps for latest Fedora how to install Vagrant from the official web pages: | ||
\`\`\` | ||
dnf remove vagrant | ||
|
||
dnf install -y https://releases.hashicorp.com/vagrant/2.0.2/vagrant_2.0.2_x86_64.rpm | ||
|
||
# virtualbox | ||
dnf install -y virtualbox | ||
|
||
# libvirt only | ||
dnf install -y libvirt-daemon-kvm qemu-kvm libvirt-devel | ||
vagrant plugin install vagrant-libvirt | ||
\`\`\` | ||
|
||
|
||
## Getting started | ||
|
||
Install and connect to the box: | ||
|
||
\`\`\` | ||
mkdir ${NAME} | ||
cd ${NAME} | ||
vagrant init ${VAGRANT_CLOUD_USER}/${NAME} | ||
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up | ||
# or | ||
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up | ||
\`\`\` | ||
|
||
|
||
## Login Credentials | ||
|
||
* Username: Administrator, vagrant | ||
* Password: vagrant | ||
|
||
|
||
## VM Specifications | ||
|
||
Drivers / Devices added for the VMs for specific providers. | ||
|
||
### Libvirt | ||
* Libvirt Provider | ||
* VirtIO dynamic Hard Disk (up to 50 GiB) | ||
* VirtIO Network Interface | ||
* QXL Video Card (SPICE display) | ||
* Channel Device (com.redhat.spice.0) | ||
|
||
### VirtualBox | ||
* SATA Disk | ||
|
||
|
||
## Configuration | ||
|
||
#### Minimal installation - see the [Autounattend file](https://github.com/ruzickap/packer-templates/blob/master/http/windows-${WINDOWS_VERSION}/Autounattend.xml) | ||
* UTC timezone | ||
* IEHarden disabled | ||
* Home Page set to "about:blank" | ||
* First Run Wizard disabled | ||
* Firewall allows Remote Desktop connections | ||
* AutoActivation skipped | ||
* DoNotOpenInitialConfigurationTasksAtLogon set to true | ||
* WinRM (ssl) enabled | ||
* New Network Window turned off | ||
* Administrator account enabled | ||
* EnableLUA | ||
* Windows image was finalized using \`sysprep\`: [unattended.xml](https://github.com/ruzickap/packer-templates/blob/master/scripts/win-common/unattend.xml) | ||
|
||
|
||
#### Additional Drivers installed for libvirt boxes - [VirtIO](https://fedoraproject.org/wiki/Windows_Virtio_Drivers) | ||
Installed during installation: | ||
* NetKVM: VirtIO Network driver | ||
* qxldod: QXL graphics driver | ||
* viostor: VirtIO Block driver (VirtIO SCSI controller driver) | ||
|
||
Installed components via Ansible playbook [win.yml](https://github.com/ruzickap/packer-templates/blob/master/ansible/win.yml): | ||
* vioscsi: Support for VirtIO SCSI pass-through controller | ||
* Balloon: VirtIO Memory Balloon driver | ||
* viorng: VirtIO RNG Device driver | ||
* vioser: VirtIO Serial Driver | ||
* vioinput: VirtIO Input Driver - support for new QEMU input devices virtio-keyboard-pci, virtio-mouse-pci, virtio-tablet-pci, virtio-input-host-pci | ||
* pvpanic: QEMU pvpanic device driver | ||
* qemu-ga: [Qemu Guest Agent](http://wiki.libvirt.org/page/Qemu_guest_agent) | ||
|
||
--- | ||
|
||
* added packages: see the [common_windows_packages](https://github.com/ruzickap/ansible-role-my_common_defaults/blob/master/vars/main.yml) | ||
|
||
|
||
#### Additional Drivers installed for virtualbox boxes | ||
* VirtualBox Guest Additions | ||
|
||
|
||
## Thanks to... | ||
|
||
* https://github.com/boxcutter/windows | ||
* https://github.com/StefanScherer/packer-windows | ||
* https://github.com/hashicorp/best-practices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters