Page 1 of 1

vtnet problem in FreeBSD on macOS for ARM

Posted: 22. Nov 2024, 21:16
by Tüxen
When using FreeBSD as a guest OS on macOS as the host OS, vtnet interfaces work fine when the Mac is Intel based, but don't work when the Mac is ARM based. Tested with VB 7.1.4 and the latest test build of VB. In both cases using a developer version on FreeBSD.

On ARM the boot messages contain:

Code: Select all

virtio_pci1: <VirtIO PCI (legacy) Network adapter> mem 0xe1854000-0xe1855fff at device 9.0 on pci0
vtnet0: <VirtIO Networking Adapter> on virtio_pci1
vtnet0: Invalid max_virtqueue_pairs value: 65535. Multiqueue feature disabled.
virtio_pci1: virtqueue 0 (vtnet0-rx0) size is not a power of 2: 65535
virtio_pci1: cannot allocate virtqueue 0: 6
vtnet0: cannot allocate virtqueues
device_attach: vtnet0 attach returned 6
Is this a known problem in VB on ARM-based Macs? If changes in FreeBSD are required, I'm happy to test them. Any idea what could be the root cause?

Re: vtnet problem in FreeBSD on macOS for ARM

Posted: 22. Nov 2024, 21:52
by klaus
No immediate idea. The same code is used for the device emulation. No known or intended behavior difference.

Re: vtnet problem in FreeBSD on macOS for ARM

Posted: 23. Nov 2024, 12:59
by Tüxen
Is there anything I can do from the guest OS side to help figuring out what is going on?