From owner-freebsd-questions@freebsd.org Thu Dec 22 21:25:21 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 D6975C8DFF2 for ; Thu, 22 Dec 2016 21:25:21 +0000 (UTC) (envelope-from herbert@mailbox.org) Received: from mx1.mailbox.org (mx1.mailbox.org [80.241.60.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.mailbox.org", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99B67275 for ; Thu, 22 Dec 2016 21:25:21 +0000 (UTC) (envelope-from herbert@mailbox.org) Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 56CA743B5A for ; Thu, 22 Dec 2016 22:25:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:references:in-reply-to :subject:subject:from:from:message-id:date:date:received; s= mail20150812; t=1482441911; bh=/N9YLzkMmXVQXgny60c1qSAlsB+gPI2y/ +HkeAEPHRw=; b=RlSomFeUP0bFcbPBvV2vs1AihTOVzUeKVkC05UKuZC72Vy8Ov bK05tsOv0qA3ENO7xn9c3NehGFwSofVBbMusiogtusvw1VMSULjcUFPakUfP/Oiy 6hatB064jhQlc5ozuSvijkgm3rF0odjztpcpFmSxrSDnKNDxkS0qBmPRJP+uwJ+H YGc7wOne2G3AflSnbmNajj/1unAC3Mx4yxEPbLun8R2yXwk78Ab1K195lbZWy+Ng U+juRS3dyjGxJfAYzQ5a35CyCYwi/SNwwJsMPqLrjCinZMQzCxJPVfipRJT9UCS/ /JtC+xk1KR71oN9shW80U6JHGFE+twlwTIACg== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTPS id OzTD_cxx819V for ; Thu, 22 Dec 2016 22:25:11 +0100 (CET) Date: Thu, 22 Dec 2016 22:25:09 +0100 Message-ID: <8637hfmzbe.wl-herbert@mailbox.org> From: "Herbert J. Skuhra" To: freebsd-questions@freebsd.org Subject: Re: FBSD-11 Jails In-Reply-To: <835b5b670caf869010764efd50341784.squirrel@webmail.harte-lyne.ca> References: <835b5b670caf869010764efd50341784.squirrel@webmail.harte-lyne.ca> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII 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 21:25:21 -0000 James B Byrne via freebsd-questions skrev: > > 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? I am not using ezjail. Maybe you have to modify /etc/freebsd-update.conf in the jail? --- etc/freebsd-update.conf.orig 2016-12-22 22:18:25.482993000 +0100 +++ etc/freebsd-update.conf 2016-12-22 22:18:37.722583000 +0100 @@ -12,7 +12,7 @@ ServerName update.FreeBSD.org # Components of the base system which should be kept updated. -Components src world kernel +Components world # Example for updating the userland and the kernel source code only: # Components src/base src/sys world -- Herbert