add VNCVM

This commit is contained in:
Elijah R
2024-06-11 13:46:24 -04:00
parent 1c0ee235dd
commit 794b801628
9 changed files with 286 additions and 28 deletions

View File

@@ -78,6 +78,14 @@ export class QemuVM extends EventEmitter {
await this.StartQemu(cmd);
}
SnapshotsSupported() : boolean {
return gVMShouldSnapshot;
}
async Reboot() : Promise<void> {
await this.MonitorCommand('system_reset');
}
async Stop() {
// This is called in certain lifecycle places where we can't safely assert state yet
//this.AssertState(VMState.Started, 'cannot use QemuVM#Stop on a non-started VM');