Windows VMs
Run instances of Windows in sandboxes.
Running Windows-based VM images
Windows VMs support all the same features as our Linux-based sandbox hosts, including running Lifecycle scripts, PowerShell-based Terminal tabs, and the built-in file editor.
In addition, the Instruqt platform injects an instruqt
user with password Passw0rd!
and a pre-configured ssh-key
to facilitate interaction with other hosts in the environment. This user has Administrator rights.
As all the VMs run on the Google Cloud Platform, you can use any Windows version supported by GCP. For Windows Server instances, GCP can provide on-demand licenses. For Windows Client (For example, Windows 7 and 10), you must bring your license.
Read more about running Windows workloads on GCP.
Add a Remote Desktop tab
If you want to give your users access to a virtual desktop, you can use a browser-based Remote Desktop client (like Apache Guacamole) to give users access.
The following is a Guacamole based example to get you started quickly. Instruqt created a Docker container image with a fully functioning Guacamole installation, which you can add to your track's sandbox.
Step 1: Add Guacamole
Add the gcr.io/instruqt/guacamole
container to your sandbox.
Step 2: Configure Guacamole
Inject Guacamole configuration using a setup script. To allow Guacamole to connect to a Windows VM, you can write the connection configuration to the/config/guacamole/user-mapping.xml
file. Make sure to update the username
and password
parameters, so they are valid for the VM.
Step 3: Display Guacamole connection
Add a service
tab for Guacamole. This will add a Remote Desktop tab that automatically connects to the Windows VM. Make sure to update guac_user
and guac_password
with the appropriate credentials.
Windows Lifecycle Scripts
Windows VMs support Powershell lifecycle scripts with the same naming convention as Linux hosts. For example: check-windows
would run a check on the host named windows. Check and solve script examples are below. Use a Write-Output
and exit 1
to trigger the failure message to your user.
Powershell check script
The following check script checks if the C:\Users\instruqt\Desktop\check.txt
file is present:
Powershell solve script
The following solve script creates the C:\Users\instruqt\Desktop\check.txt
file.
Last updated