Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

PPP in container

842 bytes added, 21:55, 13 December 2012
Caveat
==Caveat==
This feature It is experimental. It currently requires the latest necessary to run one of these 3 kernels :* [[Download/kernel/rhel6|rhel6]]* [[Download/kernel/2.6.27/|2.6.27-]] briullov.1or later* [[Download/kernel/rhel5|2rhel5]] 064.64 or later One other thing.27-briullov]] kernel I am not 100% sure about this but I think both the host and a the container need to be running the same bit version of vzctl patched with [http://gitOS.openvz So both need to be 32bit or 64bit.org/?p=vzctl; That is what I found the one time I tried this running a 32bit container on a=commitdiff;h=d78a7653d983269553763d536f69de0bb5109353 this patch]64bit host.
==Howto==
HN # modprobe ppp_async
HN # modprobe ppp_deflate
HN # modprobe ppp_mppe
HN # lsmod | grep ppp
ppp_mppe 6420 2
ppp_deflate 9793 2
zlib_deflate 21977 1 ppp_deflate
slhc 10561 1 ppp_generic
* 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. I am not sure about v5. The directory location may be different for that version.
HN # nano /etc/sysconfig/modules/ppp.modules
#!/bin/sh
/sbin/modprobe ppp_async
/sbin/modprobe ppp_deflate
/sbin/modprobe ppp_mppe
 
HN # chmod +x /etc/sysconfig/modules/ppp.modules
~�}#�!}!}!} }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.
* From that point, you can finish your setup as in a real hardware environment.
32
edits