[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] hdhcpd working.

On Wednesday, August 19, 2015, Christiano F. Haesbaert <haesbaert@xxxxxxxxxxxxx> wrote:
On 18 August 2015 at 11:15, Magnus Skjegstad <magnus@xxxxx> wrote:
> On Tue, 18 Aug 2015, at 08:50, Anil Madhavapeddy wrote:
>> > * Pass the configuration to the VM somehow, I think I read on the
>> > key/value module that converts the file into an ml file, that would be
>> > ok.
>> I need to look up the latest on this, but the OS.Env module should
>> do key/value maps via the unikernel command line. Thomas/Magnus,
>> what did you end up deciding to use in Jitsu for unikernel arg parsing?
> I still use mirage-bootvar-xen [0] to pass parameters via the "extra"
> option in libxl (or cmdline in libvirt). Eventually it would be great to
> be able to use OS.Env + Cmdliner, but it hasn't been implemented yet for
> Xen [1] :-)
> 0. https://github.com/mirage/mirage-bootvar-xen
> 1. https://github.com/mirage/mirage-platform/blob/master/xen/lib/env.ml

After converting, I guess there won't be any parameters except
verbosity to be passed (not considering the interfaces), but I do need
to pass the configuration file somehow.
Since I'm still not saving the lease database to disk, which I do
intend to do with irmin, the only thing I'd need is passing this
configuration file.

So I released rawlink on opam and hdhcp should work now.

I had started to convert the code to mirage and I have some questions.

How exactly should the distribution be ? Should I release a package in opam that exports a "dhcp server module" ? Should I include something like a unikernel config.ml skeleton and friends ? Should it be included inside an existing mirage library ?

My idea so far was to release hdhcp as a library, having a Dhcp_server module, and another package with a mirage usage of this module as a functor. Basically it needs to be specialized on how to send/receive packets and read/write to disk.

I'm up for suggestions.
MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.