From owner-freebsd-current@freebsd.org Sat May 4 18:20:40 2019 Return-Path: Delivered-To: freebsd-current@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 C427C1594FE8 for ; Sat, 4 May 2019 18:20:39 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74E376C2C9; Sat, 4 May 2019 18:20:38 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from pps.filterd (m0108160.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x44IJ9Iu017157; Sat, 4 May 2019 11:20:36 -0700 Received: from nam03-co1-obe.outbound.protection.outlook.com (mail-co1nam03lp2051.outbound.protection.outlook.com [104.47.40.51]) by mx0b-00273201.pphosted.com with ESMTP id 2s98nf0cwj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 04 May 2019 11:20:36 -0700 Received: from DM5PR05CA0010.namprd05.prod.outlook.com (2603:10b6:3:d4::20) by BYAPR05MB5798.namprd05.prod.outlook.com (2603:10b6:a03:c6::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.10; Sat, 4 May 2019 18:20:32 +0000 Received: from DM3NAM05FT025.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::208) by DM5PR05CA0010.outlook.office365.com (2603:10b6:3:d4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1878.12 via Frontend Transport; Sat, 4 May 2019 18:20:32 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.13 as permitted sender) Received: from P-EXFEND-EQX-02.jnpr.net (66.129.239.13) by DM3NAM05FT025.mail.protection.outlook.com (10.152.98.135) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1856.4 via Frontend Transport; Sat, 4 May 2019 18:20:31 +0000 Received: from P-EXBEND-EQX-03.jnpr.net (10.104.8.56) by P-EXFEND-EQX-02.jnpr.net (10.104.8.55) with Microsoft SMTP Server (TLS) id 15.0.847.32; Sat, 4 May 2019 11:20:30 -0700 Received: from P-EXBEND-EQX-01.jnpr.net (10.104.8.52) by P-EXBEND-EQX-03.jnpr.net (10.104.8.56) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sat, 4 May 2019 11:20:30 -0700 Received: from p-mailhub01.juniper.net (10.104.20.6) by P-EXBEND-EQX-01.jnpr.net (10.104.8.52) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sat, 4 May 2019 11:20:30 -0700 Received: from kaos.jnpr.net (kaos.jnpr.net [172.23.50.162]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id x44IKSf6019509; Sat, 4 May 2019 11:20:29 -0700 (envelope-from sjg@juniper.net) Received: by kaos.jnpr.net (Postfix, from userid 1377) id 4BCF51B911; Sat, 4 May 2019 11:20:28 -0700 (PDT) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id 4A2471B910; Sat, 4 May 2019 11:20:28 -0700 (PDT) To: Warner Losh CC: bob prohaska , "Rodney W. Grimes" , Glen Barber , Enji Cooper , Alan Somers , David Boyd , FreeBSD CURRENT , Subject: Re: New vm-image size is much smaller than previos In-Reply-To: References: <20190503171517.GE19873@FreeBSD.org> <201905031806.x43I6FXf093604@gndrsh.dnsmgr.net> <20190504013934.GA26932@www.zefox.net> Comments: In-reply-to: Warner Losh message dated "Fri, 03 May 2019 19:52:29 -0600." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18844.1556994028.1@kaos.jnpr.net> Date: Sat, 4 May 2019 11:20:28 -0700 Message-ID: <19386.1556994028@kaos.jnpr.net> X-EXCLAIMER-MD-CONFIG: e3cb0ff2-54e7-4646-8a04-0dae4ac7b136 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.129.239.13; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(346002)(136003)(396003)(376002)(39860400002)(2980300002)(199004)(189003)(4326008)(305945005)(9686003)(478600001)(46406003)(76506005)(4744005)(70586007)(70206006)(6916009)(81156014)(97756001)(86362001)(14444005)(23726003)(2906002)(50466002)(6266002)(6246003)(53936002)(55016002)(107886003)(5660300002)(16586007)(316002)(26005)(8676002)(50226002)(186003)(81166006)(53416004)(8936002)(77096007)(90966002)(47776003)(356004)(126002)(117636001)(229853002)(97876018)(69596002)(54906003)(446003)(11346002)(7696005)(68736007)(7126003)(76176011)(476003)(486006)(336012); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR05MB5798; H:P-EXFEND-EQX-02.jnpr.net; FPR:; SPF:SoftFail; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72db4458-bc4c-41ba-f15c-08d6d0bd31af X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4710095)(4711036)(2017052603328); SRVR:BYAPR05MB5798; X-MS-TrafficTypeDiagnostic: BYAPR05MB5798: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 0027ED21E7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: QWH4TdLXzB8fnjK6x6WegmL54RQIB0674tuTMqUe3e+cEeuudur8vdwVd+JyJ8SIkh8mB/qZaZT9+UCX4H/Z82vkhxYddEl+Y9kvfZ98zn1GMTeQxtqF33HsP8sw2b2ZoOUbBfy6fXHxtg+syW1HpMDl2/Bfz0jEv+fU3OlBBOLP85vUG6JrP6mTOLsxfSzSca+lkpOAJCJNjnkM+1GR6etGVKcZ6IAtr+GtYPfA9ec7L+wR9wsiM0nYZ7tZjKElCpAGcUmlOGmR4yaWvt/TQGHC3Rtm2IWblebybJyRzVlrEa2/lIMIh1hjN/jZNAUl01lWpu9H2s4+W+5Rx4ewIpOIYu9wM9H3nAWno4KdKZicrzifItK8NbcAnu/MjlPz3oyjA8tgvSkvGlWr+NDFFTjSnM2j5p4vfWzRB7Qhcik= X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2019 18:20:31.5940 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72db4458-bc4c-41ba-f15c-08d6d0bd31af X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.13]; Helo=[P-EXFEND-EQX-02.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB5798 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-04_14:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=846 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905040133 X-Rspamd-Queue-Id: 74E376C2C9 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[juniper.net:s=PPS1017]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:67.231.152.164]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_TWELVE(0.00)[12]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[juniper.net:+]; DMARC_POLICY_ALLOW(-0.50)[juniper.net,reject]; RCPT_COUNT_SEVEN(0.00)[9]; MX_GOOD(-0.01)[mxb-00273201.gslb.pphosted.com,mxa-00273201.gslb.pphosted.com]; IP_SCORE(-0.15)[ip: (-0.43), ipnet: 67.231.152.0/24(-0.17), asn: 22843(-0.08), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.66)[-0.662,0]; RCVD_IN_DNSWL_LOW(-0.10)[164.152.231.67.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22843, ipnet:67.231.152.0/24, country:US]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2019 18:20:40 -0000 Warner Losh wrote: > > At the risk of being branded a wishful thinker, a firstboot script that > > asked the user for some configuration information would be a great help > > to both new and experienced foot-shooters. I'm thinking of Raspberry Pi, > > but perhaps it applies to non-embedded platforms also. > > > > That's not a bad idea... we could press bsdinstall into service for that > perhaps... we already expand the partition / filesystem to match the media > size... We run Junos in vm's under lots of different circumstances. An etc/rc.d/vmguest is used to tailor the vm to the environment it finds itself in at firstboot. A raft of etc/rc.conf.d/vmguest.* help tailor the basic logic to different platforms and vmhost environments. It generally does nothing at subsequent boots. We handle dynamic configuration, by providing a separate device to be used for swap, var etc. Dynamically sized swap is very handy.