Files
os/tools/vm/start-vm.ps1
2026-10-25 14:11:49 +01:00

11 lines
494 B
PowerShell

# Starts the Fennec OS VM (QEMU in WSL Debian). The window appears via WSLg.
# powershell -File tools\vm\start-vm.ps1 # boot the last built image
# powershell -File tools\vm\start-vm.ps1 -Build # rebuild image first
param([switch]$Build, [string]$Bt = "")
if ($Build) {
wsl -d Debian -u root -- bash /mnt/g/source/smartfox/image/build.sh
}
$extra = ""
if ($Bt) { $extra = "--bt $Bt" }
wsl -d Debian -u root -- bash -c "cd /root/smartfox && bash image/run-qemu.sh $extra"