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>

next in thread | raw e-mail | index | archive | help
--Sig_/hzMT/DWeH6RFwqqMA6OukBU
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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).=20

Bridges are created by rc.conf:

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

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

switch definition:

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

VM config:

  loader=3D"bhyveload"
  cpu=3D7
  memory=3D40G
  network0_type=3D"virtio-net"
  network0_switch=3D"vm-net"
  disk0_type=3D"virtio-blk"
  disk0_name=3D"disk0"
  disk0_dev=3D"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 i=
s?

Thanks
Ole

--Sig_/hzMT/DWeH6RFwqqMA6OukBU
Content-Type: application/pgp-signature
Content-Description: Digitale Signatur von OpenPGP

-----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-----

--Sig_/hzMT/DWeH6RFwqqMA6OukBU--



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