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

Re: mirage, mirage-www, xen and ec2



Hi Mark,

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?

-anil


On 17 Oct 2012, at 22:50, Mark Thurman <mthurman@xxxxxxxxx> wrote:

> I've played some with mirage locally this week and decided I'd try to put the 
> sample mirage-www on ec2 using Xen. I can run it locally just fine and other 
> computers on my network can connect to it. I roughly followed the 
> instructions on the wiki (http://www.openmirage.org/wiki/xen-boot) and after 
> tweaking the script slightly, I'm able to bundle, unload, and boot up and ec2 
> instance with a mirage kernel. The instance launches just fine and I can see 
> output from various mirage systems in the ec2 system log output. However, 
> when I try to connect to my ec2 host (after opening port 80 in the ec2 
> console), my web browser just hangs.
> 
> Any ideas? I'm pretty new to every piece of this puzzle so I'm not really 
> sure where to begin debugging the mnirage on xen networking stack. I'm 
> attaching the output from the ec2 log in case that's helpful to start.
> 
> I know that this isn't much to go on, so any pointers or help to turn on more 
> debugging output would be appreciated.
> 
> -----BEGIN LOG
> xc_dom_probe_bzimage_kernel: kernel is not a bzImage
> close blk: backend at /local/domain/0/backend/vbd/659/2049
> close blk: backend at /local/domain/0/backend/vbd/659/2050
> close blk: backend at /local/domain/0/backend/vbd/659/2051
> kernel.c: Mirage OS!
> kernel.c:   start_info: 0x1586000(VA)
> kernel.c:     nr_pages: 0x6a400
> kernel.c:   shared_inf: 0xbee14000(MA)
> kernel.c:      pt_base: 0x1589000(VA)
> kernel.c: nr_pt_frames: 0xf
> kernel.c:     mfn_list: 0x1234000(VA)
> kernel.c:    mod_start: 0x0(VA)
> kernel.c:      mod_len: 0
> kernel.c:        flags: 0x0
> kernel.c:     cmd_line: 
> x86_setup.c:   stack:      0x233920-0xa33920
> mm.c: MM: Init
> x86_mm.c:       _text: 0x0(VA)
> x86_mm.c:      _etext: 0xf3367(VA)
> x86_mm.c:    _erodata: 0x101000(VA)
> x86_mm.c:      _edata: 0x216940(VA)
> x86_mm.c: stack start: 0x233920(VA)
> x86_mm.c:        _end: 0x1234000(VA)
> x86_mm.c:   start_pfn: 159b
> x86_mm.c:     max_pfn: 6a400
> x86_mm.c: Mapping memory range 0x1800000 - 0x6a400000
> x86_mm.c: setting 0x0-0x101000 readonly
> x86_mm.c: skipped 0x1000
> mm.c: MM: Initialise page allocator for 0x18e2000 -> 0x6a400000
> mm.c: MM: done
> x86_mm.c: Demand map pfns at 6a401000-206a401000.
> gnttab_init: 2047
> gnttab_stubs.c: gnttab_table mapped at 0x6a401000
> ENT: Breaking up is easy to do (with OPAM)
> ENT: Building a "xenstore stub domain" with Mirage
> ENT: Connected Cloud Control: OpenFlow in Mirage
> ENT: An Outing to CUFP 2011
> ENT: A Spring Wiki Cleaning
> ENT: Self-hosting Mirage website
> ENT: Installation
> ENT: OCaml Installation
> ENT: Getting Started with Lwt threads
> ENT: Portable Regular Expressions
> ENT: Delimited Continuations vs Lwt for Threads
> ENT: Running Mirage Xen kernels
> ENT: Tech Talks
> ENT: Papers and Related Work
> ENT: DNS Performance Tests
> ENT: Hello Mirage World
> ENT: Source code layout
> ENT: Developing the Mirage networking stack on UNIX
> ENT: COW: OCaml on the Web
> ENT: Introduction to HTCaML
> Devices: [templates] sleeping
> ..omitted 72 lines...
> Devices: [templates] sleeping
> Devices: [static] sleeping
> Devices: [templates] provider start
> Devices: [templates:templates] provider plug
> Devices: [templates:templates] waking waiters
> Devices: [templates] waking
> ...omitted 72 lines...
> Devices: [templates] waking
> Devices: [static] provider start
> Devices: [static:static] provider plug
> Devices: [static:static] waking waiters
> Devices: [static] waking
> Manager: create
> Manager: init done
> Devices: [Xen.Blkif] provider start
> found: num=0 backend-id=0
> Netfront.create: id=0 domid=0
> 
> MAC: 12:31:39:1C:34:A6
>  sg:true gso_tcpv4:true rx_copy:true rx_flip:false smart_poll:false
> Manager: plug 0
> Manager: plug done, to listener
> Manager: VIF 0 to 10.0.0.2 nm 255.255.255.0 gw [10.0.0.1]
> ARP: sending gratuitous from 10.0.0.2
> Devices: [Xen.Blkif:2051] provider plug
> Xen.Blkif: create 2051
> Blkfront.create; vdev=2051
> Devices: [Xen.Blkif:2050] provider plug
> Xen.Blkif: create 2050
> Blkfront.create; vdev=2050
> Devices: [Xen.Blkif:2049] provider plug
> Xen.Blkif: create 2049
> Blkfront.create; vdev=2049
> Blkback can only use a single-page ring
> Negotiated a singe-page ring
> Blkback can only use a single-page ring
> Negotiated a singe-page ring
> Blkback can only use a single-page ring
> Negotiated a singe-page ring
> state=InitWait
> Blkfront features: barrier=false removable=false sector_size=512 
> sectors=1835008
> Xen.Blkif: success
> Devices: [Xen.Blkif:2051] no waiters
> state=InitWait
> Blkfront features: barrier=false removable=false sector_size=512 
> sectors=312705024
> Xen.Blkif: success
> Devices: [Xen.Blkif:2050] no waiters
> state=InitWait
> Blkfront features: barrier=false removable=false sector_size=512 sectors=10240
> Xen.Blkif: success
> Devices: [Xen.Blkif:2049] no waiters
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> ARP: who-has 10.110.50.84?
> -----END LOG
> 
> Thanks,
> Mark
> 




 


Rackspace

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