Build Windows VMs
First published: Wednesday, May 28, 2025 | Last updated: Wednesday, May 28, 2025Build Windows VMs using the SloopStash Windows starter-kit.
Configure environment variables
Supported environment variables
# Allowed values for $OS_NAME variable.
* windows-10
* windows-11
# Allowed values for $OS_ARCHITECTURE variable.
* amd64
* arm64
# Allowed values for $OS_EDITION variable.
* server
* desktop
# Allowed values for $HYPERVISOR variable.
* virtualbox
* vmware
Set environment variables
# Store environment variables.
$ export OS_NAME=windows-10
$ export OS_ARCHITECTURE=amd64
$ export OS_EDITION=desktop
$ export HYPERVISOR=virtualbox
$ export VAGRANT_CONF_DIR=./vagrant/$OS_NAME/$HYPERVISOR/$OS_ARCHITECTURE/$OS_EDITION
Build and manage Windows VMs using Vagrant
Windows
You can use the below commands to build, automate, and manage Windows VMs on the Windows operating system using Vagrant.
- Open the Git Bash terminal in administrator mode.
- Execute the below commands in the Git Bash terminal to build, automate, and manage Windows VMs.
# Switch to SloopStash Windows starter-kit directory.
$ cd /opt/kickstart-windows
# Boot Windows VM using Vagrant.
$ VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant up
# SSH to Windows VM using Vagrant.
$ VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant ssh
# Exit from Windows VM.
$ exit
# Halt Windows VM using Vagrant.
$ VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant halt
# Destroy Windows VM using Vagrant.
$ VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant destroy
Mac and Linux
You can use the following commands to build, automate, and manage Windows VMs on a Mac or Linux operating system using Vagrant.
- Open the terminal.
- Execute the below commands in the terminal to build, automate, and manage Windows VMs.
# Switch to SloopStash Windows starter-kit directory.
$ cd /opt/kickstart-windows
# Boot Windows VM using Vagrant.
$ sudo VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant up
# SSH to Windows VM using Vagrant.
$ sudo VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant ssh
# Exit from Windows VM.
$ exit
# Halt Windows VM using Vagrant.
$ sudo VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant halt
# Destroy Windows VM using Vagrant.
$ sudo VAGRANT_CWD=$VAGRANT_CONF_DIR vagrant destroy