ezjail install: tar cannot chdir to /usr/jails/fulljail

James B. Byrne byrnejb at harte-lyne.ca
Thu Jul 12 14:47:19 UTC 2018

I am atempting to 9re-)install ezjail on a host which had it
previously installed and removed.  When it was removed the relics of
its exitance were also removed:

pkg remove ezjail
rm -rf /usr/local/etc/ezjail.conf
rm -rf /usr/local/etc/ezjail
chflags -R noschg /usr/jails
rm -rf /usr/jails
zfs destroy -r zroot/ezjail

I then restarted the host, just to make sure.

Then I reinstalled ezjail:

 pkg install ezjail
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        ezjail: 3.4.2

Number of packages to be installed: 1

Proceed with this action? [y/N]: y
[1/1] Installing ezjail-3.4.2...
[1/1] Extracting ezjail-3.4.2: 100%

and recreated the zfs backing store:

zfs create -p zroot/ezjail

and edited the new /usr/local/etc/ezjail.conf to use zfs:

# grep zfs /usr/local/etc/ezjail.conf
# Setting this to YES will manage ALL new jails in their own zfs
# ezjail_zfs_properties="-o compression=lzjb -o atime=off"
# ezjail_zfs_jail_properties="-o dedup=on"

But when I ran ezjail-admin install I got this error:

ezjail-admin install
base.txz                                      100% of   99 MB  621
kBps 02m45s
tar: could not chdir to '/usr/jails/fulljail'

# ll /usr/jails
total 0

ll /usr/local/etc/ezjail
total 0

Have I missed a step?

***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

More information about the freebsd-questions mailing list