From owner-freebsd-questions@freebsd.org Thu Dec 22 19:57:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 556A8C8D7A0 for ; Thu, 22 Dec 2016 19:57:09 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA HLL ISSUER 01" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2973F174B for ; Thu, 22 Dec 2016 19:57:08 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 40D68621CD for ; Thu, 22 Dec 2016 14:49:32 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iCuJWWW3wvD1 for ; Thu, 22 Dec 2016 14:49:28 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 981146212C for ; Thu, 22 Dec 2016 14:49:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1482436168; bh=f2zKNhQUkbaHVQKJ4sMod82B0BGbRkaCnyS+p6UrH5c=; h=Date:Subject:From:To:Reply-To; b=tMOpdIYYmYz8ST/QCnVfEmh9wFCr9feo+DMv5GGgm9N1Uj1jxmv7pVpq0/dPMfDom MIU1mYAkgEjGbeH2aBYwxmXB45+Xz12akwK1IFr6fQY/1VeKxHEGAbK11rg6w1hZ+G knoTcxsqVrQBtzEknUkecoWvBz7g/PuQUfIFuAJ2Ax/3TAe6IQbpuhWSCiEivswvAD ZXm7ypVO21oTRHocVphFgPznCNNKrkw32oXlVd+FmYweTakRqgmp9Oa0s0b8dBDSGq sAr2Nb9BDwt9jnH8Lqrhlhxre56nJiLzelghwgjaweMb8IqY9wj0mEgCgAXk2/TuXn n6Ls0bqbVZeeg== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Thu, 22 Dec 2016 14:49:28 -0500 Message-ID: <835b5b670caf869010764efd50341784.squirrel@webmail.harte-lyne.ca> Date: Thu, 22 Dec 2016 14:49:28 -0500 Subject: FBSD-11 Jails From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 19:57:09 -0000 Now I am experimenting with jails. following the instructions found at https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-ezjail.html I have employed ezjail to create a test. My rc.conf for the host system looks like this: # cat /etc/rc.conf ### Networks hostname=X ifconfig_vtnet0=Y defaultrouter=Z #gateway_enable="YES" # Enable as ipv4 LAN gateway #ipv6_gateway_enable="YES" # Enable as ipv6 LAN gateway ### Virtual IP aliases are defined in strict unbroken numerical order. ifconfig_vtnet0_alias0="inet 192.168.216.16 netmask 255.255.255.0" ifconfig_vtnet0_alias1="inet 192.168.216.23 netmask 255.255.255.0" ### Firewall pf_enable="YES" # Enable PF firewall on startup pflog_enable="YES" # Enable logging pflog_logfile="/var/log/pflog" # where pflogd should store the logfile pflog_flags="" # additional flags for pflogd startup ### Services local_unbound_enable="YES" # Enable caching only DNS ntpd_enable="YES" # Enable local network time server postfix_enable="YES" # Enable Postfix SMTP MTA sendmail_enable="NONE" # Disable Sendmail SMTP MTA sshd_enable="YES" # Enable ssh access ### Jailed Services #jail_enable="NO" # Disable starting of any jails jail_enable="YES" # Enable starting of any jails ezjail_enable="YES" # Use EZJail to manage cloned_interfaces="lo1" # For shared jail configuration jail_list="hlldrupal" # Space separated names of jails ### File system clear_tmp_enable="YES" # Clear /tmp on boot #dumpdev="NO" # Disable crash dumps dumpdev="AUTO" # Enable crash dumps zfs_enable="YES" # Enable zeta file-system I used ezjail-admin to create the instance: #ezjail-admin install #ezjail-admin create hlldrupal 'lo1|127.0.1.1,vtnet0|192.168.216.196' and used ezjail-admin console hlldrupal to configure the /etc files as outlined in the handbook. However, when I get to the section on updating jails and run the recommended commands then I see this: ezjail-admin update -u src component not installed, skipped Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 11.0-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 11.0-RELEASE-p6. No updates are available to install. Run '/usr/sbin/freebsd-update fetch' first. src component not installed, skipped Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 11.0-RELEASE from update5.freebsd.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be added as part of updating to 11.0-RELEASE-p6: /usr/share/zoneinfo/Asia/Barnaul /usr/share/zoneinfo/Asia/Famagusta /usr/share/zoneinfo/Asia/Tomsk /usr/share/zoneinfo/Asia/Yangon /usr/share/zoneinfo/Europe/Astrakhan /usr/share/zoneinfo/Europe/Kirov /usr/share/zoneinfo/Europe/Ulyanovsk Installing updates...mkdir: /usr/jails/newjail//boot: No such file or directory mtree: /usr/jails/newjail//boot/kernel: No such file or directorymtree: /usr/jails/newjail//boot/kernel.old: No such file or directory touch: /usr/jails/newjail//boot/kernel.old/.freebsd-update: No such file or directory Could not create kernel backup directory So, what is this telling me? Is there something that I have done or omitted doing that results in this error; or is there a problem with the documentation; or is there a problem with ezjail-admin? How is this supposed to work? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3