Re: [Vserver] totem-video-thumbnailer within vserver?

From: Björn Steinbrink <B.Steinbrink_at_gmx.de>
Date: Thu 15 Jun 2006 - 15:00:39 BST
Message-ID: <20060615140039.GA28748@atjola.homenet>

On 2006.06.14 21:46:44 -0700, Martin Fick wrote:
> --- Herbert Poetzl <herbert@13thfloor.at> wrote:
> > On Mon, Jun 12, 2006 at 02:43:24PM -0700, Martin
> > Fick wrote:
> > > Ok, this is going to be a little out there. I am
> > > trying to run the totem-video-thumbnailer inside a
> > > vserver and this is the error message I get:
> > >
> > > ERROR: Could not determine network interfaces,
> > > you must use a interfaces config line
> >
> > please provide details regarding your host kernel,
> > tools and guest configuration, as well as some
> > relevant snippet from strace -fF ing the app
>
> Host: Debian unstable 2.6.16-1-vserver-686
> Guest: Debian sarge
>
> strace:
>
> ...
> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 14
> ioctl(14, SIOCGIFCONF, {32, {{"eth0", {AF_INET,
> inet_addr("192.168.1.65")}}}}) = 0
> ioctl(14, SIOCGIFADDR, 0xbffb112c) = 0
> ioctl(14, SIOCGIFFLAGS, 0xbffb112c) = 0
> ioctl(14, SIOCGIFNETMASK, 0xbffb112c) = -1
> EADDRNOTAVAIL (Cannot assign requested address)
> close(14) = 0
> write(1, "ERROR: Could not determine netwo"...,
> 85ERROR: Could not determine network interfaces, you
> must
> use a interfaces config line...
>
> Looks like it just can't open eth0, the ip is the
> proper ip for the vserver.

Yep, the ioctl part virtualizes "too much" away, this was fixed in
2.1.1-rc7 IIRC. The relevant patch is here:
http://www.13thfloor.at/~doener/vserver/patches/diff-2.6.16.5-vs2.0.2-rc16-devinet_ioctl.diff
Should apply without any problems.

>
> The ifconfig inside the vserver returns:
>
> eth0 Link encap:Ethernet HWaddr
> 00:11:D8:74:5D:3F
> UP BROADCAST RUNNING MULTICAST MTU:1500
> Metric:1
> RX packets:39193682 errors:0 dropped:0
> overruns:0 frame:0
> TX packets:39207371 errors:0 dropped:0
> overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:781137783 (744.9 MiB) TX
> bytes:3562859166 (3.3 GiB)
> Interrupt:209
>
> I guess I'd better read up on vserver networking...

ifconfig also uses the ioctl interface and thus cannot show the
vserver's ip address either.

HTH
Björn
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Jun 15 15:03:33 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 15 Jun 2006 - 15:03:42 BST by hypermail 2.1.8