PC-BSD Forums

PC-BSD Forums (http://forums.pcbsd.org/index.php)
-   Jails (http://forums.pcbsd.org/forumdisplay.php?f=83)
-   -   Creating Jail with Warden Errors (http://forums.pcbsd.org/showthread.php?t=19449)

titus 02-27-2013 03:14 AM

Creating Jail with Warden Errors
 
I have searched/read the forums for a solution but have not found an answer.

I am running:
FreeBSD base
Version 9.1-RELEASE
Arch: amd64
ident GENERIC


I am receiving these errors when I run the warden gui and try to create a jail:

Building new Jail... Please wait...
ERROR: Failed getting ZFS dataset for /usr/jails..
ERROR: No jail located at /usr/jails/xxx.xxx.xxx.xxx

I have downloaded the latest update for warden found here-

http://trac.pcbsd.org/export/21592/p.../createjail.sh

Here is my mount output:
Code:

tank0 on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
/dev/label/boot0 on /boot-mount (ufs, local, noatime)
procfs on /proc (procfs, local)
linprocfs on /compat/linux/proc (linprocfs, local)
tank0/usr on /usr (zfs, local, noatime, nfsv4acls)
tank0/var on /var (zfs, local, noatime, nfsv4acls)

Here is my zfs list:
Code:

NAME        USED  AVAIL  REFER  MOUNTPOINT
tank0      12.1G  1.32T  237M  legacy
tank0/usr  11.7G  1.32T  11.7G  /usr
tank0/var  153M  1.32T  153M  /var

Please provide any help and/or direction, as it would be greatly appreciated.

moussar 02-27-2013 08:09 PM

I got a different error (dataset does not exist), which I solved to by destroying and recreating the dataset. I had no jails available.
EDIT: I see that you do not have the jails filesystem (you need to create that first).

titus 02-28-2013 02:47 AM

Quote:

Originally Posted by moussar (Post 104714)
I got a different error (dataset does not exist), which I solved to by destroying and recreating the dataset. I had no jails available.
EDIT: I see that you do not have the jails filesystem (you need to create that first).

Thank you for the reply moussar. I will read up on creating jails filesystem.

moussar 02-28-2013 11:49 AM

a "zfs create /usr/jails" would probably solve your issue.

titus 02-28-2013 10:11 PM

Quote:

Originally Posted by moussar (Post 104730)
a "zfs create /usr/jails" would probably solve your issue.

That's what I thought, but I wanted to be sure since this too is my first run with Warden and jails. Thank you again. I will let you know how it turns out later tonight.

titus 03-01-2013 04:00 AM

I ran
Code:

zfs create tank0/usr/jails
and I have my first jail. Thank you again moussar!


All times are GMT. The time now is 12:42 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.


Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.