diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index c43db8c227..b9dbe97cba 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -741,7 +741,7 @@ class BaseConfig(object): | |||
741 | if qb_tap_opt: | 741 | if qb_tap_opt: |
742 | qemu_tap_opt = qb_tap_opt.replace('@TAP@', tap).replace('@MAC@', mac) | 742 | qemu_tap_opt = qb_tap_opt.replace('@TAP@', tap).replace('@MAC@', mac) |
743 | else: | 743 | else: |
744 | qemu_tap_opt = "-net nic,model=virtio,mac=%s -net tap,vlan=0,ifname=%s,script=no,downscript=no" % (mac, self.tap) | 744 | qemu_tap_opt = "-device virtio-net-pci,netdev=net0,mac=%s -netdev tap,id=net0,ifname=%s,script=no,downscript=no" % (mac, self.tap) |
745 | 745 | ||
746 | if self.vhost_enabled: | 746 | if self.vhost_enabled: |
747 | qemu_tap_opt += ',vhost=on' | 747 | qemu_tap_opt += ',vhost=on' |