I have put together a baked in rootfs nginx kernel using Martin and Justin’s
“fossilised file system".
It works just dandy on my local Xen server. Very nice.
When I run it on EC2 I get the nasty error below.
Now one thing is that I have lost track of where we got to with making rump
work on EC2. I made it work with a manual code patch from Antti, and then
Martin came up with a patch, then Antti came up with a revision to the code.
So I’m not exactly sure what I need to do to replicate the original fix to the
networking that made it work on EC2 - Antti would you mind summarising please
what I need to do to correctly configure the network for EC2 - is there
something I need to change or should it now be automatic?
thanks!
Here’s the current error:
Xen Minimal OS!
start_info: 0xd00000(VA)
nr_pages: 0x6a400
shared_inf: 0x7e129000(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 0x104c091
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/19359/2049
Failed to read /local/domain/0/backend/vbd/19359/2049/feature-barrier.
Failed to read /local/domain/0/backend/vbd/19359/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/19359/2050
Failed to read /local/domain/0/backend/vbd/19359/2050/feature-barrier.
Failed to read /local/domain/0/backend/vbd/19359/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/19359/2051
Failed to read /local/domain/0/backend/vbd/19359/2051/feature-barrier.
Failed to read /local/domain/0/backend/vbd/19359/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/19359/2049 node=device/vbd/2049
close blk: backend=/local/domain/0/backend/vbd/19359/2050 node=device/vbd/2050
close blk: backend=/local/domain/0/backend/vbd/19359/2051 node=device/vbd/2051
start_info: 0x98a000(VA)
nr_pages: 0x6a400
shared_inf: 0x7e129000(MA)
pt_base: 0x98d000(VA)
nr_pt_frames: 0x9
mfn_list: 0x638000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line:
stack: 0x59d480-0x61d480
MM: Init
_text: 0x0(VA)
_etext: 0x284b54(VA)
_erodata: 0x3f9000(VA)
_edata: 0x415260(VA)
stack start: 0x59d480(VA)
_end: 0x637b40(VA)
start_pfn: 999
max_pfn: 6a400
Mapping memory range 0xc00000 - 0x6a400000
setting 0x0-0x3f9000 readonly
skipped 0x1000
MM: Initialise page allocator for ce6000(ce6000)-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 0x104c091
Failed to read device/pci/0/backend-id.
no backend
PANIC: could not get configuration
minios: halting, reason=0