Skip to content

Commit

Permalink
qemu: Use virtio network card rather then e1000
Browse files Browse the repository at this point in the history
Instead of using the (default) qemu emulated e1000 card use a
virtio-net card instead which should give a small performance boost.

Signed-off-by: Sjoerd Simons <[email protected]>
  • Loading branch information
sjoerdsimons committed Sep 23, 2023
1 parent 998f373 commit 1854e13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (b qemuBackend) StartQemu(kvm bool) (bool, error) {
"-kernel", kernelPath,
"-initrd", m.initrdpath,
"-display", "none",
"-nic", "user,model=virtio-net-pci",
"-no-reboot"}

if kvm {
Expand Down

0 comments on commit 1854e13

Please sign in to comment.