OsMutation

将任意 OpenVZ/LXC VPS 重装为 Debian/CentOS/Alpine

功能特性

使用方法

常规方式:

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

针对小硬盘 VPS(小于 1GiB,实验性支持):

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

asciicast

注意事项 (Notice)

工作原理

OpenVZ 和 LXC 属于容器虚拟化技术,与宿主机共享内核。如果你想要替换操作系统,只需替换容器中的文件即可。就这样,简单明了。只需注意操作的顺序,因为文件之间存在一些依赖关系。

模板来源

LXC 模板下载自 linuxcontainers.org,OpenVZ 7 模板提取自官方 ISO。

Thanks To

To Do