From 3f50faca72d076fe420eeebd219a772804cae712 Mon Sep 17 00:00:00 2001 From: fanta Date: Mon, 21 Aug 2023 12:37:32 +0200 Subject: [PATCH] net --- q.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 q.py diff --git a/q.py b/q.py old mode 100644 new mode 100755 index fe54412..1b22c15 --- a/q.py +++ b/q.py @@ -70,7 +70,7 @@ def runVms(): for i in range(len(qcowFiles)): print("["+str(i)+"] - "+qcowFiles[i]) vmRun=input("\nMachine: ") - os.system("qemu-system-x86_64 -machine type=q35,accel=kvm -enable-kvm -smp $(nproc) --boot c -nographic -monitor telnet::45454,server,nowait -serial mon:stdio -m "+str(vmMemory)+" -hda "+dirVmsImgs+"/"+qcowFiles[int(vmRun)]) + os.system("qemu-system-x86_64 -machine type=q35,accel=kvm -enable-kvm -device virtio-net-pci,netdev=net0 -netdev user,id=net0,hostfwd=tcp::2222-:22 -smp $(nproc) --boot c -nographic -monitor telnet::45454,server,nowait -serial mon:stdio -m "+str(vmMemory)+" -hda "+dirVmsImgs+"/"+qcowFiles[int(vmRun)]) choice() def delVms():