Being able to easily run FreeBSD microVMs is interesting, it would be neat to see this plugged into k8s so that you could run FreeBSD “containers” alongside your Linux ones. I know its a niche for most people, but I’d love to be able to have CI/CD more easily support FreeBSD for example.
Colin (who did this work) has also done a lot of work recently to improve boot times and has significantly improved the time to create a normal AWS VM.
What kind of rootfs is expected for firecracker? I have tried the .raw, the .qcow2 (not likely to work), and I’ve also use mdconfig to make a ramdisk formatted as UFS and extracted base.txz into it. None of these options seem to work, the kernel boots but then complains about not finding a superblock and panics.
Trying to mount root from ufs:/dev/vtbd0 []...
Attempted recovery for standard superblock: failed
Attempted extraction of recovery data from standard superblock: failed
Attempt to find boot zone recovery data.
panic: ffs_use_bread: non-NULL *bufp 0xffffffff805a12dd
Here is what I used for the ramdisk (more or less straight from the handbook):
truncate -s 10G rootfs.bin
doas mdconfig -f rootfs.bin -u 0
bsdlabel -w md0 auto
doas bsdlabel -w md0 auto
doas newfs md0a
doas mount /dev/md0a ./t
cd t
doas tar xvJf ../base.txz
cd ..
doas umount t
Being able to easily run FreeBSD microVMs is interesting, it would be neat to see this plugged into k8s so that you could run FreeBSD “containers” alongside your Linux ones. I know its a niche for most people, but I’d love to be able to have CI/CD more easily support FreeBSD for example.
Colin (who did this work) has also done a lot of work recently to improve boot times and has significantly improved the time to create a normal AWS VM.
What kind of rootfs is expected for firecracker? I have tried the
.raw
, the.qcow2
(not likely to work), and I’ve also usemdconfig
to make a ramdisk formatted as UFS and extractedbase.txz
into it. None of these options seem to work, the kernel boots but then complains about not finding a superblock and panics.Here is what I used for the ramdisk (more or less straight from the handbook):