Remote installation of FreeBSD

From Notes to self
Revision as of 20:22, 20 December 2024 by Verbovet (talk | contribs)
Jump to navigation Jump to search
  • Download the special edition mfsBSD USB memstick image
https://mfsbsd.vx.sk/files/images/14/amd64/mfsbsd-se-14.1-RELEASE-amd64.img
or build it:
: cd dir
mkdir DIST
fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/base.txz
fetch -o DIST https://download.freebsd.org/releases/amd64/14.2-RELEASE/kernel.txz
git clone --depth 1 https://github.com/mmatuska/mfsbsd
cd mfsbsd
  • # dd if=mfsbsd-se-14.1-RELEASE-amd64.img of=/dev/sda bs=1M
where /dev/sda is the boot drive.
On FreeBSD before running this command GEOM safety features should be disabled:
# sysctl kern.geom.debugflags=16
  • Reboot
  • Login as root, password: mfsroot
  • mkdir /mnt/dist
  • mount /dev/ada0p3 /mnt/dist
  • mkdir /usr/freebsd-dist
  • cp /mnt/dist/14.1-RELEASE/*.txz /usr/freebsd-dist/
  • umount /mnt/dist
  • bsdinstall