How to use this box with Vagrant:
Vagrant.configure("2") do |config|
config.vm.box = "jborean93/WindowsServer2022"
config.vm.box_version = "1.1.0"
end
vagrant init jborean93/WindowsServer2022 \
--box-version 1.1.0
vagrant up
This version was created about 1 year ago.
This is an image based on the evaluation ISO supplied by Microsoft. It has all the updates available for the host at the time applied and comes ready to be run by Vagrant. When Vagrant starts the box, sysprep will automatically run and create a brand new Windows instance with WinRM up and running.
Details on how to connect are;
username
: vagrantpassword
: vagrantconnector
: winrmIncluded programs (versions dependent on the Windows version);
Other configurations from the standard image;
pwsh.exe
) with SSH remoting setupvagrant
PSReadLine
, PowerShellGet
, and PackageManagement
modules to the latest version0.1.215-2
.Specific changes to this host type
pwsh
to the image and configured PSRemoting of pwsh
for both SSH and WinRM.0.1.185
.2.9.0
.Specific changes to this host type
qemu/libvirt
boxes and default template to use VirtIO drivers for better performance0.1.171
.2.7.0
.winrm
to psrp
for faster builds. The pypsrp Python library needs to be installed.LocalAccountTokenFilterPolicy
value when setting up the WinRM listeneropt_package_setup_packages
variable with -e
when generating the template to configureC:\Windows\SoftwareDistribution\Download
and C:\Recovery
as part of the cleanup processPackerWindoze
that stores the Reset-WinRMConfig
cmdlet that recreates the WinRM configuration and keep that post sysprep for downstream users to call at any timevagrant
account password to never expire-e opt_packer_setup_builder=hyperv
- This will only run on a Windows with WSL host and doesn't work for Server 2008slmgr.vbs /rearm
to run just after Vagrant starts the image to get the full evaluation period possible