Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2018 10:47:01 -0400
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        freebsd-questions@freebsd.org
Subject:   ezjail install: tar cannot chdir to /usr/jails/fulljail
Message-ID:  <817c767ec4571b432831b576bc36d651.squirrel@webmail.harte-lyne.ca>

next in thread | raw e-mail | index | archive | help
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
 ezjail_use_zfs="YES"
# Setting this to YES will manage ALL new jails in their own zfs
 ezjail_use_zfs_for_jails="YES"
 ezjail_jailzfs="zroot/ezjail"
# 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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?817c767ec4571b432831b576bc36d651.squirrel>