mirror of
https://git.56k.es/fanta/q.git
synced 2024-05-29 10:43:32 +02:00
port 3000
This commit is contained in:
parent
2462ede429
commit
1606d9e2ab
2
q.py
2
q.py
|
@ -73,7 +73,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 -device virtio-net-pci,netdev=net0 -netdev user,id=net0,hostfwd=tcp::2222-:22,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=tcp::8080-:8080 -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,hostfwd=tcp::3000-:3000,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=tcp::8080-:8080 -smp $(nproc) --boot c -nographic -monitor telnet::45454,server,nowait -serial mon:stdio -m "+str(vmMemory)+" -hda "+dirVmsImgs+"/"+qcowFiles[int(vmRun)])
|
||||
choice()
|
||||
|
||||
def delVms():
|
||||
|
|
Loading…
Reference in New Issue
Block a user