WIP:aryan/build #1

Closed
chopper wants to merge 4 commits from aryan/build into main
Showing only changes of commit 5e94d00a5c - Show all commits

View file

@ -8,14 +8,17 @@ image = f"/home/{user}/safe/debian.qcow2"
initialize = [ initialize = [
"qemu-system-x86_64", "qemu-system-x86_64",
"-enable-kvm", "-enable-kvm",
"-m", "2G", "-m", "2G", # ram allocation
"-nic", "user,hostfwd=tcp::5555-:22", "-nic", "user,hostfwd=tcp::5555-:22", #forward port 5555 in host to port 22 in vm
"-drive", "file=%s,media=disk,if=virtio" % image, "-drive", "file=%s,media=disk,if=virtio" % image,
# "-display", "sdl",
# "-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(["cp", "/home/chopper/safe/debian.qcow2", f"/home/{user}/nnnnndebian.qcow2"]) #copy the base image to a directory with everyones virtual machines.
Popen(initialize) Popen(initialize)