Enable the Kernel PPP support
OpenVZ supports start the pppd daemon in a virtual machine via kernel PPP module and device. To allow container to use the PPP device the following should be done:
Make sure the PPP module has been already loaded on the hardware node:
# lsmod | grep ppp
If it is not there, use the following command to load PPP module:
# modprobe ppp_async
# modprobe ppp_deflate
# modprobe ppp_mppe
To make these HN changes persistent on reboot create a file called ppp.modules.
You can use any name you like but you must give it a .modules extension. The following method and directory location is applicable to CentOS v6.
Not sure about v5. The directory location may be different for that version.
# nano /etc/sysconfig/modules/ppp.modules
#!/bin/sh
/sbin/modprobe ppp_async
/sbin/modprobe ppp_deflate
/sbin/modprobe ppp_mppe
Save and exit
# chmod +x /etc/sysconfig/modules/ppp.modules
Enabling the PPP from the container using Virtualizor Admin panel
While creating or editing the VPS expand the Advance option menu by clicking on it as shown in the figure . Check the PPP check box .Then just create/edit the vps the ppp module will be enabled for the containor.
To check PPP is enabled or not
[root@Node /]# vzctl enter CTID
See if it works (as root):
# /usr/sbin/pppd
You should see gibberish in the standard output like
~?}#?!}!}!} }4}"}&} } } } }%}&)Q?}4}'}"}(}"p})
This will go on for about 30 seconds and then you will be returned to a command prompt. If there is an error message instead, something went wrong.
Make sure ppp package is installed inside the vps in order ppp to work .