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.
- 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.

Step 2. Thao tác tab → Cài đặt lại hệ điều hành card
On the right side of the Thao tác tab is the Cài đặt lại hệ điều hành (Reinstall OS) card, listing what to know before continuing. Click Cài đặt lại.

Step 3. Confirm
Read the warning carefully, type the random confirmation code shown into Mã xác nhận, then click Cài đặt lại. The system starts reinstalling the OS.

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
| Scenario | Recommended action |
|---|---|
| Roll back to a known-good state | Restore from Snapshot |
| OS still runs, but is misconfigured | Fix it via Portal Console |
| Switch OS entirely | Create a new VM and migrate data |
| Forgotten password | Change password |