💾 Archived View for thebackupbox.net › ~epoch › blog › freebsd-vm captured on 2024-12-17 at 10:11:10. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-07-09)
-=-=-=-=-=-=-
(oddly specific...)
I found I could download a premade VM image for FreeBSD.
I grabbed it in qcow2 because I have the most practice with that format.
linux$ wget https://download.freebsd.org/releases/VM-IMAGES/14.0-RELEASE/amd64/Latest/FreeBSD-14.0-RELEASE-amd64.qcow2.xz linux$ xz -d FreeBSD-14.0-RELEASE-amd64.qcow2.xz linux$ qemu-system-amd64 -net nic -net user FreeBSD-14.0-RELEASE-amd64.qcow2 (start installing stuff and run out of space at rust) linux$ qemu-img resize FreeBSD-14.0-RELEASE-amd64.qcow2 +5G linux$ qemu-system-amd64 -net nic -net user FreeBSD-14.0-RELEASE-amd64.qcow2 (accidental ^C) linux$ qemu-system-amd64 -net nic -net user FreeBSD-14.0-RELEASE-amd64.qcow2
freebsd# pkg install git freebsd# pkg install rust (ran out of space installing rust and had to expand the rootfs) freebsd# gpart recover ada0 (I think that's what I did to get the gpt back to the end or something) freebsd# gpart resize -i 4 ada0 freebsd# growfs /dev/gpt/rootfs freebsd# pkg install rust freebsd# mkdir -p /usr/local/src freebsd# cd /usr/local/src freebsd# git clone https://github.com/xvxx/phetch freebsd# cd phetch freebsd# make (accidentallly ctrl+C the whole VM and had to restart the make) freebsd# make (fails because missing scdoc) freebsd# pkg install scdoc freebsd# make (it works this time and hurray for incremental builds)
I kind of expected it to shit itself a bit more from qemu being killed.
Was really glad to find out I could expand the fs without needing to boot into a separate image.
The first few times I tried to resize the rootfs I was trying to target ada0p4 but was getting "Operation not Permitted"