Compare commits
No commits in common. "5e94d00a5c9f3ee4588a643a73dfa2ae9c2db9fb" and "090e6569a8cfb6067a58b5b2ba2dfe63032acef3" have entirely different histories.
5e94d00a5c
...
090e6569a8
1 changed files with 1 additions and 22 deletions
23
build.py
23
build.py
|
@ -1,24 +1,3 @@
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
import os
|
|
||||||
|
|
||||||
user = os.getlogin()
|
|
||||||
image = f"/home/{user}/safe/debian.qcow2"
|
|
||||||
|
|
||||||
|
|
||||||
initialize = [
|
|
||||||
"qemu-system-x86_64",
|
|
||||||
"-enable-kvm",
|
|
||||||
"-m", "2G", # ram allocation
|
|
||||||
"-nic", "user,hostfwd=tcp::5555-:22", #forward port 5555 in host to port 22 in vm
|
|
||||||
"-drive", "file=%s,media=disk,if=virtio" % image,
|
|
||||||
|
|
||||||
# "-nographic",
|
|
||||||
# "-serial", "mon:stdio",
|
|
||||||
|
|
||||||
"-vga", "virtio", # i think this fixes resolution but idk yet
|
|
||||||
"-display", "sdl",
|
|
||||||
]
|
|
||||||
|
|
||||||
#Popen(["cp", "/home/chopper/safe/debian.qcow2", f"/home/{user}/nnnnndebian.qcow2"]) #copy the base image to a directory with everyones virtual machines.
|
|
||||||
Popen(initialize)
|
|
||||||
|
|
||||||
|
print("meow")
|
||||||
|
|
Loading…
Reference in a new issue