diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py index 36e4aef4..c2cbe01a 100644 --- a/pmb/qemu/run.py +++ b/pmb/qemu/run.py @@ -184,10 +184,8 @@ def command_qemu(args, arch, img_path, img_path_2nd=None): else: command += ["-device", "virtio-mouse-pci"] command += ["-device", "virtio-keyboard-pci"] - command += ["-nic", - "user,model=virtio-net-pci," - "hostfwd=tcp::" + port_ssh + "-:22," - ] + command += ["-netdev", "user,id=net,hostfwd=tcp::" + port_ssh + "-:22"] + command += ["-device", "virtio-net-pci,netdev=net"] if arch == "x86_64": command += ["-vga", "virtio"]