Reboots, Reinstalls & Console

Reinstalling VPS OS

By the Domain India teamPublished 5 min read
Knowledge base article
Contents (5 sections)

Reinstalling the operating system wipes your VPS and gives you a fresh Linux install. On a Domain India VPS you do it yourself from the Rebuild tab of your VPS page: back up what you need, choose the OS and confirm. Your IP address, VPS name and plan stay the same. This page gives the short version; the full guide covers every step.

Key takeaways

An OS reinstall erases everything on the VPS disk, so copy your files, databases and settings to storage outside the server first. Then open your VPS page (client area › VPS & Servers › your VPS), go to the Rebuild tab, choose the operating system, type your VPS name to confirm, and wait for the VPS to come back. Your IP address stays the same.

For the full guide, see Installing and reinstalling an operating system

The complete walkthrough, with backup commands, OS choices for 2026 and post-install hardening, is in Installing/reinstalling an operating system.

1. When a reinstall makes sense

  • After a compromise. Once an attacker has had root, a clean OS is the only state you can trust. Restore your data and code, never old system files.
  • To change distribution, for example from AlmaLinux to Ubuntu.
  • To leave an end-of-life OS such as CentOS 7 or 8, or Ubuntu 20.04.
  • When the system is broken beyond a reasonable repair, such as a failed major upgrade.

If one service is misbehaving, fix or restart that service instead. A reinstall costs hours of setup and restore time.

2. Back up first

Everything on the VPS is erased

Websites, databases, mail, users, SSH keys, cron jobs, firewall rules and any archive you saved on the VPS itself are all deleted. Snapshots of this VPS are deleted with the old disk too. Only copies stored somewhere else survive. The firewall rules on your VPS page's Firewall tab carry over.

Before you reinstall:

  1. Archive your site files, for example tar -czf /root/sites.tar.gz /var/www.
  2. Dump each database with mysqldump --single-transaction dbname > dbname.sql or pg_dump dbname > dbname.sql.
  3. Save /etc, your crontabs (crontab -l > crontab.txt), any .env files and certificates you paid for.
  4. Record your installed packages (apt list --installed or dnf list installed).
  5. Copy it all off the server with rsync or scp, and open a few files to check they are complete.

3. Reinstall from your VPS page

  1. Open your VPS page
    in the client area: VPS & Servers › your VPS, then the Rebuild tab.
  2. Choose the OS
    under Reinstall operating system: Ubuntu 24.04, Ubuntu 22.04, Debian 12, Debian 13, AlmaLinux 9 or Rocky Linux 9.
  3. Optional: paste an SSH public key
    so you can log in straight away.
  4. Click Reinstall…
    and type your VPS name exactly as shown to confirm.
  5. Wait for the VPS to come back.
    Then set a root password on the same tab, or log in with your key.

Your IP address stays the same. You can reinstall up to 3 times an hour. If a reinstall fails, the VPS is started again as it was.

Older VPS without a VPS page in your client area: open a ticket with the VPS IP address and the OS you want, and our team will do this for you.

4. After the reinstall

Your computer remembers the old server's fingerprint, so clear it with ssh-keygen -R your-vps-ip and connect again with ssh root@your-vps-ip, using your key or a root password you set on the Rebuild tab (it is shown once and never emailed). Then secure the server before restoring anything: update the system, add your SSH key, create a sudo user, turn off password and root login, and enable a firewall. The first-hour checklist is in VPS account setup and activation, and the firewall steps are in Setting up a firewall on your VPS.

5. Domain India VPS

Domain India VPS plans run on KVM with full root access and NVMe storage. They are self-managed: you install, secure and back up your own software, and your VPS page lets you reinstall the OS, restart the VPS and open a console yourself. A VPS comes without a control panel; you can install one yourself, but cPanel is not offered on a VPS.

Can I reinstall my VPS operating system from the client area?

Yes. Back up your data, then open your VPS page, go to the Rebuild tab, choose the operating system and type your VPS name to confirm. Your IP address stays the same. For an older VPS without a VPS page, open a support ticket instead.

Will reinstalling the OS delete my data?

Yes. A reinstall erases the entire VPS disk, including websites, databases, email, settings and any backup stored on the server itself. Copy everything you need to storage outside the VPS first.

Which operating system should I choose?

One of the six we offer: Ubuntu 24.04, Ubuntu 22.04, Debian 12, Debian 13, AlmaLinux 9 or Rocky Linux 9. Choose AlmaLinux or Rocky Linux if your software expects the Red Hat family.

Why does SSH warn that the remote host identification has changed?

The reinstall created new host keys. Remove the old entry with ssh-keygen -R followed by the VPS IP address, then connect again.

Can I get cPanel installed during the reinstall?

No. cPanel is not offered on Domain India VPS plans, and a reinstall gives you a clean OS with no panel. You can install another panel yourself afterwards. For cPanel, use Domain India shared cPanel hosting.

Ready for a clean start? Take your backup, then use the Rebuild tab on your VPS page, or compare VPS plans if you are moving to a bigger server at the same time.

Reinstall your VPS OS

Back up first, then choose the operating system on the Rebuild tab of your VPS page.

Open your VPS

Ready when you are

Get VPS from ₹800/mo + GST

See plans

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app
Reinstall VPS OS: Back Up, Then Rebuild | Domain India