From 5e94d00a5c9f3ee4588a643a73dfa2ae9c2db9fb Mon Sep 17 00:00:00 2001 From: pyarya Date: Sat, 17 Aug 2024 17:22:29 -0600 Subject: [PATCH] build script update --- build.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index a2c8458..c559fd4 100644 --- a/build.py +++ b/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", + + "-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) - -