下面是母鸡的安装的教程 必须centos7 硬盘必须ext4
我这个是一键脚本,主从段一体
硬盘空间全部丢给/根目录
或者自己创建 /vz目录,分配空间
第一步
yum install screen -y
screen -S d
yum update -y
yum downgrade glibc* -y
yum install nss-softokn-freebl.i686 nss-tools -y
yum install prlctl prl-disp-service vzkernel ploop -y && yum update -y && yum install fuse -y
mkdir /vz
yum localinstall https://download.openvz.org/virtuozzo/releases/openvz-7.0.11-235/x86_64/os/Packages/p/python-subprocess32-3.2.7-1.vz7.5.x86_64.rpm -y
yum localinstall https://download.openvz.org/virtuozzo/releases/openvz-7.0.11-235/x86_64/os/Packages/o/openvz-release-7.0.11-3.vz7.x86_64.rpm -y
yum install epel-release -y
yum install python3 -y
rpm -Uvh http://repo.virtuozzo.com/vzlinux/7/x86_64/os/Packages/r/readykernel-scan-0.11-1.vl7.noarch.rpm
rpm -Uvh http://repo.virtuozzo.com/vzlinux/7/x86_64/os/Packages/z/zstd-1.4.4-1.vl7.x86_64.rpm
rpm -Uvh http://repo.virtuozzo.com/vzlinux/7/x86_64/os/Packages/v/vzlinux-release-7-1.vl7.91.x86_64.rpm
mv /etc/yum.repos.d/CentOS-* /root/
rpm -e --nodeps --justdb json-c
yum erase jansson -y
yum localinstall http://repo.virtuozzo.com/vzlinux/7.7/x86_64/os/Packages/j/jansson-2.10-1.vl7.1.x86_64.rpm -y
yum localinstall http://repo.virtuozzo.com/vzlinux/7.7/x86_64/os/Packages/j/json-c-0.11-13.vl7.1.x86_64.rpm -y
rpm -e --nodeps --justdb nspr nss nss-pem nss-softokn nss-softokn-freebl nss-sysinit nss-tools nss-util
yum localinstall http://repo.virtuozzo.com/vzlinux/7/x86_64/os/Packages/n/nss-3.44.0-7.vl7.x86_64.rpm -y
yum downgrade glibc* -y
yum install nss-softokn-freebl.i686 nss-tools -y
yum install prlctl prl-disp-service vzkernel -y && yum update -y && yum install fuse -y
reboot
第二部
screen -S dd
modprobe ploop pfmt_ploop1 pfmt_raw pio_direct fuse
wget -O /usr/libexec/ovz-template-converter https://raw.githubusercontent.com/solusvm-support/svm_patches/master/ovz-template-converter.patched && chmod +x /usr/libexec/ovz-template-converter
rpm -e --nodeps --justdb python3-pip
yum install -y python36-pip python-configobj && pip3 install configobj
yum install *ez.noarch -y
第三部
wget http://xiaojier.mooncloud.top/ovz/solusvm-new.sh && wget http://xiaojier.mooncloud.top/ovz/addnat.sh && bash solusvm-new.sh