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