From owner-freebsd-questions@FreeBSD.ORG Tue Jul 2 17:51:10 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AE08FE0E for ; Tue, 2 Jul 2013 17:51:10 +0000 (UTC) (envelope-from gosha-necr@yandex.ru) Received: from forward2.mail.yandex.net (forward2.mail.yandex.net [IPv6:2a02:6b8:0:602::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4571CFF for ; Tue, 2 Jul 2013 17:51:09 +0000 (UTC) Received: from web30d.yandex.ru (web30d.yandex.ru [77.88.46.29]) by forward2.mail.yandex.net (Yandex) with ESMTP id 0131312A14D2 for ; Tue, 2 Jul 2013 21:50:56 +0400 (MSK) Received: from 127.0.0.1 (localhost.localdomain [127.0.0.1]) by web30d.yandex.ru (Yandex) with ESMTP id AA76C1F60069; Tue, 2 Jul 2013 21:50:56 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1372787456; bh=GvyL1KwNESghygzN4RJHZOXgD7GzMtk40mBZ4PcNDWw=; h=From:To:In-Reply-To:References:Subject:Date; b=l/V5aYlvxjP4Pyx9f1tcmaowSrE879f7qyT1uMSKHl04w9HRoSzhI69jpN5X2xMrJ 3Hi7qNOCrm+6dRaBhNYKpy96a1W0AfT+E0hEbqaWAnG41s3EvIFfmXchLvUpLmzmsT wV0BVCfN2kvqvaqlXLT3s/Zr74xusV6DJ1ooYaUM= Received: from net245.234.188-30.ertelecom.ru (net245.234.188-30.ertelecom.ru [188.234.245.30]) by web30d.yandex.ru with HTTP; Tue, 02 Jul 2013 21:50:56 +0400 From: =?koi8-r?B?59XM0cXXIOfP28E=?= To: freebsd-questions@freebsd.org In-Reply-To: <51B3E08E.5010408@a1poweruser.com> References: <20130609101352.a95d7cda3d1bccfa358e2182@rocketmail.com> <51B3E08E.5010408@a1poweruser.com> Subject: Re: upgrade qjail Message-Id: <269381372787456@web30d.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 02 Jul 2013 23:50:56 +0600 X-Mailman-Approved-At: Tue, 02 Jul 2013 18:31:32 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 02 Jul 2013 17:51:10 -0000 Guys! I have a similar problem. But from your answer I don't understand, is it needed to create all jails from scratch?!! Or it possible recreate existed jails with qjail-3.0? Tell me please how to do that procedure without reinstalling all jails from scratch. 09.06.2013, 07:55, "Fbsd8" : 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 _______________________________________________ [1]freebsd-questions@freebsd.org mailing list [2]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[3]freebsd-questions-unsubscribe@freebsd.org" References 1. mailto:freebsd-questions@freebsd.org 2. http://lists.freebsd.org/mailman/listinfo/freebsd-questions 3. mailto:freebsd-questions-unsubscribe@freebsd.org