The obvious difference comparing the console output is that my local rumprun on Xen is returning a bunch of network and DHCP configuration information and the one running on EC2 isn’t (see logs at end of this email).
So for some reason the rump kernel and xen aren’t agreeing on how to get the network started or at least the DHCP part of it. The end of this blog post seems to be describing a similar issue: http://www.somerandomidiot.com/blog/2014/03/14/its-a-mirage/ Other similar mutterings: http://lists.xenproject.org/archives/html/mirageos-devel/2012-10/msg00025.html Just to confirm - I am meant to be using rumprun-xen, right? Not baremetal? I am investigating further to see if there is anything I can twiddle on EC2 or in the build process to make it work. ########################################################################### ########################################################################### ########################################################################### ########################################################################### ########################################################################### CHAT SERVER CONSOLE OUTPUT ON RUMPRUN LOCAL XEN root@contiki:/home/ubuntu/chatsrv# rumprun xen -di -M 1024 -n inet,dhcp -- chatsrv --loglevel=2 !!! !!! NOTE: rumprun is experimental and may change in the future !!! start_info: 0x66e000(VA) nr_pages: 0x40000 shared_inf: 0x92cd7000(MA) pt_base: 0x671000(VA) nr_pt_frames: 0x7 mfn_list: 0x46e000(VA) mod_start: 0x0(VA) mod_len: 0 flags: 0x0 cmd_line: --loglevel=2 stack: 0x3e2660-0x462660 MM: Init _text: 0x0(VA) _etext: 0x1c34a4(VA) _erodata: 0x268000(VA) _edata: 0x272e00(VA) stack start: 0x3e2660(VA) _end: 0x46de40(VA) start_pfn: 67b max_pfn: 40000 Mapping memory range 0x800000 - 0x40000000 setting 0x0-0x268000 readonly skipped 0x1000 MM: Initialise page allocator for 877000(877000)-40000000(40000000) MM: done Demand map pfns at 40001000-2040001000. Initialising timer interface Initialising console ... done. gnttab_table mapped at 0x40001000. xenbus initialised on irq 1 mfn 0x157ab4 Failed to read device/pci/0/backend-id. no backend Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 7.99.17 (RUMP-ROAST) total memory = 507 MB timecounter: Timecounters tick every 10.000 msec timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0 cpu0 at thinair0: rump virtual cpu root file system type: rumpfs kern.module.path=/stand/amd64/7.99.17/modules mainbus0 (root) pci0 at mainbus0 bus 0 pci0: memory space enabled, rd/line, rd/mult, wr/inv ok timecounter: Timecounter "rumpxen" frequency 1000000000 Hz quality 100 mounted tmpfs on /tmp rumprun_config: configuring xenif0 as inet with dhcp net TX ring size 256 net RX ring size 256 netfront: node=device/vif/0 backend=/local/domain/0/backend/vif/31/0 netfront: MAC 00:16:3e:36:a5:00 xenif0: Ethernet address 00:16:3e:36:a5:00 dhcp: xenif0: adding IP address 192.168.1.135/24 dhcp: xenif0: adding route to 192.168.1.0/24 dhcp: xenif0: adding default route via 192.168.1.254 lease time: 43200 seconds === calling "rumprun-xen" main() === rumprun: call to ``sigaction'' ignored CHATSRV 0.5 Copyright (C) 2012 André Gasser This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. [2015-05-23 09:29:16 E] 1 [2015-05-23 09:29:16 E] 2 [2015-05-23 09:29:16 E] 3 [2015-05-23 09:29:16 E] 4 [2015-05-23 09:29:16 E] 5 [2015-05-23 09:29:16 E] server_len: 16 [2015-05-23 09:29:16 E] 3 [2015-05-23 09:29:16 I] Server listening on 0.0.0.0, port 5555 [2015-05-23 09:29:16 I] Log level set to INFO [2015-05-23 09:29:16 I] Waiting for incoming connection... ########################################################################### ########################################################################### ########################################################################### ########################################################################### ########################################################################### CHAT SERVER CONSOLE OUTPUT ON EC2 Xen Minimal OS! start_info: 0xd00000(VA) nr_pages: 0x6a400 shared_inf: 0x7e02a000(MA) pt_base: 0xd03000(VA) nr_pt_frames: 0xb mfn_list: 0x9ae000(VA) mod_start: 0x0(VA) mod_len: 0 flags: 0x0 cmd_line: root=/dev/sda1 ro 4 stack: 0x96d840-0x98d840 MM: Init _text: 0x0(VA) _etext: 0x7dc7d(VA) _erodata: 0x9a000(VA) _edata: 0x9fce0(VA) stack start: 0x96d840(VA) _end: 0x9ade40(VA) start_pfn: d11 max_pfn: 6a400 Mapping memory range 0x1000000 - 0x6a400000 setting 0x0-0x9a000 readonly skipped 0x1000 MM: Initialise page allocator for 105c000(105c000)-6a400000(6a400000) MM: done Demand map pfns at 6a401000-206a401000. Heap resides at 206a402000-406a402000. Initialising timer interface Initialising console ... done. gnttab_table mapped at 0x6a401000. Initialising scheduler Thread "Idle": pointer: 0x206a402050, stack: 0x13d0000 Thread "xenstore": pointer: 0x206a402800, stack: 0x13e0000 xenbus initialised on irq 1 mfn 0x9e16fe Thread "shutdown": pointer: 0x206a402fb0, stack: 0x13f0000 Dummy main: start_info=0x98d940 Thread "main": pointer: 0x206a403760, stack: 0x6a000000 "main" "root=/dev/sda1" "ro" "4" vbd 2049 is hd0 ******************* BLKFRONT for device/vbd/2049 ********** backend at /local/domain/0/backend/vbd/17950/2049 Failed to read /local/domain/0/backend/vbd/17950/2049/feature-barrier. Failed to read /local/domain/0/backend/vbd/17950/2049/feature-flush-cache. 61440 sectors of 512 bytes ************************** vbd 2050 is hd1 ******************* BLKFRONT for device/vbd/2050 ********** backend at /local/domain/0/backend/vbd/17950/2050 Failed to read /local/domain/0/backend/vbd/17950/2050/feature-barrier. Failed to read /local/domain/0/backend/vbd/17950/2050/feature-flush-cache. 312705024 sectors of 512 bytes ************************** vbd 2051 is hd2 ******************* BLKFRONT for device/vbd/2051 ********** backend at /local/domain/0/backend/vbd/17950/2051 Failed to read /local/domain/0/backend/vbd/17950/2051/feature-barrier. Failed to read /local/domain/0/backend/vbd/17950/2051/feature-flush-cache. 1835008 sectors of 512 bytes ************************** [H[J GNU GRUB version 0.97 (1740800K lower / 0K upper memory) [m[4;2H+-------------------------------------------------------------------------+[5;2H|[5;76H|[6;2H|[6;76H|[7;2H|[7;76H|[8;2H|[8;76H|[9;2H|[9;76H|[10;2H|[10;76H|[11;2H|[11;76H|[12;2H|[12;76H|[13;2H|[13;76H|[14;2H|[14;76H|[15;2H|[15;76H|[16;2H|[16;76H|[17;2H+-------------------------------------------------------------------------+[m Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line.[5;78H [m[7m[5;3H Mirage [5;75H[m[m[6;3H [6;75H[m[m[7;3H [7;75H[m[m[8;3H [8;75H[m[m[9;3H [9;75H[m[m[10;3H [10;75H[m[m[11;3H [11;75H[m[m[12;3H [12;75H[m[m[13;3H [13;75H[m[m[14;3H [14;75H[m[m[15;3H [15;75H[m[m[16;3H [16;75H[m[16;78H [5;75H[23;4H The highlighted entry will be booted automatically in 1 seconds. [5;75H[H[J Booting 'Mirage' root (hd0) Filesystem type is ext2fs, using whole disk kernel /boot/mirage-os.gz ============= Init TPM Front ================ Tpmfront:Error Unable to read device/vtpm/0/backend-id during tpmfront initialization! error = ENOENT Tpmfront:Info Shutting down tpmfront close blk: backend=/local/domain/0/backend/vbd/17950/2049 node=device/vbd/2049 close blk: backend=/local/domain/0/backend/vbd/17950/2050 node=device/vbd/2050 close blk: backend=/local/domain/0/backend/vbd/17950/2051 node=device/vbd/2051 start_info: 0x7c0000(VA) nr_pages: 0x6a400 shared_inf: 0x7e02a000(MA) pt_base: 0x7c3000(VA) nr_pt_frames: 0x9 mfn_list: 0x46e000(VA) mod_start: 0x0(VA) mod_len: 0 flags: 0x0 cmd_line: stack: 0x3e2660-0x462660 MM: Init _text: 0x0(VA) _etext: 0x1c34a4(VA) _erodata: 0x268000(VA) _edata: 0x272e00(VA) stack start: 0x3e2660(VA) _end: 0x46de40(VA) start_pfn: 7cf max_pfn: 6a400 Mapping memory range 0xc00000 - 0x6a400000 setting 0x0-0x268000 readonly skipped 0x1000 MM: Initialise page allocator for b1c000(b1c000)-6a400000(6a400000) MM: done Demand map pfns at 6a401000-206a401000. Initialising timer interface Initialising console ... done. gnttab_table mapped at 0x6a401000. xenbus initialised on irq 1 mfn 0x9e16fe Failed to read device/pci/0/backend-id. no backend Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 7.99.17 (RUMP-ROAST) total memory = 844 MB timecounter: Timecounters tick every 10.000 msec timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0 cpu0 at thinair0: rump virtual cpu root file system type: rumpfs kern.module.path=/stand/amd64/7.99.17/modules mainbus0 (root) pci0 at mainbus0 bus 0 pci0: memory space enabled, rd/line, rd/mult, wr/inv ok timecounter: Timecounter "rumpxen" frequency 1000000000 Hz quality 100 mounted tmpfs on /tmp === calling "rumprun-xen" main() === rumprun: call to ``sigaction'' ignored CHATSRV 0.5 Copyright (C) 2012 André Gasser This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. [2015-05-22 22:46:03 E] 1 [2015-05-22 22:46:03 E] 2 [2015-05-22 22:46:03 E] 3 [2015-05-22 22:46:03 E] 4 [2015-05-22 22:46:03 E] 5 [2015-05-22 22:46:03 E] server_len: 16 [2015-05-22 22:46:03 E] 3 [2015-05-22 22:46:03 I] Server listening on 0.0.0.0, port 5555 [2015-05-22 22:46:03 I] Log level set to INFO [2015-05-22 22:46:03 I] Waiting for incoming connection...
