2015-10-12 21:05 GMT+02:00 Antti Kantee <[email protected]>:
> On 12/10/15 18:56, Myungho Jung wrote:
>
>> 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
>>
>
> 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
>>
>
> Define "works". How are you trying to reach 10.0.0.10? There's at least
> nothing configured to route to 10.0.0.0/24 in your above dumps.
Maybe I can help to anyone who might struggle with this in the future. The
config has to look something like this
rumprun xen -i -M 128 \
-I net1,xenif*,bridge=xenbr0 \*
-W net1,inet,dhcp \
-b ../images/data.iso,/data \
-b ../images/stubetc.iso,/etc \
-- ../../nginx/bin/nginx.bin -c /data/conf/nginx.conf
Then during the boot something like this should appear in the console:
dhcp: xenif0: adding IP address 192.xxx.xx.xxx/xx
dhcp: xenif0: adding route to 192.xxx.xx.x/xx
dhcp: xenif0: adding default route via 192.xxxx.xxx.x
To test it just execute:
curl http://192.xxx.xx.xxx
and see if there something is returned form the server :)
> 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
What is this error about? Has this something to do how the mounting of
images work described in " *Fs-utils: File System Access Tools for
Userland" *?
- Vincent