Loading... > OpenVZ/LXC作为容器技术是不支持dd重装的,但是可以实现类似dd重装换系统的效果 ## 特点 - 支持OpenVZ和LXC虚拟化技术 - 支持Debian/CentOS/Alpine等多种系统的相互转换(及原地tp ## 原理 对于容器而言,其内核共享宿主机内核,自身打包了操作系统,应用和函数库等所有依赖。原理上只要替换对应的数据就可以替换系统,只不过要注意操作顺序,避免依赖关系冲突 ## 注意 - 会抹除数据,因此如果有重要数据自行备份 - 支持openvz 7,不支持openvz 6 - 仅支持openvz和lxc等容器虚拟化技术,不支持kvm等虚拟机技术 ## 使用 ```bash wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh ``` 或者 ```bash curl -so OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh ``` 对于磁盘空间小于1GB的VPS ```bash wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutationTight.sh && chmod u+x OsMutation.sh && ./OsMutation.sh ``` ------ > 参考文章:https://www.nodeseek.com/post-5159-1 > > 开源项目:[https://github.com/LloydAsp/OsMutation](https://github.com/LloydAsp/OsMutation) 最后修改:2023 年 11 月 24 日 © 允许规范转载 赞 1 如果觉得我的文章对你有用,请随意赞赏
此处评论已关闭