forked from heckeralt/FreeVM-Server
Update start-linux.js
This commit is contained in:
parent
d78bdb1d59
commit
6271ac2ba8
|
@ -1,7 +1,7 @@
|
||||||
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 makedisk = "qemu-img create vm.img 30G" // make a 30GB disk
|
||||||
let qemucmd = "qemu-system-x86_64 -vnc :1 -m 1G -hda vm.img"
|
let qemucmd = "qemu-system-x86_64 -vnc :1 -m 1G -hda vm.img -accel kvm"
|
||||||
child.execSync(makedisk)
|
child.execSync(makedisk)
|
||||||
child.execSync(qemucmd)
|
child.execSync(qemucmd)
|
||||||
http.createServer(function (req, res) {
|
http.createServer(function (req, res) {
|
||||||
|
|
Loading…
Reference in New Issue