From eb1494f9da5a6b5a5453d692c9e258f1a7b0aee4 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 6 Sep 2016 23:17:07 +0100 Subject: runqemu: Update to modern prefrerred net syntax (From OE-Core rev: 5e61766d976b6d036946c1b4e4ac742a33a03815) Signed-off-by: Richard Purdie --- scripts/runqemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/runqemu') 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): if qb_tap_opt: qemu_tap_opt = qb_tap_opt.replace('@TAP@', tap).replace('@MAC@', mac) else: - qemu_tap_opt = "-net nic,model=virtio,mac=%s -net tap,vlan=0,ifname=%s,script=no,downscript=no" % (mac, self.tap) + qemu_tap_opt = "-device virtio-net-pci,netdev=net0,mac=%s -netdev tap,id=net0,ifname=%s,script=no,downscript=no" % (mac, self.tap) if self.vhost_enabled: qemu_tap_opt += ',vhost=on' -- cgit 1.2.3-korg