How to enable PPP device/protocol support in OpenVZ container (Centos, Linux system)

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

First you need to enable the following modules on Openvz HOST:

modprobe ppp_mppe 
modprobe ppp_deflate 
modprobe zlib_deflate 
modprobe ppp_async 
modprobe ppp_generic 
modprobe slhc 
modprobe crc_ccitt 
root@host:~# lsmod | grep ppp
ppp_async               7872  0 
crc_ccitt               1733  1 ppp_async
ppp_deflate             4184  0 
ppp_mppe                6548  0 
ppp_generic            25248  3 ppp_mppe,ppp_deflate,ppp_async
slhc                    6076  1 ppp_generic
zlib_deflate           21663  2 btrfs,ppp_deflate

Replace the ContainerNo with your Virtual Machine id and execute the following commands on openvz host.
for example:

vzctl set 110 --features ppp:on --save

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

vzctl set [ContainerNo ] --features ppp:on --save
vzctl start [ContainerNo ]
vzctl set [ContainerNo ] --devices c:108:0:rw --save
vzctl exec [ContainerNo ] mknod /dev/ppp c 108 0
vzctl exec [ContainerNo ] chmod 600 /dev/ppp

After installing PPTP, checking the module by the following command:

/usr/sbin/pppd

You should see output is something like this:

asdf(*!^"£)(&!"£!"))_...

Now it means that PPP is loaded and setup.

Leave a Reply

Your email address will not be published. Required fields are marked *