![]() Write a minimum /etc/rc.conf for the template. In such a case, I’ll use a statically configured nf for jails) sudo cp /etc/localtime /vm/tmpl/11.2/etc/ (But I won’t do this if the host acts as a name server and its nf refers to itself. Usually /etc/nf is also copied from the host, but after some experiments I decided to copy it by using /etc/nf’s exec.prestart and delete it by exec.poststop for most cases. sudo tar -xJvpf base.txz -C /vm/tmpl/11.2Ĭopy timezone configuration from the host to the template. cd ~/tmpĮxtract the base tarball in the template directory. sudo zfs create -o mountpoint=/vm zroot/vmĭownload a base install set tarball for FreeBSD 11.2 release. Here I’m going to create a FreeBSD 11.2 template in /vm/tmpl/11.2. When you start using jails, the first thing to do is creating a template for future jails.Ĭreate ZFS datasets for jails and templates. For VNET jails, netgraph is used to build virtual network/switch instead of if_bridge and epair which seem to be more popular.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |