diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-06 23:17:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-09 12:06:54 +0100 |
commit | 5e61766d976b6d036946c1b4e4ac742a33a03815 (patch) | |
tree | 038679749fbfb1d90faeddcb8fa67c963e4e28f2 | |
parent | c01962bf88786dd84ad83cc1d315297607d29f7c (diff) | |
download | openembedded-core-5e61766d976b6d036946c1b4e4ac742a33a03815.tar.gz openembedded-core-5e61766d976b6d036946c1b4e4ac742a33a03815.tar.bz2 openembedded-core-5e61766d976b6d036946c1b4e4ac742a33a03815.zip |
runqemu: Update to modern prefrerred net syntax
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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): 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' |