Tag Archives: openvz

Execute a command in all running OpenVZ Containers

If you wish to execute a command in all running Containers, you can use the following script: where <command> is the command to be executed in all the running Containers. For example: Container 12:26pm up 6 days, 1:28, 0 users, load average: 0.00, 0.00, 0.00Container 1012:26pm up 6 days, 1:39, 0 users, load average: 0.00, … Continue reading Execute a command in all running OpenVZ Containers

How to install openvz on CentOS 6.2

1. Add openvz repo 2. Install openvz 3. Modify relevant kernel settings (sysctl.conf) net.ipv4.ip_forward=1kernel.sysrq = 1 net.ipv4.conf.all.rp_filter=1net.ipv4.icmp_echo_ignore_broadcasts=1 net.ipv4.conf.default.forwarding=1net.ipv4.conf.default.proxy_arp = 0net.ipv4.conf.default.send_redirects = 1net.ipv4.conf.all.send_redirects = 0net.ipv4.conf.eth0.proxy_arp=1 4. Reboot the server 5. Disable se linux SELINUX=disabled 6. Install strace (I do not remember why I initially wanted this installed, but still it has nothing to spoil)