production backend setup

This commit is contained in:
Lily Tsuru 2024-04-03 01:50:46 -04:00
parent 6b103e7510
commit 77ea56e1a8

View file

@ -155,7 +155,7 @@ class SocketVM extends EventEmitter {
super(); super();
this.vm = vm; this.vm = vm;
this.timer = new ExtendableTimer(2); this.timer = new ExtendableTimer(15);
this.timer.on('expired', async () => { this.timer.on('expired', async () => {
// bye bye! // bye bye!
@ -420,8 +420,8 @@ export class SocketComputerServer {
} }
async InitVM() { async InitVM() {
let diskpath = '/srv/collabvm/vms/socket1/socket1.qcow2'; let diskpath = '/srv/collabvm/vms/socket1/winxp.qcow2';
let slotDef: QemuVmDefinition = Slot_PCDef('2G', '-netdev user,id=vm.wan', 'rtl8139', await GenMacAddress(), true, diskpath, 'qcow2'); let slotDef: QemuVmDefinition = Slot_PCDef('2G', '-netdev tap,ifname=ktsocket1,script=no,downscript=no,id=vm.wan', 'rtl8139', 'c0:11:ab:69:44:02', true, diskpath, 'qcow2');
setSnapshot(true); setSnapshot(true);