Date: Sat, 3 Jan 2015 11:00:13 -0800 From: Neel Natu <neelnatu@gmail.com> To: Luigi Rizzo <rizzo@iet.unipi.it> Cc: FreeBSD current <freebsd-current@freebsd.org>, Neel Natu <neel@freebsd.org>, Peter Grehan <grehan@freebsd.org> Subject: Re: any primer on running bhyve guests sharing disk with host ? Message-ID: <CAFgRE9HznDcSUaVK3miJFzKgnYLJcRJ4=A4jBzU=M87NRW%2BkuA@mail.gmail.com> In-Reply-To: <20150103161511.GA94237@onelab2.iet.unipi.it> References: <20150103161511.GA94237@onelab2.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Luigi, On Sat, Jan 3, 2015 at 8:15 AM, Luigi Rizzo <rizzo@iet.unipi.it> wrote: > Hi, > in order to do some kernel testing, I would like to run bhyve guests > using (through NFS, probably) the host's file system. > diskless(8) is probably one way to go, i was wondering if > someone has instructions for that. > Specifically: > - how to "bhyveload" a kernel (rather than the full disk image); > as an alternative, given a kernel, something to build an image > that can be passed to bhyveload > You can use the "-h" option to bhyveload(8) to do this. For e.g., "bhyveload -h / vmx" will load the kernel from "/boot/kernel/kernel" and use the loader configuration from "/boot". > - how to pass the necessary config (rootpath) to the client > without having to rely on a specialized dhcp server > You can set environment variables using the "-e" option: bhyveload -e "boot.nfsroot.server=1.2.3.4" -e "boot.nfsroot.path=/exports/guest1" There are a number of other environment variables set by the PXE loader - see sys/boot/i386/libi386/pxe.c. I haven't done this myself therefore not sure if this would work. best Neel > I used to be familiar with diskless configs, so i can probably sort > out the server side myself. > > cheers > luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9HznDcSUaVK3miJFzKgnYLJcRJ4=A4jBzU=M87NRW%2BkuA>