

OsMutation:OpenVz/LXC一键重装系统脚本
source link: https://vpsxb.net/4619/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

OsMutation:OpenVz/LXC一键重装系统脚本 | VPS小白
脚本特点
支持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
转载请注明原文链接
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK