Windows VMs
Run instances of Windows in sandboxes.
Last updated
Was this helpful?
Run instances of Windows in sandboxes.
Last updated
Was this helpful?
Windows VMs support all the same features as our Linux-based sandbox hosts, including running , PowerShell-based tabs, and the built-in .
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 .
If you want to give your users access to a virtual desktop, you can use a browser-based Remote Desktop client (like ) to give users access.
The following is a Guacamole based example to get you started quickly. Instruqt created a image with a fully functioning Guacamole installation, which you can add to your track's sandbox.
Add the gcr.io/instruqt/guacamole
container to your sandbox.
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 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.
The following check script checks if the C:\Users\instruqt\Desktop\check.txt
file is present:
The following solve script creates the C:\Users\instruqt\Desktop\check.txt
file.
Inject Guacamole configuration using a setup script. To allow Guacamole to connect to a Windows VM, you can write the to the/config/guacamole/user-mapping.xml
file. Make sure to update the username
and password
parameters, so they are valid for the VM.