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

Re: mirage, mirage-www, xen and ec2



I found a small bug in the DHCP client and have fixed it; it was overlooked in
the cstruct port since I didn't switch it over, and we've been using static IPs
mostly so far during development.

SO if you update your mirage/mirage-net to the latest rev by:

$ opam pin mirage-net git://github.com/mirage/mirage-net
$ opam update
$ opam upgrade

And then recompile mirage-www, it should work now.  I tried this on a local
Xen installation and not on EC2, so I'd appreciate an ack if you get it to work
on EC2 too.

-anil

On 18 Oct 2012, at 08:09, Mark Thurman <mthurman@xxxxxxxxx> wrote:

> Hi Dave,
> Thanks for the pointer--I may try the static IP work around tonight. I may 
> also try to dig into the DHCP issue to start learning the mirage codebase 
> some. The relevant code is mirage-net/direct/lib/dhcp/client.ml correct?
> 
> --Mark
> 
> 
> On Thu, Oct 18, 2012 at 1:31 AM, Dave Scott <Dave.Scott@xxxxxxxxxxxxx> wrote:
> Hi,
> 
> Anil wrote:
> 
> > The default mirage-www is configured to a static IP.  Try modifying
> > mirage-www/src/server.ml and changing the:
> >
> >     Net.Manager.configure interface (`IPv4 ip) >>
> >
> > line to
> >
> >     Net.Manager.configure interface `DHCP >>
> >
> > ...and this will pick up an IP address on EC2.
> >
> > If you've run it locally, did you already make this change?  Doing an
> > auto-update of mirage-www to EC2 is on my todo list, so I'll check
> > manually tomorrow if it works with the latest trees or not. Dave, have
> > you tried this recently?
> 
> I tried this a few weeks ago (just before OUD) and it didn't immediately work 
> for me.
> The DHCP server I ran it against is known to be a bit odd, so I figured there 
> was some bad
> interaction. Unfortunately I didn't have time to dive in and debug it, so I 
> switched to
> a static IP as a workaround. I'm sure a bit of printf debugging in the DHCP 
> code will
> reveal the problem :-)
> 
> Cheers,
> Dave
> 




 


Rackspace

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