justhost
aws
dotdot
iwebf

OsMutation:OpenVz/LXC一键重装系统脚本

surfercloud
pia云

老狗VPS,稳如老狗!OsMutation:OpenVz/LXC一键重装系统脚本特点:支持OpenVZ和LXC虚拟化技术,支持Debian/CentOS/Alpine等多种系统的相互转换。

SSH下使用

wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh

或者

curl -so OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh

原理
对于容器而言,其内核共享宿主机内核,自身打包了操作系统,应用和函数库等所有依赖。原理上只要替换对应的数据就可以替换系统,只不过要注意操作顺序,避免依赖关系冲突

注意
会抹除数据,因此如果有重要数据自行备份
支持openvz 7,不支持openvz 6
仅支持openvz和lxc等容器虚拟化技术,不支持kvm等虚拟机技术

转自:https://www.nodeseek.com/post-5159-1
已开源:https://github.com/LloydAsp/OsMutation

未经允许不得转载:老狗VPS测评 » OsMutation:OpenVz/LXC一键重装系统脚本
标签: