Skip to main content
Last updated on

Rebuild from base image

Rebuild reinstalls the operating system from the base image and brings the VM back to its just-created state. Use it when the OS is broken beyond conventional recovery (boot loop, corrupted filesystem) or when you want a clean slate while keeping the IP, network configuration and Security Groups.

Irreversible
  • All data on the system disk is permanently deleted.
  • Password / SSH Key revert to the image defaults.
  • Preserved: VM name, internal IP, Network Interfaces, Security Groups, Floating IP attached to the VM.
  • Lost: data on the system disk, password / SSH Key changed after creation, installed packages.

Take a snapshot or copy important data elsewhere (attached volume, object storage) before rebuilding.

When to use Rebuild

  • OS won't boot, boot loop, corrupted filesystem.
  • You want to wipe and reinstall while keeping the current network config.
  • The VM is suspected to be malware-infected — start clean.

If you only need to change the password, use Change password. If you want to delete the VM entirely, use Delete VM.

Steps

Step 1. Open the VM detail page

Go to Cloud Server → Servers and click the VM.

Open the VM detail page

Step 2. Thao tác tab → Khôi phục về ban đầu

Thao tác tab with the Khôi phục về ban đầu section

Step 3. Confirm

Read the warning carefully, type the confirmation string, and click Confirm. The system starts reinstalling the OS.

Rebuild VM confirmation dialog

When the VM returns to Active:

  • Use the password / SSH Key from creation time (any later changes are gone).
  • Reinstall the packages, services and data you need.

Alternatives

ScenarioRecommended action
Roll back to a known-good stateRestore from Snapshot
OS still runs, but is misconfiguredFix it via Portal Console
Switch OS entirelyCreate a new VM and migrate data
Forgotten passwordChange password