Date: Fri, 6 Dec 2013 20:54:10 -0600 From: Adam Vande More <amvandemore@gmail.com> To: Michael Ross <gmx@ross.cx> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>, Matthew Pherigo <hybrid120@gmail.com> Subject: Re: Jails fail to start under ezjail Message-ID: <CA%2BtpaK0EoJ8K%2BxqP0nkAi910_1MwoLYJ42BestMC4KyfVMipfw@mail.gmail.com> In-Reply-To: <op.w7otcfpfg7njmm@michael-think> References: <6AAEFB10-7580-4B87-B654-0DFFAD6516A7@gmail.com> <op.w7otcfpfg7njmm@michael-think>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 6, 2013 at 2:18 PM, Michael Ross <gmx@ross.cx> wrote: > On Fri, 06 Dec 2013 18:19:15 +0100, Matthew Pherigo <hybrid120@gmail.com> > wrote: > > Hi, >> >> When starting a jail under ezjail, the program gives this message and >> then quits: >> >> [root@Chiyochan-FreeBSD /home/matt]# ezjail-admin start smokeping >> Configuring jails:. >> Starting jails: cannot start jail "smokeping": >> . >> Error: Could not start smokeping. >> You need to start it by hand. >> >> > Hi, > > a guess: > An IP address assigned to the jail is not configured anywhere on the > machine. > > See /usr/local/etc/ezjail/smokeping ( "export jail_smokeping_ip=..." ) > > > Michael > > > > > It fails in the same way with onestart as well. I assumed "start by hand" >> means using jail(8), but there isn't an /etc/jail.conf file for it to read, >> so it doesn't start. I haven't heard anything about ezjail needing this >> file though, I assume that ezjail handles configuration separately. >> >> I'm running 9.2-RELEASE. I installed ezjail from PkgNG. This problem is >> occurring even after reinstalling FreeBSD. My drive is formatted UFS. >> >> Here's the verbose output, although it doesn't seem to hold any clues: >> >> [root@Chiyochan-FreeBSD /home/matt]# /bin/sh -x >> /usr/local/bin/ezjail-admin start smokeping >> [123/396]+ ezjail_prefix=/usr/local >> + basename -- /usr/local/bin/ezjail-admin >> + ezjail_admin=ezjail-admin >> + ezjail_etc=/usr/local/etc >> + ezjail_share=/usr/local/share/ezjail >> + ezjail_examples=/usr/local/share/examples/ezjail >> + ezjail_jailcfgs=/usr/local/etc/ezjail >> + [ -f /usr/local/etc/ezjail.conf ] >> + . /usr/local/etc/ezjail.conf >> + : /usr/jails >> + : /usr/jails/newjail >> + : /usr/jails/basejail >> + : /usr/jails/fulljail >> + : /usr/jails/ezjailtemp >> + : /usr/jails/flavours >> + : /usr/jails/ezjail_archives >> + : /usr/src >> + : YES >> + : /usr/bin/login -f root >> + : YES >> + : YES >> + : devfsrules_jail >> + : YES >> + : YES >> + : /bin/sh /etc/rc >> + : NO >> [97/396]+ : >> + : >> + ezjail_dirlist='bin boot lib libexec rescue sbin usr/bin usr/include >> usr/lib usr/libdata usr/libexec usr/sbin usr/src usr/share' >> + ezjail_basesystem=base >> + uname -p >> + ezjail_usage_ezjailadmin='ezjail-admin v3.3\nUsage: ezjail-admin >> [archive|config|console|create|delete|install|list|restore|update] >> {params}' >> + ezjail_usage_install='Usage: ezjail-admin install [-mMpPsS] [-h host] >> [-r release]' >> + ezjail_usage_create='Usage: ezjail-admin create [-xbi] [-f flavour] [-r >> jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs] >> jailname jailip' >> + ezjail_usage_delete='Usage: ezjail-admin delete [-wf] jailname' >> + ezjail_usage_update='Usage: ezjail-admin update [-s >> sourcetree|sourceosversion] [-p] (-b|-i|-u|-U|-P)' >> + ezjail_usage_config='Usage: ezjail-admin config [-r run|norun] [-n >> newname] [-c cpuset] [-z zfs-datasets] [-f fib] [-i attach|detach|fsck] >> jailname' >> + ezjail_usage_console='Usage: ezjail-admin console [-f] [-e command] >> jailname' >> + ezjail_usage_archive='Usage: ezjail-admin archive [-Af] [-a archive] >> [-d archivedir] jailname [jailname...]' >> + ezjail_usage_restore='Usage: ezjail-admin restore [-f] [-d archivedir] >> (archive|jailname)...' >> + ezjail_usage_list='Usage: ezjail-admin list' >> + [ 2 -gt 0 ] >> + start_stop_jail_by_script start smokeping >> + ezjail_action=start >> + ezjail_success_check=-n >> + [ -x /usr/local/etc/rc.d/ezjail ] >> + /usr/local/etc/rc.d/ezjail start smokeping >> Configuring jails:. >> Starting jails: cannot start jail "smokeping": >> [71/396]. >> + shift >> + fetchjailinfo smokeping >> + ezjail_name=smokeping >> + unset ezjail_config ezjail_running ezjail_hostname ezjail_rootdir >> ezjail_image ezjail_imagetype ezjail_imagedevice ezjail_devicelink >> ezjail_ips ezjail_id ezjail_attached ezjail_device ezjail_device_geom >> ezjail_exec_start ezjail_exec_stop ezjail_mount_enable ezjail_devfs_enable >> ezjail_devfs_ruleset ezjail_procfs_enable ezjail_fdescfs_enable >> + echo -n smokeping >> + tr -c '[:alnum:]' _ >> + ezjail_safename=smokeping >> + [ -z '' ] >> + [ -e /usr/local/etc/ezjail/smokeping ] >> + ezjail_config=/usr/local/etc/ezjail/smokeping >> + [ -e /usr/local/etc/ezjail/smokeping.norun ] >> + [ /usr/local/etc/ezjail/smokeping ] >> + . /usr/local/etc/ezjail/smokeping >> + export jail_smokeping_hostname=smokeping >> + export jail_smokeping_ip=re0@192.168.2.2 > > Not that familiar with ezjail, but this looks wrong. -- Adam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK0EoJ8K%2BxqP0nkAi910_1MwoLYJ42BestMC4KyfVMipfw>