将任意 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
OpenVZ 和 LXC 属于容器虚拟化技术,与宿主机共享内核。如果你想要替换操作系统,只需替换容器中的文件即可。就这样,简单明了。只需注意操作的顺序,因为文件之间存在一些依赖关系。
LXC 模板下载自 linuxcontainers.org,OpenVZ 7 模板提取自官方 ISO。