vault backup: 2025-03-08 17:06:52

This commit is contained in:
Jerry Jacobs 2025-03-08 17:06:52 +01:00
parent 68f93a2465
commit b7bb66ff25
1 changed files with 4 additions and 15 deletions

View File

@ -24,12 +24,10 @@ Fetch a FreeBSD Installer ISO image:
```shell
# cd /tmp
# wget https://download.freebsd.org/releases/ISO-IMAGES/14.2/FreeBSD-14.2-RELEASE-amd64-bootonly.iso
# wget https://download.freebsd.org/releases/ISO-IMAGES/14.2/FreeBSD-14.2-RELEASE-amd64-disc1.iso
# wget https://download.freebsd.org/releases/ISO-IMAGES/14.2/CHECKSUM.SHA256-FreeBSD-14.2-RELEASE-amd64
# sha256sum FreeBSD-14.2-RELEASE-amd64-bootonly.iso
d063e48b81b99005c8097e60377c23fb07e4116c5f0c0b41a5dc368fc4df6bf9 FreeBSD-14.2-RELEASE-amd64-bootonly.iso
# cat CHECKSUM.SHA256-FreeBSD-14.2-RELEASE-amd64 | grep FreeBSD-14.2-RELEASE-amd64-bootonly.iso
SHA256 (FreeBSD-14.2-RELEASE-amd64-bootonly.iso) = d063e48b81b99005c8097e60377c23fb07e4116c5f0c0b41a5dc368fc4df6bf9
# sha256sum FreeBSD-14.2-RELEASE-amd64-disc1.iso
# cat CHECKSUM.SHA256-FreeBSD-14.2-RELEASE-amd64 | grep FreeBSD-14.2-RELEASE-amd64-disc1.iso
```
For the post-install network configuration step _(`/etc/rc.conf`)_, try to figure out now what is your NIC model ([Handbook: Locating the correct driver](https://www.freebsd.org/doc/handbook/config-network-setup.html))
@ -40,19 +38,10 @@ For the post-install network configuration step _(`/etc/rc.conf`)_, try to figu
Subsystem: Intel Corporation Ethernet Connection I354 2.5 GbE Backplane
```
Setup NAT on the Linux host by creating a tap interface
```
ip tuntap add tap0 mode tap
ip addr add 192.168.100.1/24 dev tap0
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o enp0s20 -j MASQUERADE
```
Start the FreeBSD installer through Qemu, attached to the physical server disk, with the curses UI:
```
# qemu-system-x86_64 -hda /dev/sda -cdrom FreeBSD-14.2-RELEASE-amd64-bootonly.iso -netdev tap,id=nd0,ifname=tap0,script=no,downscript=no -device virtio-net-pci,netdev=nd0 -curses -boot d
# qemu-system-x86_64 -hda /dev/sda -cdrom FreeBSD-14.2-RELEASE-amd64-bootonly.iso -net none -curses -boot d
```
Configure IPv4 static IP (as there is no DHCP server on the Linux host)