OpenVZ Forum


Home » General » Support » PPP in a container question? (ppp in container)
PPP in a container question? [message #38384] Sun, 13 December 2009 13:39 Go to next message
michaelk is currently offline  michaelk
Messages: 8
Registered: November 2009
Junior Member
Hi!

I'm trying to follow this guide to be able to run pppd within a container
http://wiki.openvz.org/PPP_in_container

[root@centos ~]# vzctl set 102 --features ppp:on --save
Warning: Unknown feature: ppp:on
Bad parameter for --features: ppp:on

[root@centos ~]# rpm -q vzctl vzctl-lib
vzctl-3.0.23-1
vzctl-lib-3.0.23-1

Can I find somewhere a built version of vzctl with ppp support?


[root@centos ~]# grep DEV /etc/vz/conf/102.conf 
DEVICES="c:10:200:rw c:108:0:rw "


Is it okej to have multiple devices in the DEVICES declaration in the conf file?
(space separated or comma seperated?)



root@centos ~]# lsmod | grep ppp
ppp_mppe               10372  0 
ppp_deflate             9728  0 
zlib_deflate           21912  1 ppp_deflate
ppp_async              15232  0 
ppp_generic            31884  3 ppp_mppe,ppp_deflate,ppp_async
slhc                   10240  1 ppp_generic
crc_ccitt               6144  1 ppp_async


[root@centos ~]# vzctl enter 102
entered into CT 102
[root@vz102 /]# ll /dev/ppp
crw------- 1 root root 108, 0 Dec 13 13:01 /dev/ppp
[root@vz102 /]# ifconfig ppp0 up
ppp0: unknown interface: No such device


[root@vz102 /]# /usr/sbin/pppd
/usr/sbin/pppd: This system lacks kernel support for PPP.  This could be because
.
.


Obviosly it doesn't work Sad

Any more hints ot tips?

seems a bit unclear in http://bugzilla.openvz.org/show_bug.cgi?id=268 if this should work or not?

Thanks in advance

Michael
Re: PPP in a container question? [message #38425 is a reply to message #38384] Fri, 18 December 2009 13:04 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

please pay attention to "Caveat" section
Quote:

It currently requires a version of vzctl patched with this patch

Re: PPP in a container question? [message #38483 is a reply to message #38425] Fri, 25 December 2009 10:33 Go to previous messageGo to next message
michaelk is currently offline  michaelk
Messages: 8
Registered: November 2009
Junior Member
According to "Caveat" section you need kernel "rhel5 064.4 or later".

I'm running kernel 2.6.18-164.2.1.el5.028stab066.10 which should be safe?


My problem is that the ppp feature is unknown to vzctl:

[root@centos ~]# uname -a
Linux centos.localdomain 2.6.18-164.2.1.el5.028stab066.10 #1 SMP Sat Dec 12 12:51:59 MSK 2009 i686 i686 i386 GNU/Linux
[root@centos ~]# modprobe ppp_async
[root@centos ~]# modprobe ppp_async
[root@centos ~]# modprobe ppp_async
[root@centos ~]# lsmod | grep ppp
ppp_async              15232  0 
ppp_generic            31884  1 ppp_async
slhc                   10240  1 ppp_generic
crc_ccitt               6144  1 ppp_async
[root@centos ~]# vzctl set 102 --features ppp:on --save              
Warning: Unknown feature: ppp:on
Bad parameter for --features: ppp:on
Re: PPP in a container question? [message #38484 is a reply to message #38483] Fri, 25 December 2009 13:08 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
According to Caveat it is not only required a fresh kernel but also a patched vzctl.
Re: PPP in a container question? [message #38487 is a reply to message #38484] Fri, 25 December 2009 19:29 Go to previous messageGo to next message
michaelk is currently offline  michaelk
Messages: 8
Registered: November 2009
Junior Member
Quote:
According to Caveat it is not only required a fresh kernel but also a patched vzctl.


Yes, I know...in my first post I asked where "I can find a built version of vzctl with ppp support?"

Of do I have to download the source and compile it myself?

Any hints?

Re: PPP in a container question? [message #38489 is a reply to message #38487] Sat, 26 December 2009 10:40 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Quote:

Of do I have to download the source and compile it myself?


Yes, it's an easy task to do.
It may be performed something like that.

# git clone git://git.openvz.org/pub/vzctl myvzctl
# cd myvzctl
# ./autogen.sh
# ./configure
# make
Re: PPP in a container question? [message #38502 is a reply to message #38489] Sun, 27 December 2009 20:15 Go to previous message
michaelk is currently offline  michaelk
Messages: 8
Registered: November 2009
Junior Member
Yepp! That solved my problems...With the new vzctl I can now run ppp in a container Razz

Thanks for all help!

Michael
Previous Topic: Can't start 5 processes each allocates 1G of VIRT memory, on OpenVZ with 2GB configured RAM.
Next Topic: DAHDI/Zaptel for Asterisk in OpenVZ (/proc issue)
Goto Forum:
  


Current Time: Wed Jul 17 07:32:43 GMT 2024

Total time taken to generate the page: 0.04660 seconds