Skip to content

Commit b97ceab

Browse files
committed
vm: use qemu virtio network devices
On my system this speeds up time to /init for a network attached VM with static IP from 3.143863s to 0.735700s - a >4X improvement. kernel/*config files already include CONFIG_VIRTIO_NET=y, so no other changes should be needed. Signed-off-by: David Disseldorp <ddiss@suse.de>
1 parent 564656a commit b97ceab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function _vm_start
6565
|| _fail "IP_ADDR${vm_num} not configured"
6666
kern_ip_addr="${ip_addr}:::255.255.255.0:${hostname}"
6767
fi
68-
qemu_netdev="-device e1000,netdev=nw1,mac=${mac_addr} \
68+
qemu_netdev="-device virtio-net,netdev=nw1,mac=${mac_addr} \
6969
-netdev tap,id=nw1,script=no,downscript=no,ifname=${tap}"
7070
fi
7171

0 commit comments

Comments
 (0)