Hi,
I'm trying to run rumprun server application on xen hypervisor. But, it
works only for ipv6 auto even if I set as static ipv4 address. Here's my
configuration setting for nginx.
rumprun xen -i -M 128 \
-I net1,xenif -W net1,inet,static,10.0.0.10/24 \
-b ../images/data.iso,/data \
-b ../images/stubetc.iso,/etc \
-- ../../nginx/bin/nginx.bin -c /data/conf/nginx.conf
And log from the VM below:
!!!
!!! NOTE: rumprun is experimental. syntax may change in the future
!!!
start_info: 0x769000(VA)
nr_pages: 0x8000
shared_inf: 0xcf4ae000(MA)
pt_base: 0x76c000(VA)
nr_pt_frames: 0x7
mfn_list: 0x729000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line:
stack: 0x68a6a0-0x70a6a0
MM: Init
_text: 0x0(VA)
_etext: 0x3803e4(VA)
_erodata: 0x4da000(VA)
_edata: 0x506120(VA)
stack start: 0x68a6a0(VA)
_end: 0x728600(VA)
start_pfn: 776
max_pfn: 8000
Mapping memory range 0x800000 - 0x8000000
setting 0x0-0x4da000 readonly
skipped 0x1000
MM: Initialise page allocator for 7b2000(7b2000)-8000000(8000000)
MM: done
Demand map pfns at 8001000-2008001000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x8001000.
xenbus initialised on irq 1 mfn 0x2cbd38
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 = 61532 KB
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 "bmktc" 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/8/0
netfront: MAC 00:16:3e:3a:d2:34
xenif0: Ethernet address 00:16:3e:3a:d2:34
blkfront: node=device/vbd/51712
backend=/local/domain/0/backend/qdisk/8/51712
Failed to read /local/domain/0/backend/qdisk/8/51712/feature-barrier.
blkfront: 764 sectors
blkfront detached: node=device/vbd/51712
blkfront: node=device/vbd/51712
backend=/local/domain/0/backend/qdisk/8/51712
Failed to read /local/domain/0/backend/qdisk/8/51712/feature-barrier.
blkfront: 764 sectors
blkfront detached: node=device/vbd/51712
blkfront: node=device/vbd/51712
backend=/local/domain/0/backend/qdisk/8/51712
Failed to read /local/domain/0/backend/qdisk/8/51712/feature-barrier.
blkfront: 764 sectors
/dev/xvda: hostpath XENBLK_xvda (382 KB)
blkfront: node=device/vbd/51728
backend=/local/domain/0/backend/qdisk/8/51728
Failed to read /local/domain/0/backend/qdisk/8/51728/feature-barrier.
blkfront: 952 sectors
blkfront detached: node=device/vbd/51728
blkfront: node=device/vbd/51728
backend=/local/domain/0/backend/qdisk/8/51728
Failed to read /local/domain/0/backend/qdisk/8/51728/feature-barrier.
blkfront: 952 sectors
blkfront detached: node=device/vbd/51728
blkfront: node=device/vbd/51728
backend=/local/domain/0/backend/qdisk/8/51728
Failed to read /local/domain/0/backend/qdisk/8/51728/feature-barrier.
blkfront: 952 sectors
/dev/xvdb: hostpath XENBLK_xvdb (476 KB)
=== calling "../../nginx/bin/nginx.bin" main() ===
rumprun: call to ``sigaction'' ignored
And status of xen VM and IP address.
> xl list
Name ID Mem VCPUs State
Time(s)
Domain-0 0 11610 8 r-----
376.7
rumprun-nginx.bin 8 128 1 -b----
0.2
> ip addr
...
11: xenbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UP group default
link/ether 00:24:e8:79:08:a3 brd ff:ff:ff:ff:ff:ff
inet 155.98.38.111/22 brd 155.98.39.255 scope global xenbr0
valid_lft forever preferred_lft forever
inet6 fe80::224:e8ff:fe79:8a3/64 scope link
valid_lft forever preferred_lft forever
...
19: vif8.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
master xenbr0 state UP group default qlen 1
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
inet6 fe80::fcff:ffff:feff:ffff/64 scope link
valid_lft forever preferred_lft forever
It looks like working but there is only ipv6 address for the VM instead of
my setting. I also tried to set inet, dhcp but it showed error messages
below:
...
xenif0: Ethernet address 00:16:3e:62:xx:xx
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
dhcp get: timed out waiting for response.
rumprun: configuring dhcp for xenif0 failed: 49
My Dom 0 is Ubuntu 14.04.3 LTS 64 bit and running on x86 machine.
Thanks,
Myungho Jung