Update start-linux.js
This commit is contained in:
parent
6c0f34dd9e
commit
5e043d1053
|
@ -1,6 +1,8 @@
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
const child = require("child_process");
|
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"
|
let qemucmd = "qemu-system-x86_64 -vnc :1 -m 1G"
|
||||||
|
child.execSync(makedisk)
|
||||||
child.execSync(qemucmd)
|
child.execSync(qemucmd)
|
||||||
http.createServer(function (req, res) {
|
http.createServer(function (req, res) {
|
||||||
res.write('Server running at IP 127.0.0.1:5901 (VNC)'); //write a response to the client
|
res.write('Server running at IP 127.0.0.1:5901 (VNC)'); //write a response to the client
|
||||||
|
|
Loading…
Reference in New Issue