From owner-freebsd-stable@freebsd.org Thu Apr 5 14:29:00 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFD33F89ABA for ; Thu, 5 Apr 2018 14:29:00 +0000 (UTC) (envelope-from marcnarc@gmail.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 485D37ECD8 for ; Thu, 5 Apr 2018 14:29:00 +0000 (UTC) (envelope-from marcnarc@gmail.com) Received: by mail-qk0-x22a.google.com with SMTP id w6so26523354qkb.4 for ; Thu, 05 Apr 2018 07:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=1ug7qLkV/wW3MCjqLvdNBgM4ybMuK9ei7wOX8sXzDAU=; b=eVhGdlvqgYJfp6ATLwkPHM5LJlmwyx/8rWP6iGOGR/WCHPApiuiOmuhMAArmcC+1rm PQtkXupionvoPn+OEPKXl/U5jczTwPyHGtHwUJ8Hh1uVRWIQjMLBLKEkAs6QW2vi5B+h +0/fRk0IXHPkuUxubpI0Tl65uydq3yRw+agmL12URqPdOcEzQEYdwCZ0jdudf7/8giOn 1xCkvEsuRVWpsOzyBn9Ulza8mNpEDQ5FqpArKqhnKF7Viqwd0gsmU9LBdGn2+JJIQcPO w+aAdZZD3wF7sfOGSyJgbh5qNglZa+0RPs6Aauh0m8pP3QnAGdAGwPlMbM4iY5pQY4UY N7HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=1ug7qLkV/wW3MCjqLvdNBgM4ybMuK9ei7wOX8sXzDAU=; b=D4d9Q0kwucMuu4/lbgJvooh6VI4JcQPNtUXQ7UC9Y7jBX0Ks1ZQXrMVvDSJfdPCvNN 64vl14ERScijaD8J/+dc4iHbXNH6BlXBhgqVXgf2aCTskhgM1Zc7aqIIqSvAnZkoDsNi Q3hvGEK41/seFsc0UO1Ew+3iI9YJDDWRkg3PjQ2kax0Exhl/DkM9jgD5jmGesgFBPuOA lrfU7/7I8k+PyAays5nSptionVvUIpAS9CUgScnAVTbN5lTZ3jVEtB98jHeTf9JmpULD E207Pdi6CBpJ8OzKu8M2hXcFpmAGEicGIF94sTB059tjN5TQR7b/jNUsvBq8ED/OOmbE L7JQ== X-Gm-Message-State: ALQs6tDx29SWJ3c/PAGl1h8UYwKQgUccrVD/dyaLSeA+EZjXzwXQwKzE Cl23Itf3l7VBYRCyZ5qG6g8= X-Google-Smtp-Source: AIpwx49O/eFnhR9ZQeyzI2TxgRxwF+S6pNxjvFG+yvlAR99kRptei+84c+bjxVIiN9OqQjNiJnbfng== X-Received: by 10.55.109.129 with SMTP id i123mr29981178qkc.114.1522938539830; Thu, 05 Apr 2018 07:28:59 -0700 (PDT) Received: from [10.10.1.32] ([192.252.130.194]) by smtp.gmail.com with ESMTPSA id q19sm6590637qta.12.2018.04.05.07.28.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Apr 2018 07:28:58 -0700 (PDT) To: freebsd-stable@FreeBSD.ORG From: Marc Branchaud Subject: Problems with ifconfig when starting all jails after 10.3 -> 10.4 upgrade Message-ID: <45483fb3-bd94-10f1-a75c-3a035ec69cfa@gmail.com> Date: Thu, 5 Apr 2018 10:28:58 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 14:29:00 -0000 Hi all, I just upgraded from 10.3 to 10.4, and "/etc/rc.d/jail start" is having problems starting all of my jails: # /etc/rc.d/jail start Starting jails:xipbuild_3_3: created ifconfig:: bad value jail: xipbuild_3_3_8: /sbin/ifconfig lo1 inet 10.1.1.38/32 alias: failed xipbuild_3_4: created ifconfig:: bad value jail: xipbuild_4_0: /sbin/ifconfig lo1 inet 10.1.1.5/32 alias: failed xipbuild: created xipbuild_4_9: created ifconfig:: bad value jail: xipbuild9: /sbin/ifconfig lo1 inet 10.1.1.209/32 alias: failed . This worked fine in 10.3. I can individually start each jail, e.g. "/etc/rc.d/jail start xipbuild9". All the jails configure the same set of parameters. Here's my jail.conf: --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- xipbuild_3_3 { path="/usr/build-jails/jails/3.3"; host.hostname="xipbuild_3_3"; ip4.addr="10.1.1.3/32"; allow.chflags; allow.mount; mount.devfs; persist; mount="/usr/home /usr/build-jails/jails/3.3/usr/home nullfs rw 0 0"; interface="lo1"; } xipbuild_3_3_8 { path="/usr/build-jails/jails/3.3.8"; host.hostname="xipbuild_3_3_8"; ip4.addr="10.1.1.38/32"; allow.chflags; allow.mount; mount.devfs; persist; mount="/usr/home /usr/build-jails/jails/3.3.8/usr/home nullfs rw 0 0"; interface="lo1"; } xipbuild_3_4 { path="/usr/build-jails/jails/3.4"; host.hostname="xipbuild_3_4"; ip4.addr="10.1.1.4/32"; allow.chflags; allow.mount; mount.devfs; persist; mount="/usr/home /usr/build-jails/jails/3.4/usr/home nullfs rw 0 0"; interface="lo1"; } xipbuild_4_0 { path="/usr/build-jails/jails/4.0"; host.hostname="xipbuild_4_0"; ip4.addr="10.1.1.5/32"; allow.chflags; allow.mount; mount.devfs; persist; mount="/usr/home /usr/build-jails/jails/4.0/usr/home nullfs rw 0 0"; interface="lo1"; } xipbuild { path="/usr/build-jails/jails/latest"; host.hostname="xipbuild"; ip4.addr="10.1.1.200/32"; allow.chflags; allow.mount; mount.devfs; persist; mount="/usr/home /usr/build-jails/jails/latest/usr/home nullfs rw 0 0"; interface="lo1"; } xipbuild_4_9 { path="/usr/build-jails/jails/4.9"; host.hostname="xipbuild_4_9"; ip4.addr="10.1.1.90/32"; allow.chflags; allow.mount; mount.devfs; persist; mount="/usr/home /usr/build-jails/jails/4.9/usr/home nullfs rw 0 0"; interface="lo1"; } xipbuild9 { path="/usr/build-jails/jails/latest9"; host.hostname="xipbuild9"; ip4.addr="10.1.1.209/32"; allow.chflags; allow.mount; mount.devfs; persist; mount="/usr/home /usr/build-jails/jails/latest9/usr/home nullfs rw 0 0"; interface="lo1"; } --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- I use ipnat to give the jails network access. Here's ipnat.rules: --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- map em0 10.1.1.0/24 -> 0/32 proxy port ftp ftp/tcp map em0 10.1.1.0/24 -> 0/32 --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- And here's my rc.conf: --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- # Generated by Ansible # hostname must be FQDN hostname="devastator.xiplink.com" zfs_enable="False" # FIXME: previously auto-created? ifconfig_lo1="create" ifconfig_em0="DHCP SYNCDHCP" network_interfaces="em0" gateway_enable="YES" # Prevent rpc rpcbind_enable="NO" # Prevent sendmail to try to connect to localhost sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" # Bring up sshd, it takes some time and uses some entropy on first startup sshd_enable="YES" netwait_enable="YES" netwait_ip="10.10.0.35" netwait_if="em0" jenkins_swarm_enable="YES" jenkins_swarm_opts="-executors 8" # --- Build jails --- build_jails_enable="YES" jail_enable="YES" # Set rules in /etc/ipnat.rules ipnat_enable="YES" # Set interface name for ipnat network_interfaces="${network_interfaces} lo1" # Each jail needs to specify its IP address and mask bits in ipv4_addrs_lo1 ipv4_addrs_lo1="10.1.1.1/32" jail_chflags_allow="yes" varmfs="NO" --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- Any insight would be deeply appreciated! M.