It is currently Tue May 11, 2021 7:24 am

News News of Lik`s forum

Site map of Lik`s forum » Forum : Lik`s forum

cPanel/WHM/OpenVZ/Xen/Linux/IPMI Lik`s forum

VPN via the TUN/TAP device on the OpenVZ container

VPN via the TUN/TAP device

Kernel TUN/TAP support

OpenVZ supports VPN inside a container via kernel TUN/TAP module and device. To allow container #101 to use the TUN/TAP device the following should be done:

Make sure the tun module has been already loaded on the hardware node:
Code: Select all
lsmod | grep tun

If it is not there, use the following command to load tun module:
Code: Select all
modprobe tun

You can also add it into /etc/modules.conf to make ...
Read more : VPN via the TUN/TAP device on the OpenVZ container | Views : 2887 | Replies : 0 | Forum : OpenVZ related


OpenVZ CSF+LFD configuration on vps

There are two steps to configure the csf in vps:

1. Main vps server ( The host server, in which the vps nodes are running) configuration
2. Vps node configuration.

Let's proceed.

1. Main VPS server configuration

Before starting the CSF installation in a node login to the main server (host server) and check whether the following modules are inserted in to the kernel

———
ipt_conntrack
ipt_LOG
ipt_owner
ipt_state
ip_conntrack_ftp
———

You can check it ...
Read more : OpenVZ CSF+LFD configuration on vps | Views : 2137 | Replies : 0 | Forum : OpenVZ related








OpenVZ vm Server Memory Usage (script)

Server Memory Usage (script)

Ever wondered how much memory you are currently using and how close you are to the QoS hard limit?

Here is a simple script that calculates the QoS hard memory limit and the current memory usage:

#!/bin/sh

# Make sure we are running under a VPS system with QoS
if [ ! -f "/proc/user_beancounters" ]; then
echo "File \"/proc/user_beancounters\" does not exist. Make sure this script runs on a VPS system ...
Read more : OpenVZ vm Server Memory Usage (script) | Views : 2677 | Replies : 0 | Forum : OpenVZ related


OpenVZ/cPanel specific Apache memory limit (RlimitMEM)

Apache memory limit (RlimitMEM)

If you are using cPanel/WHM then you've got an option in your WHM to limit memory usage by apache processes (RLimitMEM), the option is under Security -> Modify Apache Memory Usage.

This option executes the script: /scripts/apachelimits. It works fine on dedicated systems, it reads the /proc/meminfo file for the currently installed memory and sets the limit accordingly.

Unfortunately the script is useless on a VPS, since a VPS uses a ...
Read more : OpenVZ/cPanel specific Apache memory limit (RlimitMEM) | Views : 2424 | Replies : 0 | Forum : OpenVZ related




OpenVZ vmguarpages and privvmpages description

vmguarpages: memory allocation guarantee.
This parameter controls how much memory is available to the Virtual Private Server (i.e. how much memory its applications can allocate by malloc(3) or other standard Linux memory allocation mechanisms). The more clients are served or the more "heavy" the application is, the more memory it needs.

The amount of memory that Virtual Private Server's applications are guaranteed to be able to allocate is specified as the barrier of vmguarpages parameter. ...
Read more : OpenVZ vmguarpages and privvmpages description | Views : 6768 | Replies : 1 | Forum : OpenVZ related


OpenVZ control

#vzctl enter 270
enter into VE 270 failed
Unable to open pty: No such file or directory

Execute following commands to create tty and pty devices:
Code: Select all
vzctl exec 270 /sbin/MAKEDEV pty
vzctl exec 270 /sbin/MAKEDEV tty

Sometimes, after "Fix Centos Dev" command, following should be executed:
Code: Select all
vzctl exec 101 MAKEDEV ptmx

To change hostname of the currently existing virtual machine, use following command:
Code: Select all
vzctl set VMID --hostname srv1.domain.com --save

To add/remove IP from the ...
Read more : OpenVZ control | Views : 4921 | Replies : 1 | Forum : OpenVZ related


 

Login  •  Register


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron