[solved] Re: Bhyve: virtio-net very slow with FreeBSD 12.0 Host
Ole
ole at free.de
Fri Mar 20 09:16:45 UTC 2020
Hello,
just for the record:
There is also a Bug Report documenting this
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242894
It seems, there is a Bug in the hardware vlan tag processing.
I can solve the problem if I configure the interface with -vlanhwtag on
the host before starting the rest. (via rc.conf)
Thanks to Mike who gave me this hint
Ole
Tue, 5 Feb 2019 15:05:22 +0100 - Ole <ole at free.de>:
> 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 at freebsd:~ # ifconfig vtnet0 xx.xx.xx.xx/28 mtu 1400
> root at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200320/6f648993/attachment.sig>
More information about the freebsd-questions
mailing list