depenguin-me / depenguin-run

Installer script for mfsBSD image to install FreeBSD 14.0 with zfs-on-root using qemu
MIT License
16 stars 7 forks source link

Testing Hetzner EX44 (NVMe) #79

Closed grembo closed 3 months ago

grembo commented 5 months ago

This server works mostly out of the box, but requires a special network driver from ports to work.

In this test, the network adapter was a Realtek RTL8125 2.5GbE Controller (vendor=0x10ec device=0x8125). This should work with net/realtek-re-kmod, but at the time of writing (March 2024) it doesn't. Instead, net/realtek-re-kmod198 is required (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275882 for details).


After finishing the installation, but before rebooting, drop into a shell and install the driver:

pkg install realtek-re-kmod198

Then adapt /boot/loader.conf to make use of it:

if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"
hw.re.max_rx_mbuf_sz="2048"  # optional

Finally configure the interface in /etc/rc.conf:

ifconfig_re0_name="untrusted"

ifconfig_untrusted="up"
ifconfig_untrusted_ipv6="up"
ifconfig_untrusted_aliases="inet 1.2.3.4/32 inet6 2a01:4f8:1:2a::2/64"

static_routes="gateway default"
route_gateway="-host 1.2.3.1 -interface untrusted"
route_default="default 1.2.3.1"

ipv6_defaultrouter="fe80::1%untrusted"

Legend:

bretton commented 3 months ago

Realtek cards are now catered for with https://github.com/depenguin-me/depenguin-builder/pull/25