Closed bretton closed 2 years ago
@bretton Step 1: Make depenguin.me available over IPv6 :)
@bretton Step 1: Make depenguin.me available over IPv6 :)
doh! should be fixed
@bretton With the latest changes, I managed to do a full IPv6 only install now.
Server type: AX51-NVMe
This is how the procedure worked (there were a few bumps in the road):
wget https://depenguin.me/run.sh && \
chmod 755 run.sh && \
./run.sh ~/.ssh/authorized_keys
mfsbsd@<ipaddr>
port 1022 as shown by run.shsudo bash
/root/enable_ipv6.sh
cd /tmp
mkdir download
cd download
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/MANIFEST
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/base.txz
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/kernel.txz
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/kernel-dbg.txz
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/lib32.txz
ln -s /tmp/download /usr/freebsd-dist
sha256 *txz
wheel
cat >/etc/resolv.conf <<EOF
nameserver 2a01:4ff:ff00::add:1
nameserver 2a01:4ff:ff00::add:2
EOF
pkg install bash sudo joe openntpd
2001:dead:beef:12::2
with your server's IP):
sysrc ifconfig_igb0_name="untrusted"
sysrc ifconfig_untrusted_ipv6="up"
sysrc ifconfig_untrusted_aliases="inet6 2001:dead:beef:12::2/64"
sysrc ipv6_defaultrouter="fe80::1%untrusted"
cat > /usr/local/etc/sudoers.d/wheel<<EOF
%wheel ALL=(ALL) NOPASSWD: ALL
EOF
service openntpd enable
/etc/fstab
to contain the correct partition name for the EFI partition (and comment it out):
# Device Mountpoint FStype Options Dump Pass#
#/dev/nvd0p1 /boot/efi msdosfs rw 2 2
/dev/mirror/swap.eli none swap sw 0 0
igb0
, not em0
what is used while configuring it within QEMU./dev/nvd0
and /dev/nvd1
once booted, within QEMU they are called /dev/ada0
and /dev/ada1
. When installing a UEFI enabled boot loader, this creates the wrong entry in /etc/fstab
, which will stop the server from booting correctly. It's best to comment out that line if it isn't needed (or correct the device name).For most applications it might make more sense to select GPT (BIOS) - i.e., no UEFI - as the partition scheme in bsdinstall.
This will allow to keep using the rescue system, which relies on PXE-boot:
thanks @grembo
is the scripted bsdinstall outlined at https://depenguin.me/bsdinstall.html not sufficient?
adapts https://github.com/depenguin-me/depenguin-builder/blob/main/customfiles/INSTALLERCONFIG.sample to variables
necessary updates can be added there
thanks @grembo
is the scripted bsdinstall outlined at https://depenguin.me/bsdinstall.html not sufficient?
adapts https://github.com/depenguin-me/depenguin-builder/blob/main/customfiles/INSTALLERCONFIG.sample to variables
necessary updates can be added there
I didn't test the scripted one, as I was following "my" standard setup, sorry. But I would probably not include IP setup that way and the remarks regarding GPT+UEFI still apply :)
I'll close this as successful test
NOTE: Since FreeBSD 13.2, the correct gpt label is used in /etc/fstab, so commenting out is not mandatory anymore.
It's not known how the script works with ipv6-only instances. ipv4 addresses are an addon now.
There is a corresponding issue here https://github.com/depenguin-me/depenguin-builder/issues/2