How to use this box with Vagrant:
Vagrant.configure("2") do |config|
config.vm.box = "peru/windows-server-2016-standard-x64-eval"
config.vm.box_version = "20230505.01"
end
vagrant init peru/windows-server-2016-standard-x64-eval \
--box-version 20230505.01
vagrant up
This version was created over 1 year ago.
Clean and minimal Windows Server 2016 Standard (x64) Evaluation base box for libvirt and VirtualBox Vagrant providers.
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 needed by Vagrant for talking to Windows. Luckily WinRM communicator including the Ruby WinRM library is part of official Vagrant package. You will also need the latest version of Vagrant Libvirt Plugin supporting libvirt channels.
Here are the steps for latest Fedora how to install Vagrant from the official web pages:
dnf remove vagrant
VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')
dnf install "https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm"
# virtualbox
# Details here: https://rpmfusion.org/Howto/VirtualBox
# libvirt
dnf install -y gcc libvirt-daemon-kvm qemu-kvm libvirt-devel make rdesktop
vagrant plugin install vagrant-libvirt
Install and connect to the box:
mkdir "windows-server-2016-standard-x64-eval" && cd "windows-server-2016-standard-x64-eval" || exit
vagrant init "peru/windows-server-2016-standard-x64-eval"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Install freerdp to connect to Windows using RDP protocol:
# Fedora
dnf install freerdp
# Ubuntu
apt-get install freerdp2-x11
vagrant rdp -- /cert-ignore
Drivers / Devices added for the VMs for specific providers.
See the Autounattend file
about:blank
sysprep
: unattended.xml
Installed during installation:
Installed components via Ansible playbook win-simple.yml: