Subject: Re: [vserver] upnp server on guest system
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Sun, 2 Aug 2009 17:10:33 +0200

On Sun, Aug 02, 2009 at 10:22:00AM +0200, Dready wrote:
> Hi there,
> 
> i have troubles with upnp servers in a vserver system. I am using
> debian stable with the kernel: "2.6.26-2-vserver-686" and created a
> new vserver called media01. I tried mediatomb an fuppes, whoch worked
> fine and i am also able to configure them and so on.

first, you don't want to use the "known-to-be-broken"
debian kernel ...

> The Problem lies with the connectivity to other systems (for example
> ps3). They don't seem to find it and i am pretty sure it's related to
> multicast issues. As proposed here: http://linux-vserver.org/Multicast
> i added a new interface 1 nodev with the ip 239.0.0.0 as for mediatomb
> you have to add this route: (where eth1 is the device you are using,
> mine is eth0)
> # route add -net 239.0.0.0 netmask 255.0.0.0 eth1
> # ifconfig eth1 allmulti

> Did not work. I added the route on the host system (for eth0), also
> not working. My default interface configuration for the vserver is:
> ip: 192.168.0.41
> name: v41
> prefix: 16

> my bcapabilities look as follows:
> NET_RAW
> NET_BROADCAST

second, you don't want to give NET_RAW to a guest
lightly, unless (host) security is not an issue

> What am i missing?

no idea, get a working kernel (2.6.27.x or 2.6.29.x)
and try again, if the issue remains, try to see
_what_ fails with e.g. tcpdump (on the host)

look for packets with wrong source/destination and/
or non IP packets ... compare it with the packets
seen when you run it on the host

best,
Herbert

> I tried installing mediatomb on the host system and it works fine, but
> i really want to have it running in a controllable vserver
> environment.

> Thanx!

> best regards,
> Thomas Subera