- Joined
- Nov 25, 2013
- Messages
- 7,776
Sorry, no easy guide. Roughly it should work like this:I
Is there a simple guide for how to do this? I have a Docker container up and ready to go, and working, but I'm not sure what step to do next. I was only running Plex and Nextcloud; the Plex I'm happy to recreate from scratch since it has no "history" associated with it, but my Nextcloud previous versions... :'(
1. Install FreeBSD. I created a VM from scratch because all the templates use ZFS and I wanted to conserve memory in the guest environment.
2. Archive (tar) your jails.
3. Extract them into e.g. /var/jails/jail1, /var/jails/jail2, ... in that FreeBSD VM.
4. Configure your FreeBSD VM with bridged networking and as many IP(v4) addresses as you have jails plus one.
5, Familiarize yourself with the jail(8) man page.
6. Create rc.conf entries like this:
Code:
jail_enable="YES" jail_list="jail1 jail2" jail_sysvipc_allow="YES" jail_jail1_rootdir="/var/jails/jail1" jail_jail1_hostname="jail1.some.domain" jail_jail1_ip="1.2.3.4" jail_jail1_devfs_enable="YES" jail_jail1_devfs_ruleset="devfsrules_jail" jail_jail1_procfs_enable="YES" jail_jail1_parameters="allow.raw_sockets=1" jail_jail2_rootdir="/var/jails/jail2" jail_jail2_hostname="jail2.some.domain" jail_jail2_ip="1.2.3.5" jail_jail2_devfs_enable="YES" jail_jail2_devfs_ruleset="devfsrules_jail" jail_jail2_procfs_enable="YES" jail_jail2_parameters="allow.raw_sockets=1"
7. Additionally you need to export your FreeNAS volumes for the jails via NFS and mount them into the appropriate locations in your jails' directory structure. You do this from outside the jails, i.e. your FreeBSD "host" VM.
8. You will need to adjust user and group IDs inside the jails and in FreeNAS for the NFS shares, too.
9. Optionally use VNET instead of IP aliases ...
So, it's really not difficult for the experienced FreeBSD admin, but definitely quite the can of worms ... lots of nitty-gritty details.
HTH,
Patrick
Last edited: