From owner-freebsd-current@freebsd.org Sat May 4 02:39:08 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 1C09B15A334A for ; Sat, 4 May 2019 02:39:08 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD5146CE6A; Sat, 4 May 2019 02:39:06 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x442d0Bl095199; Fri, 3 May 2019 19:39:00 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x442d03h095198; Fri, 3 May 2019 19:39:00 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201905040239.x442d03h095198@gndrsh.dnsmgr.net> Subject: Re: New vm-image size is much smaller than previos In-Reply-To: To: Warner Losh Date: Fri, 3 May 2019 19:39:00 -0700 (PDT) CC: bob prohaska , "Rodney W. Grimes" , Glen Barber , Enji Cooper , Alan Somers , David Boyd , FreeBSD CURRENT X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: BD5146CE6A X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.46 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.81)[0.806,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.86)[0.861,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: gndrsh.dnsmgr.net]; NEURAL_SPAM_LONG(0.85)[0.854,0]; RCPT_COUNT_SEVEN(0.00)[8]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.05)[ip: (0.16), ipnet: 69.59.192.0/19(0.08), asn: 13868(0.06), country: US(-0.06)] 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 02:39:08 -0000 > On Fri, May 3, 2019, 7:42 PM bob prohaska wrote: > > > On Fri, May 03, 2019 at 11:06:15AM -0700, Rodney W. Grimes wrote: > > > -- Start of PGP signed section. > > > > On Fri, May 03, 2019 at 10:12:58AM -0700, Enji Cooper wrote: > > > > > > > > > > > On May 3, 2019, at 9:57 AM, Alan Somers > > wrote: > > > > > > > > > > > > See r346959. Before first boot, you should expand the image up to > > > > > > whatever size you want. growfs(8) will automatically expand the > > file > > > > > > system. > > > > > > -Alan > > > > > > > > > > > > On Fri, May 3, 2019 at 10:32 AM David Boyd > > wrote: > > > > > >> > > > > > >> The vm-image for 13.0-CURRENT > > > > > >> > > > > > >> FreeBSD-13.0-CURRENT-amd64-20190503-r347033.vmdk > > > > > >> > > > > > >> is only 4.0 GB in size. Previous images were about 31.0 GB. > > > > > >> > > > > > >> This smaller image doesn't leave much room to add packages and > > other > > > > > >> customizations. > > > > > > > > > > This probably deserves a release note. > > > > > > > > It will certainly be mentioned in the 11.3 release notes. > > > > > > And those running head snapshots without reading commit messages > > > are likely to have lots of foot shooting. > > > > > > > Glen > > > -- > > > Rod Grimes > > rgrimes@freebsd.org > > > > 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... As asommers already pointed out a) we already do the for real media like on the rasberry pi's, etc all in that on first boot they do a growfs to fill the real media up with the file system. That does not work for a VM, as it is the host that has to increase the size of the file so that the growfs (which IS already in these images) can do its jobs. What we should do is document the FreeBSD VM images are shipped very small, but have this autogrow capability, and that a user wanting say a 40G VM should simply expand the file to the proper larger size via truncate -s 40G filename before starting the guest, the guest well automagically do the right thing via growfs on first boot. > > The original FreeBSD install program (the one by Jordan Hubbard) did a "original" would be mine, the second gen would by jkh, > > very serviceable job. Could it (the user interface) be resurrected? > > > > Unlikely. It's too far bit rotted these days. It was extremely tailored to > the i386 env, and a lot has changed since we retired it. > > This is an interesting idea. It seems like it wouldn't be too hard to > prototype. It already is done, just needs a documentation cleanup. > Warner > > Thanks for reading, > > > > bob prohaska -- Rod Grimes rgrimes@freebsd.org