From owner-freebsd-questions@FreeBSD.ORG Sun Jun 9 01:55:35 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 10CDAEE6 for ; Sun, 9 Jun 2013 01:55:35 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 0050E1491 for ; Sun, 9 Jun 2013 01:55:34 +0000 (UTC) Received: from [10.0.10.1] ([173.88.196.224]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 8 Jun 2013 18:55:29 -0700 Message-ID: <51B3E08E.5010408@a1poweruser.com> Date: Sat, 08 Jun 2013 21:55:26 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Masayoshi Fujimoto Subject: Re: upgrade qjail References: <20130609101352.a95d7cda3d1bccfa358e2182@rocketmail.com> In-Reply-To: <20130609101352.a95d7cda3d1bccfa358e2182@rocketmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Jun 2013 01:55:29.0824 (UTC) FILETIME=[6B597A00:01CE64B4] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jun 2013 01:55:35 -0000 Masayoshi Fujimoto wrote: > Hi. > Could you tell me how to upgrade qjail-1.7 to qjail-3.0 ? > I can not start "www". So I have to use qjail-1.7 now. >_> > > > root@freebsd:/root # pkg_info | grep qjail > qjail-1.7 Utility to quickly deploy and manage jails > > > root@freebsd:/root # jls > JID IP Address Hostname Path > 1 192.168.0.20 www /usr/jails/www > > > root@freebsd:/root # portmaster qjail > root@freebsd:/root # rehash > root@freebsd:/root # pkg_info | grep qjail > qjail-3.0 Utility to quickly deploy and manage jails > root@freebsd:/root # reboot > > I got the following message. > > jail: qjail: path : not an absolute pathname > Error: /usr/sbin/jail failed to start jail www. > because of errors in jail.conf file. > > > > root@freebsd:/root # cat /etc/jail.conf > qjail { > host.hostname = "qjail"; > path = ""; > mount.fstab = ""; > exec.start = "/bin/sh /etc/rc"; > exec.stop = "/bin/sh /etc/rc.shutdown"; > exec.consolelog = "/var/log/qjail.qjail.console.log"; > devfs_ruleset = "4"; > allow.mount.devfs; > } > > > So I edited /etc/jail.conf : > > www { > host.hostname = "www"; > path = "/usr/jails/www"; > mount.fstab = ""; > exec.start = "/bin/sh /etc/rc"; > exec.stop = "/bin/sh /etc/rc.shutdown"; > exec.consolelog = "/var/log/qjail.qjail.console.log"; > devfs_ruleset = "4"; > allow.mount.devfs; > ip4.addr = 192.168.0.20; > interface = "alc0"; > } > > > root@freebsd:/root # /usr/local/etc/rc.d/qjail.bootime restart > jail: qjail: path : not an absolute pathname > Error: /usr/sbin/jail failed to start jail www. > because of errors in jail.conf file. > > I got same massage. > My /etc/jail.conf has been changed default one. > qjail-1.7 is way out of date. you have to delete all your 1.7 jails then do pkg_delete qjail-1.7 then portsnap fetch portsnap extract cd /usr/ports/sysutils/qjail ee Makefile and make sure it says qjail-3.0 make install clean man qjail recreate your jails