Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Feb 2019 15:05:22 +0100
From:      Ole <ole@free.de>
To:        freebsd-questions@freebsd.org
Subject:   Bhyve: virtio-net very slow with FreeBSD 12.0 Host
Message-ID:  <20190205150522.635b9e34.ole@free.de>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello,

I discovered that virtio-net very slow with FreeBSD 12.0 Host. And with
very slow I mean 16 kBit/s.

I can't exclude that there is a problem in my setup. But I created two
very similar setups. One with FreeBSD 11.2 and one with 12.0. The server
with 11.2 has no problem.

Either I do something really wrong or there is a Bug in the virtio-net.


Both Servers are connected to a switch, the IPs of the VMs are in the vlan
4030. The Bhyve VMs are mangaed by vm-bhyve (master from github). 

Bridges are created by rc.conf:

  # Vlans
  vlans_em0="030"
  ifconfig_em0_4030="mtu 1400 up"

  # Bridges
  cloned_interfaces="bridge0"
  ifconfig_bridge0="addm em0.4030 mtu 1400 up"

switch definition:

  switch_list="vm-net"
  type_vm-net="manual"
  bridge_vm-net="bridge0"

VM config:

  loader="bhyveload"
  cpu=7
  memory=40G
  network0_type="virtio-net"
  network0_switch="vm-net"
  disk0_type="virtio-blk"
  disk0_name="disk0"
  disk0_dev="sparse-zvol"


vm creation:

  vm create -t test-host -i FreeBSD-12.0-RELEASE-amd64.raw test-example-com
  vm start test-example-com

Network setup (on the VM):

root@freebsd:~ # ifconfig vtnet0 xx.xx.xx.xx/28 mtu 1400
root@freebsd:~ # route add default yy.yy.yy.yy

could someone help me to figure out if this is a Bug, and if yes where it is?

Thanks
Ole

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE60BGd7KVfL83NXCUJZaRRqjklFAFAlxZmCIACgkQJZaRRqjk
lFACnhAArkQExBee83Bg6bTIbb6snrc4GATOURr/2Om2ueU8uUAJWl4olV51cKC+
zCB5KoH0DsjTJzirlnk69L7alZVcrYY/o+QEgou/3esyQ5SHHexxcnR2PN5fP4OT
9yywTNKgrnzkJZvTpxAvQVK/xsTUF33aVj+ZPfCYc4RCEyZ+1yXAJNML9bad5fUf
dmqskT4mtU7TfzXxq2uU5hlsUaoBNMSHkUnVCHVEDEsm8OucLl6eKSoFJHfJp3MW
SNdNuO4Sn3oiRBXZ+X2uiHQqnu+wbhmjvw3JUTOJbZ30xI86oRVBY2AK4QUkYvHn
ruHjIDVLU2HZn6kozeQSDM9j0SSdNy0EXDy9IId3GIz82+LiSFjbF2/6NkWlD4ym
Lnzv3Abzz9iLz4B+npTriQ2Abh6u5O5FVCT0VJkbSKM76+qNc4JycnQ7K5iG5Gln
uV7oBIGAMEYHgNfOdCPNZsGtfiWjwNyP+JoEdkj8eHceJfqv3Xo4C26DVpYvOLbT
XpiKUwAAL5vkgCzVz1hPgvgJL2T+wkRsnav93+0S20YkBF8i+tTkhsUjciI6yPZ1
lZM//JTEGqmBOiM1QXxYZ7RrrHs/WqMOFieVBXNZcfu+QkqNAoCLjtdq29xNDZvH
qPSMnqj9Noe7xgEbUbqfFq4iadbZ4qAm0Zn0xEAngFFPpzPdS0Y=
=ztLx
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190205150522.635b9e34.ole>