From 5e043d10532b9936a2e158986f6dbf69ce49d2d4 Mon Sep 17 00:00:00 2001 From: heckeralt Date: Fri, 20 Sep 2024 15:32:13 -0400 Subject: [PATCH] Update start-linux.js --- start-linux.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/start-linux.js b/start-linux.js index 99a099a..c0d7028 100644 --- a/start-linux.js +++ b/start-linux.js @@ -1,6 +1,8 @@ const http = require('http'); const child = require("child_process"); +let makedisk = "qemu-img create vm.img 30G" // make a 30GB disk let qemucmd = "qemu-system-x86_64 -vnc :1 -m 1G" +child.execSync(makedisk) child.execSync(qemucmd) http.createServer(function (req, res) { res.write('Server running at IP 127.0.0.1:5901 (VNC)'); //write a response to the client