openvz的安装与使用

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值