Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2019 11:20:28 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        bob prohaska <fbsd@www.zefox.net>, "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>, Glen Barber <gjb@freebsd.org>, Enji Cooper <yaneurabeya@gmail.com>, Alan Somers <asomers@freebsd.org>, David Boyd <David.Boyd49@twc.com>, FreeBSD CURRENT <freebsd-current@freebsd.org>, <sjg@juniper.net>
Subject:   Re: New vm-image size is much smaller than previos
Message-ID:  <19386.1556994028@kaos.jnpr.net>
In-Reply-To: <CANCZdfpc-ceiiXCZpZp-4pK8vha2k_4DgNfCkb%2BUvAy4qSF16g@mail.gmail.com>
References:  <20190503171517.GE19873@FreeBSD.org> <201905031806.x43I6FXf093604@gndrsh.dnsmgr.net> <20190504013934.GA26932@www.zefox.net> <CANCZdfpc-ceiiXCZpZp-4pK8vha2k_4DgNfCkb%2BUvAy4qSF16g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@bsdimp.com> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19386.1556994028>