A simple script to reinstall your VPS with cloud image.
System | Version | Image | Size |
---|---|---|---|
Debian | 13 | debian-13-genericcloud-amd64.qcow2 | 358M |
Ubuntu | 24.04 | noble-server-cloudimg-amd64.img | 590M |
Fedora | 42 | Fedora-Cloud-Base-Generic-42-1.1.x86_64.qcow2 | 507M |
Rocky | 9 | Rocky-9-GenericCloud-Base.latest.x86_64.qcow2 | 598M |
AlmaLinux | 9 | AlmaLinux-9-GenericCloud-latest.x86_64.qcow2 | 506M |
CentOS Stream | 10 | CentOS-Stream-GenericCloud-10-latest.x86_64.qcow2 | 1.5G |
Archlinux | rolling | Arch-Linux-x86_64-cloudimg.qcow2 | 523M |
The current system must be Debian 10/Ubuntu 18 or higher.
-
Download the
reinstall.sh
script:curl -O https://cdn.jsdelivr.net/gh/p7e4/reinstall/reinstall.sh
or
curl -O https://raw.githubusercontent.com/p7e4/reinstall/refs/heads/main/reinstall.sh
-
Run the script:
Use SSH public key for authentication:
bash reinstall.sh -k "ssh-rsa your_key" -s debian
Or use password for authentication:
bash reinstall.sh -p your_password -s debian
Optionally, you can set up the hostname:
bash reinstall.sh -p your_password -s debian -n your_hostname