https://docs.virtuozzo.com/master/index.html
https://wiki.openvz.org/Main_Page openvz 手册指南
安装
wget -P /etc/yum.repos.d/ http://download.openvz.org/openvz.repo
rpm --import https://download.openvz.org/RPM-GPG-Key-OpenVZ
yum update
yum search all vzkernel
yum install vzkernel
cat /boot/grub/menu.lst
在这里重启,否则ping不通外网,不能ssh
yum install vzquota vzctl
配置
vim /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.default.forwarding = 1
配置后sysctl -p
生效
#网络接口配置
vim /etc/vz/vz.conf
NEIGHBOUR_DEVS=all
https://wiki.openvz.org/Man/vz.conf.5
vzctl create
vzctl create 101 --ostemplate centos-6-x86
Can't load ploop library: libploop.so: cannot open shared object file: No such file or directory
Please install ploop packages!
Alternatively, if you can't or don't want to use ploop, please
add --layout simfs option, or set VE_LAYOUT=simfs in /etc/vz/vz.conf
Creation of container private area failed
[root@ton cache]#yum install ploop
参考
https://www.jianshu.com/p/39b1688856d1
https://blog.csdn.net/enweitech/article/details/52910145