Errors launching on EC2

  • From: Andrew Stuart <andrew.stuart@xxxxxxxxxxxxxxxxxx>
  • To: rumpkernel-users <rumpkernel-users@xxxxxxxxxxxxx>
  • Date: Sun, 26 Jul 2015 17:32:56 +1000

Hmmm….. any ideas welcome on this - am I configuring something wrong?

I can get the simple.c rump kernel to boot on EC2 where there is no block
device attached.

Where I attach a block device and try to use the Hiawatha server it doesn’t
work.

It’s saying:
unsupported devtype blk0
rumprun: etfs register for "blk0" failed: 6


static char hardcoded_jsoncfg[] = "{\"cmdline\": \"hiawatha_baked.xen -d -c
/data/conf\", \"net\": {\"cloner\": \"true\", \"type\": \"inet\", \"method\":
\"dhcp\", \"if\": \"xenif0\"}, \"blk\": {\"fstype\": \"ext2fs\", \"source\":
\"etfs\", \"path\": \"blk0\", \"mountpoint\": \"/\"}}”;

Here’s the launch log:


Xen Minimal OS!
start_info: 0xd00000(VA)
nr_pages: 0x6a400
shared_inf: 0x7dcc3000(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 0x74d8f5
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/23429/2049
Failed to read /local/domain/0/backend/vbd/23429/2049/feature-barrier.
Failed to read /local/domain/0/backend/vbd/23429/2049/feature-flush-cache.
2097152 sectors of 512 bytes
**************************
vbd 2051 is hd1
******************* BLKFRONT for device/vbd/2051 **********


backend at /local/domain/0/backend/vbd/23429/2051
Failed to read /local/domain/0/backend/vbd/23429/2051/feature-barrier.
Failed to read /local/domain/0/backend/vbd/23429/2051/feature-flush-cache.
1835008 sectors of 512 bytes
**************************


GNU GRUB version 0.97 (1740800K lower / 0K upper memory)



+-------------------------------------------------------------------------+||||||||||||||||||||||||+-------------------------------------------------------------------------+

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. 
Rump













  The highlighted entry will be
booted automatically in 1 seconds.  Booting 'Rump'



root (hd0)

Filesystem type is ext2fs, using whole disk

kernel /boot/rump-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/23429/2049 node=device/vbd/2049
close blk: backend=/local/domain/0/backend/vbd/23429/2051 node=device/vbd/2051
start_info: 0x8b4000(VA)
nr_pages: 0x6a400
shared_inf: 0x7dcc3000(MA)
pt_base: 0x8b7000(VA)
nr_pt_frames: 0x9
mfn_list: 0x562000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line:
stack: 0x4d2f00-0x552f00
MM: Init
_text: 0x0(VA)
_etext: 0x260b74(VA)
_erodata: 0x33b000(VA)
_edata: 0x347680(VA)
stack start: 0x4d2f00(VA)
_end: 0x561070(VA)
start_pfn: 8c3
max_pfn: 6a400
Mapping memory range 0xc00000 - 0x6a400000
setting 0x0-0x33b000 readonly
skipped 0x1000
MM: Initialise page allocator for c10000(c10000)-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 0x74d8f5
Failed to read device/pci/0/backend-id.
no backend
using hardcoded_jsoncfg
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 = 843 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)
timecounter: Timecounter "rumpxen" frequency 1000000000 Hz quality 100
mounted tmpfs on /tmp
net TX ring size 256
net RX ring size 256
netfront: node=device/vif/0 backend=/local/domain/0/backend/vif/23429/0
netfront: MAC 22:00:0A:E5:03:B2
xenif0: Ethernet address 22:00:0a:e5:03:b2
dhcp: xenif0: adding IP address 10.229.3.178/26
dhcp: xenif0: adding route to 10.229.3.128/26
dhcp: xenif0: adding default route via 10.229.3.129
lease time: 86400 seconds
unsupported devtype blk0
rumprun: etfs register for "blk0" failed: 6

=== ERROR: _exit(1) called ===
panic: releasing non-pertinent lwp
rump kernel halting...
halted
PANIC: rumpuser panic
port 4 still bound!
minios: halting, reason=0


Other related posts: