migrating from proxmox to freebsd (part 09): bastille
so cbsd was the porridge that was too hot. it’s a neat script but it had a lot of things that i don’t really care about like xen and virtualbox. so this attempt is going to be using bastille which is another script for managing jails. the github seems active so there’s that.
they have some decent documentation here.
before we begin i went ahead and made a new boot environment. the good thing about beadm is when freebsd boots if you hit 8 during the menu period then you can choose which boot environment you jump into. it’s pretty much a snapshot of where you were for the entire system. be careful with this. i tend to reboot every now and then to make sure i’m in an active boot environment.
bastille has a pkg so the install is pretty straightforward.
# pkg install bastille
done. now you can use it. now there are some things you need to do when you start up. this is a little different for each system so it would be kind of difficult to give an example. the quick and easy is to:
# bastille setup
it gives you some instructions on what you need to change to set things up properly. in my case i had to run a couple commands it spat out to set up the platters as the pool for it to use. there are also network things you need to configure that i’ll put in the next post. i ironed out the things i needed though so i have this going on:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
platters 649M 7.14T 96K /mnt/platters
platters/bastille 648M 7.14T 136K /usr/local/bastille
platters/bastille/backups 96K 7.14T 96K /usr/local/bastille/backups
platters/bastille/cache 197M 7.14T 96K /usr/local/bastille/cache
platters/bastille/cache/14.2-RELEASE 197M 7.14T 197M /usr/local/bastille/cache/14.2-RELEASE
platters/bastille/jails 96K 7.14T 96K /usr/local/bastille/jails
platters/bastille/logs 96K 7.14T 96K /var/log/bastille
platters/bastille/releases 450M 7.14T 96K /usr/local/bastille/releases
platters/bastille/releases/14.2-RELEASE 450M 7.14T 450M /usr/local/bastille/releases/14.2-RELEASE
platters/bastille/templates 96K 7.14T 96K /usr/local/bastille/templates
platters/jails 96K 7.14T 96K /mnt/platters/jails
bastille set up those zfs datasets.
might want to read the next post on network configuration before doing all this though. i found out the hard way.