Build Windows VMs

First published: Wednesday, May 28, 2025 | Last updated: Wednesday, May 28, 2025

Build Windows VMs using the SloopStash Windows starter-kit.


Previous: Configure

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.

  1. Open the Git Bash terminal in administrator mode.
  2. 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.

  1. Open the terminal.
  2. 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

Previous: Configure