Reinstall is a bash and batch toolkit that reinstalls Linux or Windows on VPS and bare-metal hosts from the running system. It auto-configures networking, supports many distros, and can chain netboot workflows.
Overview
The reinstall scripts let operators wipe and replace the OS on a remote server without IPMI or a USB stick when SSH or local shell access is available. Linux installs cover many common distributions; Windows installs use official ISOs with automatic driver and VirtIO handling where supported.
Flows include direct Linux installs, raw image DD, booting into Alpine live memory, netboot.xyz, Talos maintenance mode, and full Windows setup from auto-discovered or user-supplied ISO URLs. Transitions work in every direction among Linux and Windows as long as the provider is not OpenVZ or LXC.
Networking setup handles static and dynamic addresses, odd gateway layouts, pure IPv6, and split IPv4 and IPv6 interfaces. The script identifies disks by partition table IDs to avoid writing the wrong device, and targets low-memory VPS tiers compared with vendor netboot options.
Run reinstall.sh on Linux or reinstall.bat on Windows with flags for credentials, SSH keys, ports, hold modes for debugging, and cloud-init injection when DDing Linux images. A reset command can cancel a pending reinstall before reboot.
Key features
- Linux distro network installs
- Official Windows ISO installation
- Raw and compressed image DD
- Alpine live and netboot.xyz boot
- Automatic IP and routing setup
- BIOS and EFI support
- ARM server compatibility
- SSH-visible install progress
Use cases
- VPS OS migration
- Windows on cloud VPS
- Emergency rescue environments
- Low-memory netinstall
- Cross-platform reinstall paths