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

2006-07-13 Thread Martin Fick
--- Björn Steinbrink [EMAIL PROTECTED] wrote:
 On 2006.06.14 21:46:44 -0700, Martin Fick wrote:
...
  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.

Thanks, I waited for the new debian 2.17.1vserver, it
seems to have this patch applied.  It works fine now!

-Martin


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


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

2006-06-15 Thread Björn Steinbrink
On 2006.06.14 21:46:44 -0700, Martin Fick wrote:
 --- Herbert Poetzl [EMAIL PROTECTED] 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


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

2006-06-14 Thread Martin Fick
--- Herbert Poetzl [EMAIL PROTECTED] 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.

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...

-Martin


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


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

2006-06-13 Thread Herbert Poetzl
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

TIA,
Herbert

 Totem brings in every dependency imaginable, half of
 gnome, xine ...
 
 After searching for this error message on google (typo
 and all, a interfaces), this is what I found:
 http://lists.samba.org/archive/samba/2003-July/070951.html
 
 Not very useful, but it does look like some low level
 networking library error.  Anyone have any suggestions
 on this one, even if it involves making the vserver
 slightly less isolated from the host?
 
 Thanks,
 
 -Martin
 
 Oh, any suggestions for an alternative video
 thumbnailer are welcomed (it has to handle avis)!
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver