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

From: Tilo Kaltenecker (Tilo.Kaltenecker_at_intraconnect.de)
Date: Tue 05 Jul 2005 - 17:51:39 BST


>> I will hide the IP of eth0 , but I will show the vserver-IP inside the vserver.
>>
>> How can I set VXF_HIDE_NETIF flag in VServer 1.9.5
>the flag should be enabled by default
>
>but it might be better to test/use vs2.0-rc5
>http://vserver.13thfloor.at/Experimental/patch-2.6.12.2-vs2.0-rc5.diff

I have test the patch-2.6.12.2-vs2.0-rc5.diff with kernel 2.6.12.2, the issue is the same.

node2:~ # vserver ox enter
WARNING: can not find configuration, assuming legacy method
ipv4root is now 192.168.1.150
New security context is 2
ox:/ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:02:B3:AB:5A:8D
          inet addr:192.168.1.120 Bcast:192.168.1.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:906 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:113300 (110.6 Kb) TX bytes:239986 (234.3 Kb)

eth0:ox Link encap:Ethernet HWaddr 00:02:B3:AB:5A:8D
          inet addr:192.168.1.150 Bcast:192.168.1.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0:test Link encap:Ethernet HWaddr 00:02:B3:AB:5A:8D
          inet addr:192.168.1.140 Bcast:192.168.1.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:2496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2496 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:507812 (495.9 Kb) TX bytes:507812 (495.9 Kb)

But it should only see the IP-address from eth0:ox (192.168.1.150) from inside the vserver ox.

My host-system is node2 (SLES9 - IP address 192.168.1.120)
My vserver1 is ox (SLES9 - IP address 192.168.1.150)
My vserver2 is test (SLES9 - IP address 192.168.1.140)

I have build the vserver with: "vserver ox build -m legacy"
>
>> I tested in /etc/vservers/ox.conf: S_FLAGS="lock nproc hide_netif"
>> but by execute "vserver --debug ox start" the error is:
>
>this is an old/legacy style config (using S_FLAGS)
>which does not support any of the 'new' features,
>so naturally new flags are unknown ...
>
>> Unknown flag 'hide_netif'
>
>switching to the new-style tree based config will
>allow you to specify all known flags and ccaps
>(and do some other things)
>
Where can I find a detailed documentation of the new tree based configuration.

Thanks!

~ tilo

_______________________________________________
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 Tue 05 Jul 2005 - 17:52:14 BST by hypermail 2.1.3