LloydAsp / OsMutation

Reinstall Any OpenVZ/LXC VPS to Debian/CentOS/Alpine
https://www.nodeseek.com/post-5159-1
GNU General Public License v3.0
331 stars 54 forks source link
alpine container lxc openvz openvz7 reinstall

OsMutation

Reinstall Any OpenVZ/LXC VPS to Debian/CentOS/Alpine

Features

Usage

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

or

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

for vps whose disk is small (less than 1GiB, experimental support)

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

asciicast

Notice

How Does This work

Openvz and Lxc are typical container virtualization technologys. The host OS kernel is shared with both the host and other containers, and all the applications and runtime libraries required by os are packed together in container itself.

So if you want to replace the operating system, you can just replace the files in the container. That's it, simple and straightforward. Just pay attention to the order of action since there are some dependences of files.

Template Sources

LXC templates are directly downloaded from http://images.linuxcontainers.org, OpenVZ 7 templates are extracted from OpenVZ 7 official iso.

Thanks To

To Do