Overview
Rescue mode boots an instance from a clean rescue image, attaching the original root disk as a secondary block device. This provides access to a functional environment from which you can repair the original OS — reset credentials, fix a corrupted filesystem, restore a misconfigured/etc/fstab, or retrieve critical files.
Prerequisites
- An instance that is failing to boot or is inaccessible
- A rescue image available in the Xloud Image Service (or use the platform default)
memberoradminrole in the project- CLI users: Xloud CLI configured and credentials sourced
When to Use Rescue Mode
Lost SSH access or misconfigured SSH daemon
Lost SSH access or misconfigured SSH daemon
If SSH keys were accidentally removed, the SSH daemon is misconfigured, or
sshd
fails to start, rescue mode provides an alternate path in. Mount the original disk
inside rescue, restore ~/.ssh/authorized_keys or fix /etc/ssh/sshd_config, then
exit rescue to resume normal operation.OS fails to boot (kernel panic or filesystem error)
OS fails to boot (kernel panic or filesystem error)
Boot failures caused by a corrupted filesystem, a bad kernel, or a misconfigured
bootloader can be diagnosed and repaired from the rescue environment. Run
fsck,
restore a previous kernel entry, or reinstall the bootloader.Misconfigured /etc/fstab preventing boot
Misconfigured /etc/fstab preventing boot
An incorrect entry in
/etc/fstab (wrong UUID, missing nofail flag on optional
mounts) will cause the OS to hang at boot. Mount the original disk in rescue mode,
correct the /etc/fstab entry, and exit rescue.Retrieving files from an inaccessible instance
Retrieving files from an inaccessible instance
If an instance is otherwise healthy but cannot be accessed (e.g., broken network
configuration), rescue mode lets you mount the original disk and copy critical files
out before rebuilding.
Enter Rescue Mode
- Dashboard
- CLI
Initiate rescue
Navigate to Project → Compute → Instances. In the instance row, open the
Actions dropdown and select Rescue Instance.
Select a rescue image (optional)
In the Rescue Instance dialog:
Click Rescue Instance.
| Field | Description |
|---|---|
| Rescue Image | Select a specific rescue image, or leave blank to use the platform default |
Connect to the rescue environment
Once the instance enters Rescue status, connect via SSH using the rescue
image’s default credentials or the injected key pair.The original root disk is attached as a secondary device (typically For a chroot environment to run tools against the original OS:
/dev/vdb).
Mount it to access the original filesystem:Mount the original root partition inside rescue
Chroot into the original OS
Perform recovery tasks
Common recovery operations inside the chroot:
Reset a user password
Fix fstab — edit with a text editor
Check and repair the filesystem
Important Behaviors
Ephemeral disks attached to the instance are not preserved during rescue mode.
Only the persistent root volume (or image-backed root disk on supported configurations)
is attached as the secondary device. Do not rely on ephemeral storage for data you
intend to access during rescue.
Next Steps
Reboot an Instance
Use a soft or hard reboot for non-critical issues before escalating to rescue mode
Launch an Instance
Create a new instance from a snapshot if the original cannot be repaired
Block Device Mapping
Understand how storage volumes are attached and managed during instance operations
Compute User Guide
Overview of all compute operations and instance lifecycle management