How to use this box with Vagrant:
Vagrant.configure("2") do |config|
config.vm.box = "action-test/windows-server-2019-datacenter-x64-eval"
config.vm.box_version = "20200218.05"
end
vagrant init action-test/windows-server-2019-datacenter-x64-eval \
--box-version 20200218.05
vagrant up
This version was created almost 3 years ago.
Clean and minimal Windows Server 2019 Datacenter (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__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-2019-datacenter-x64-eval
cd windows-server-2019-datacenter-x64-eval
vagrant init action-test/windows-server-2019-datacenter-x64-eval
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
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: