Subject: Re: [vserver] upnp server on guest system
From: Dready <thomas.subera@gmail.com>
Date: Thu, 6 Aug 2009 22:38:45 +0200

Hi there,

sorry for the late reply. I am doing this in my spare free time and
lately that's not very often.

I found the problem. (tcpdump did help) Actually i did two things
wrong. First i am using names for my interfaces so it's not eth0 but
eth0:v41 for example. I had to remove that one.

And then i had to change the configurations of the upnp servers from
using eth0:v41 to eth0 (example).

Now everything worked just fine. (both mediatomb and fuppes).

Thanks again and have a nice day.

Best regards,

Thomas

On Sun, Aug 2, 2009 at 5:10 PM, Herbert Poetzl<herbert@13thfloor.at> wrote:
> 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
>