About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 12 Aug 2005 - 11:36:57 BST


On Fri, Aug 12, 2005 at 10:06:20AM +0200, Marvin Stark wrote:
> Good morning,
>
> I got a problem with my network interface.
> I installed my vServer with this commandline:
>
> vserver vs1 build -m debootstrap --hostname vs1 --netdev eth0 --netbcast
> 192.168.3.255 --netmask 255.255.255.0 --interface eth0 -- -d sarge

that's a little weird for a start ...

> After that i set my network settings:
>
> echo "eth0" > /etc/vservers/vs1/interfaces/dev
> echo "192.168.3.5" > /etc/vservers/vs1/interfaces/0/ip
> echo "vserver1" > /etc/vservers/vs1/uts/nodename

hmm, why not specify those things in the first
place? e.g.

vserver vs1 build -m debootstrap --hostname vserver1
  --interface eth0:192.168.3.5/24 -- -d sarge

> than i started my vServer:
> vserver vs1 start
>
> than all is working fine:
>
> Starting system log daemon: syslogd.
> Starting kernel log daemon: klogd.
> Starting MTA: exim4.
> Starting internet superserver: inetd.
> Starting deferred execution scheduler: atd.
> Starting periodic command scheduler: cron.
>
> Now i enter the vServer:
>
> vserver vs1 enter
>
> now i look at my network settings(ifconfig):
>
>
> eth0 Link encap:Ethernet HWaddr 00:E0:7D:DE:6E:3D
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:348 errors:0 dropped:0 overruns:0 frame:0
> TX packets:327 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:34742 (33.9 KiB) TX bytes:31143 (30.4 KiB)
> Interrupt:12 Base address:0xd400
>
> so, there is no ip set.

wrong, there is no alias configured, and you are
not allowed to use the ip from the host ...

using 'ip addr ls' instead of the ancient ifconfig
you will _see_ the configured (and allowed) ips ...

if you prefer an alias, you have to tell the system
which can be done by:

echo "hansi" > /etc/vservers/vs1/interfaces/name

or by specifying --interface hansi=eth0:192.168.3.5/24

> if i restart my network interface i get this msg:
> Setting up IP spoofing protection: /etc/init.d/networking: line
> 17: /proc/sys/net/ipv4/conf/all/rp_filter: Operation not permitted
> /etc/init.d/networking: line
> 17: /proc/sys/net/ipv4/conf/default/rp_filter: Operation not permitted
> /etc/init.d/networking: line 17: /proc/sys/net/ipv4/conf/eth0/rp_filter:
> Operation not permitted
> /etc/init.d/networking: line 17: /proc/sys/net/ipv4/conf/eth1/rp_filter:
> Operation not permitted
> /etc/init.d/networking: line 17: /proc/sys/net/ipv4/conf/lo/rp_filter:
> Operation not permitted
> rp_filter.
> Reconfiguring network interfaces...SIOCSIFADDR: Permission denied
> SIOCSIFFLAGS: Permission denied
> SIOCSIFFLAGS: Permission denied
> Failed to bring up lo.
> Ignoring unknown interface eth0=eth0.

which is expected, as the guests are not allowed
to mess with the network config, only the host is ...

> and when i shut down the vserver i get this msg:
>
> Deactivating swap...umount: none: not found
> umount: /tmp: must be superuser to umount
> Not superuser.
> done.
> Unmounting local filesystems...umount: none: not found
> umount: /tmp: must be superuser to umount
> umount: /dev/hdv1: not found
> umount: /: not mounted
> done.
> mount: permission denied
> Rebooting... ifdown: shutdown eth0: Permission denied
> ifdown: shutdown eth0: Permission denied
> ifdown: shutdown eth1: Permission denied

which is harmless, but if you want it to go away,
just remove the hardware related shutdown scripts
(symlinks) so that the guest will not attempt to
do hardware stuff on shutdown ...

> I dont know how to fix this and i hope you can help me.
>
> The hostmaschine is running with Debian GNU/LINUX 3.1 ('Sarge')
> and Kernel 2.6.8. Iam using the debian vserver packages.

which in general is not the best idea, but I hope
this will change soon ...

HTH,
Herbert

> best regards,
>
> Marvin
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 12 Aug 2005 - 11:37:28 BST by hypermail 2.1.3