reinstall Open source · AGPL-3.0
One-click reinstall OS on VPS.
Introduction
reinstall is a one-click VPS OS reinstallation script for low-spec instances.
- One-click reinstall to Linux, supporting 20 common distributions.
- One-click reinstall to Windows using official original ISO files rather than custom images, with automatic ISO link lookup, automatic installation, and automatic installation of VirtIO and other public-cloud drivers.
- Supports reinstalling in any direction: Linux to Linux, Linux to Windows, Windows to Windows, and Windows to Linux.
- Automatically sets IP configuration and intelligently handles static and dynamic addresses, `/32`, `/128`, gateways outside the subnet, pure IPv6, and IPv4/IPv6 on different network interfaces.
- Requires less memory than official netboot, making it suitable for low-spec VPS instances.
- Identifies disks throughout the process by partition-table IDs to ensure the wrong disk is not written.
- Supports BIOS and EFI boot, as well as ARM servers.
- Contains no custom packages; all resources are fetched from mirrors in real time.
Additional functions include one-click DD of a Raw image to disk, booting Alpine Live OS as an in-memory system, and booting netboot.xyz. It can be downloaded from GitHub or cnb.cool. On Windows, disable Windows Defender real-time protection before use, as it can prevent `certutil` from downloading files.
The lowest listed target requirement is 256 MB of memory and 1 GB of disk space, depending on the target system. The script theoretically supports dedicated servers and PCs, but is not recommended when IPMI or a USB drive is available. It does not support OpenVZ or LXC virtual machines.
VPSOS reinstallationDisk imagingLinuxWindowsARM serversIPv6BIOS/EFI
Screenshots
Screenshot placeholder
Screenshot placeholder
Deployment
Linux 一键脚本(GitHub Raw)
适用于 Linux VPS,通过 curl 或 wget 从 GitHub Raw 下载 reinstall.sh 后执行系统重装、DD 或引导功能。
Linux 一键脚本(CNB 国内镜像)
适用于国内服务器访问 GitHub 不稳定的场景,通过 CNB 镜像下载 reinstall.sh 后执行相关功能。
Windows 批处理脚本(GitHub Raw)
适用于 Windows 主机,通过 certutil 从 GitHub Raw 下载 reinstall.bat 后运行重装功能。
Windows 批处理脚本(CNB 国内镜像)
适用于国内 Windows 主机访问 GitHub 不稳定的场景,通过 certutil 从 CNB 镜像下载 reinstall.bat 后运行。
Windows 7/Vista 手动下载
适用于 Vista、Windows 7 或 Server 2008 因 TLS、证书等问题无法自动下载脚本的场景,可用 IE 或远程桌面手动下载 reinstall.bat 与 Cygwin 安装程序后运行。
Details
Type Open-source software
License AGPL-3.0
Last verified 2026-10-03
Telegram community
t.me/reinstall_os ↗Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.