WIP:aryan/build #2
15
build.py
15
build.py
|
@ -8,14 +8,17 @@ image = f"/home/{user}/safe/debian.qcow2"
|
|||
initialize = [
|
||||
|
||||
"qemu-system-x86_64",
|
||||
"-enable-kvm",
|
||||
"-m", "2G",
|
||||
"-nic", "user,hostfwd=tcp::5555-:22",
|
||||
"-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,
|
||||
# "-display", "sdl",
|
||||
|
||||
# "-nographic",
|
||||
# "-serial", "mon:stdio",
|
||||
akemi
commented
Isn't this far too low? It should also be adjustable via argparse Isn't this far too low? It should also be adjustable via argparse
|
||||
|
||||
akemi
commented
This port should be configurable, otherwise we can't run several vms at the same time. Best put it in argparse This port should be configurable, otherwise we can't run several vms at the same time. Best put it in argparse
|
||||
"-vga", "virtio", # i think this fixes resolution but idk yet
|
||||
"-display", "sdl",
|
||||
]
|
||||
|
||||
akemi
commented
What are these doing here? What are these doing here?
|
||||
Popen(["cp", "/home/chopper/safe/debian.qcow2", f"/home/{user}/nnnnndebian.qcow2"]) #copy the base image to a directory with everyones virtual machines.
|
||||
#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)
|
||||
|
||||
akemi
commented
Say I enable Say I enable `nographic`. It seems like this display arg will conflict. Instead, it'd be better for these to be the else branch on the conditional below
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue
Documentation suggests using getuser