Opened 7 months ago

Closed 6 months ago

#1059 closed System Defect (fixed)

warden in 10.0 does not properly create jails

Reported by: tolkor Owned by:
Priority: major Milestone:
Component: System Configuration Version: 10.0-RELEASE
Keywords: Cc: trac-bugs@…

Description

Hiya,

Had this in the jails forum but thought it might be more accurate posting this here.

Upgraded from 9.2 to 10.0:

uname -r
10.0-RELEASE-p4


warden create chip --ipv4 159.28.1.176 --startauto
DEF: 10.0-RELEASE-amd64
Fetching jail environment. This may take a while...
/usr/jails/.download/base.txz 100% of 58 MB 239 kBps 04m10s
/usr/jails/.download/doc.txz 100% of 1395 kB 857 kBps 00m02s
/usr/jails/.download/games.txz 100% of 863 kB 347 kBps 00m03s
/usr/jails/.download/lib32.txz 100% of 15 MB 600 kBps 00m26s
Creating ZFS /usr/jails/.warden-template-10.0-RELEASE-amd64 dataset...
Created jail template: 10.0-RELEASE-amd64
Building new Jail... Please wait...
touch: /usr/jails/chip/etc/fstab: No such file or directory
/usr/local/share/warden/scripts/backend/createjail.sh: cannot create /usr/jails/chip/etc/rc.conf: No such file or directory
/usr/local/share/warden/scripts/backend/createjail.sh: cannot create /usr/jails/chip/etc/hosts: No such file or directory
/usr/local/share/warden/scripts/backend/createjail.sh: cannot create /usr/jails/chip/etc/hosts: No such file or directory
cp: /usr/jails/chip/etc/resolv.conf: No such file or directory
cp: /usr/jails/chip/etc/localtime: No such file or directory
mount: /usr/jails/chip/dev: No such file or directory
mount: /usr/jails/chip/proc: No such file or directory
jail -c path=/usr/jails/chip ip4.addr=159.28.1.176/24 host.hostname=chip allow.raw_sockets=true persist
Starting jail with: /etc/rc
jexec: execvp(): /bin/sh: No such file or directory
Success!
Jail created at /usr/jails/chip


warden chroot chip
Started shell session on chip. Type exit when finished.
jailme: Username mapping failed: No such file or directory


warden list
ID AUTOSTART STATUS TYPE


chip Enabled Running standard


ls -l /usr/jails/chip
total 2
drwxr-xr-x 3 root wheel 3 Feb 27 15:40 usr

Change History (2)

comment:1 Changed 6 months ago by tolkor

Figured this one out.

When we do jails, the parent is on a small partition, then add large diskspace to the VM and put the jails on there. Trying this with TrueOS with the large disk as tank1, I thought add the disk and mount it as /usr/jails, first destroying the previous ZFS partition then we can just let everything build using the default of /usr/jails. Doing things this way causes everything to go nicely awry. When I blew away everything, re-added the large drive, dropped a ZFS partition on it then changed warden.conf to point to the new partition and everything works great. Odd that the previous method did not work as expected but, we have jails.

/me dances a happy dance while looking for a "close this ticket' button...

Do feel free to close this one out.

comment:2 Changed 6 months ago by kenmoore

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.