Date: Tue, 23 Feb 2016 13:51:20 -0700 From: Alan Somers <asomers@freebsd.org> To: Zaphod Beeblebrox <zbeeble@gmail.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Multi-boot dual-boot magic machine. Message-ID: <CAOtMX2iLJpruQUqpKoCt-E_-g_xfqk6pe1JzsjD=dLwmv4m-GA@mail.gmail.com> In-Reply-To: <CACpH0Mfn8Pzq3eYaK6Kztg-jKrvfk03K2PXwoWsC4tujGzM_qg@mail.gmail.com> References: <CACpH0Mfn8Pzq3eYaK6Kztg-jKrvfk03K2PXwoWsC4tujGzM_qg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 23, 2016 at 1:11 PM, Zaphod Beeblebrox <zbeeble@gmail.com> wrote: > So my end goal is this: that I can run win7 with an FreeBSD guest and I can > run FreeBSD with a win7 guest. and that both of these are achieved such > that there is one copy of each operating system on the workstation. > > Now... I have achieved the former --- that is FreeBSD boots both by itself > and under vmware hosted by win7. On the bare metal, this uses the nvidia > binary driver, but on the VM, it would be convenient if this used the > vmware driver. Not _just_ that, but the nvidia binary driver has several > options to drive two monitors where as the vmware instance would only have > one. > > Has anyone given any thought to > > 1. Detectiing system changes in loader > 2. Setting system environment variables from loader > 3. Having filesystem alternatives based on environment variables (a-la > DG-UX0 > > ... or some other way to achieve this? "sysctl kern.vm_guest" will tell you whether you're emulated or running on bare metal. You can use that in /etc/rc.conf to conditionally set anything you want. -Alan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2iLJpruQUqpKoCt-E_-g_xfqk6pe1JzsjD=dLwmv4m-GA>