VirtualBox 7 Compatability Changes

- Created a PowerShell script `virtualbox-wrapper.ps1` to wrap calls to vboxmanage and only exit once the virtual machine has been terminated.
- Updated launch.json to use the PowerShell launch type to launch `virtualbox-wrapper.ps1` with the machine name supplied as an argument.
- Updated `readme.md` to reflect these changes.
This commit is contained in:
t3hn3rd committed 2025-03-08 18:59:12 +00:00
1 parent 189526cab8
commit 25df276101
3 files changed
+27 -24

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
param (
$MachineName
)
VBoxManage.exe startvm $MachineName
$running=$true
while($running) {
Start-Sleep -Seconds 1
$status=(VBoxManage.exe list runningvms)
if($status) {
$running=$status.contains($MachineName)
} else {
$running=$false
}
}