[ prog / sol / mona ]

prog


random Unix things

19 2020-05-07 18:21 *

mfsbsd is a wonderful tool if you want to install FreeBSD on a dedicated server without KVM. Install instructions are never updated on the website or on the FreeBSD wiki though.

https://mfsbsd.vx.sk/

Take note of the static ip of the server and the gateway.

% fetch https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/12.1/FreeBSD-12.1-RELEASE-amd64-disc1.iso
# mdconfig -a -t vnode -u 10 -f FreeBSD-12.1-RELEASE-amd64-disc1.iso
# mount_cd9660 /dev/md10 /mnt
% git clone https://github.com/mmatuska/mfsbsd.git
% cd mfsbsd
% cat << EOF > conf.rc.conf
> ifconfig_em0="inet X.X.X netmask 255.255.255.0"
> defaultrouter="X.X.X.X"
> sshd_enable="YES"
> EOF
% make BASE=/mnt/usr/freebsd-dist/
% make CUSTOM=1 BUILDWORLD=1 BUILDKERNEL=1

Boot from the rescue system. In case it doesn't have enough space to upload the mfsbsd image you can dd through ssh.

% dd if=mfsbsd12.1-RELEASE-amd64.img | ssh root@rescue "dd of=/dev/ada0"

That's it, reboot from hard drive. The installer will complain about a missing MANIFEST file.

mkdir -p /usr/freebsd-dist/ 
touch /usr/freebsd-dist/MANIFEST
bsdinstall
45


VIP:

do not edit these