欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

openvz的安装与使用

程序员文章站 2022-06-04 19:50:43
...

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

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
[[email protected] cache]#yum install ploop

参考
https://www.jianshu.com/p/39b1688856d1
https://blog.csdn.net/enweitech/article/details/52910145

相关标签: Linux