Re: moving ezjail-based jails from 10.3 host to 11.0 host
At Mon, 17 Oct 2016 17:43:25 +0200, Marko Cupać wrote: > > On Mon, 17 Oct 2016 15:55:07 +0200 > Oliver Peter wrote: > > > On Mon, Oct 17, 2016 at 03:37:08PM +0200, Marko Cupać wrote: > > > I have 10.3 host which runs a dozen or so ezjail-based jails. I have > > > installed another 11.0 host, and I'd like to move jails to it. > > > > I would switch them to iocage+zfs, ezjail is sooo 90s. :) > > Have a look at the documentation: > > http://iocage.readthedocs.io/en/latest/basic-use.html > > > > All jail settings are stored within ZFS properties so an upcoming > > migration would only need a zfs send | zfs receive. > > > > > Can I just archive jails on 10.3, scp them to 11.0, and re-create > > > them there by restoring from archive (-a switch)? > > > > Further I would recommend to use rsync -av instead of scp. > > Oliver, > > I do appreciate you took the time to respond to my question. However, > when I asked how to move my ezjail-based jails, I meant exactly that. > I did not ask which is the best jail management system (for my use case > I'm completely fine with ezjail), or about the good and bad things > about ZFS (I have hardware RAID controller which can't do JBOD on this > server), or advantages of rsync over scp (doesn't make much difference > for one-time transfer of single .tar.gz file over LAN). > > Now, to give answer to my own question: everything works fine, after - > of course - reinstalling all the packages with `pkg-static upgrade -f'. Also I've been same worry about this. But ezjail also worked in 12.0-CURRENT and almost everything stuffs used in that except below: (1) `jail_JID_devfs_ruleset' must be specified by number but name like export jail_desktop_devfs_ruleset=11 (2) Additional parameters shoule be specified by `jail_JID_parameters' with semicolon separated list like export jail_desktop_parameters="allow.kmem; allow.sysvipc;" (3) If you through ICMP packets, set jail_JID_socket_unixiproute_only="NO" But now basically FreeBSD does not supprt variable based specification like ezjail but jail.conf configuration. So jail spit warning whenever start/restart: root@kx:~ # service ezjail restart mail Stopping jails: mail.tfc. Starting jails: mail.tfc. /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider migrating to /etc/jail.conf. root@kx:~ # > > Regards, > -- > Before enlightenment - chop wood, draw water. > After enlightenment - chop wood, draw water. > > Marko Cupać > https://www.mimar.rs/ > ___ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org" --- KIRIYAMA Kazuhiko ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: moving ezjail-based jails from 10.3 host to 11.0 host
Marko Cupać wrote on 2016/10/17 17:43: [...] Now, to give answer to my own question: everything works fine, after - of course - reinstalling all the packages with `pkg-static upgrade -f'. Reinstalling all packages? So you didn't just move jails from one host to another but you upgraded them to 11.0 also? Because I had feeling that you want just to move them to another machine. And if you just move them (completely with shared basejail) you don't need to reinstall packages. As Oliver said you can use rsync to transfer them without need to compress + scp + uncompress. It is much faster transfer than making archives. Miroslav Lachman ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: moving ezjail-based jails from 10.3 host to 11.0 host
On Mon, 17 Oct 2016 15:55:07 +0200 Oliver Peter wrote: > On Mon, Oct 17, 2016 at 03:37:08PM +0200, Marko Cupać wrote: > > I have 10.3 host which runs a dozen or so ezjail-based jails. I have > > installed another 11.0 host, and I'd like to move jails to it. > > I would switch them to iocage+zfs, ezjail is sooo 90s. :) > Have a look at the documentation: > http://iocage.readthedocs.io/en/latest/basic-use.html > > All jail settings are stored within ZFS properties so an upcoming > migration would only need a zfs send | zfs receive. > > > Can I just archive jails on 10.3, scp them to 11.0, and re-create > > them there by restoring from archive (-a switch)? > > Further I would recommend to use rsync -av instead of scp. Oliver, I do appreciate you took the time to respond to my question. However, when I asked how to move my ezjail-based jails, I meant exactly that. I did not ask which is the best jail management system (for my use case I'm completely fine with ezjail), or about the good and bad things about ZFS (I have hardware RAID controller which can't do JBOD on this server), or advantages of rsync over scp (doesn't make much difference for one-time transfer of single .tar.gz file over LAN). Now, to give answer to my own question: everything works fine, after - of course - reinstalling all the packages with `pkg-static upgrade -f'. Regards, -- Before enlightenment - chop wood, draw water. After enlightenment - chop wood, draw water. Marko Cupać https://www.mimar.rs/ ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: moving ezjail-based jails from 10.3 host to 11.0 host
Oliver Peter skrev: > > On Mon, Oct 17, 2016 at 03:37:08PM +0200, Marko Cupać wrote: >> I have 10.3 host which runs a dozen or so ezjail-based jails. I have >> installed another 11.0 host, and I'd like to move jails to it. > > I would switch them to iocage+zfs, ezjail is sooo 90s. :) > Have a look at the documentation: > http://iocage.readthedocs.io/en/latest/basic-use.html The github page says: **No longer supported. iocage is being rewritten in a different language. -- Herbert ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: moving ezjail-based jails from 10.3 host to 11.0 host
On Mon, Oct 17, 2016 at 03:37:08PM +0200, Marko Cupać wrote: > I have 10.3 host which runs a dozen or so ezjail-based jails. I have > installed another 11.0 host, and I'd like to move jails to it. I would switch them to iocage+zfs, ezjail is sooo 90s. :) Have a look at the documentation: http://iocage.readthedocs.io/en/latest/basic-use.html All jail settings are stored within ZFS properties so an upcoming migration would only need a zfs send | zfs receive. > Can I just archive jails on 10.3, scp them to 11.0, and re-create them > there by restoring from archive (-a switch)? Further I would recommend to use rsync -av instead of scp. -- Oliver PETER oli...@gfuzz.de 0x456D688F ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"