How to use rescue mode on a VPS
Find out how to activate the OVHcloud rescue mode to troubleshoot your VPS and run system checks
Objective
Rescue mode is a tool provided by OVHcloud to boot your VPS into a temporary operating system. You can then access your system in order to run diagnostic tasks and resolve various issues, for example:
- Resetting your user password to regain access
- Diagnosing network problems
- Repairing a broken operating system
- Fixing a misconfigured software firewall
- Testing disk performance
If you are facing a problem with your system, performing checks in rescue mode helps to determine whether it is related to software installed on the VPS or caused by a more profound issue. Before contacting our support teams, gather test results and exclude software errors using rescue mode.
If you have any services still online, rescue mode will interrupt them as the server is being rebooted into the auxiliary rescue environment.
This guide explains how to boot a VPS into rescue mode in your OVHcloud Control Panel and how to use it to access your file system.
Requirements
- A Virtual Private Server in your OVHcloud account
OVHcloud Control Panel Access
- Direct link:
- Navigation path:
Bare Metal Cloud>Virtual private servers> Select your VPS
Information regarding OVHcloud service administration and how to find appropriate assistance
When using OVHcloud guides, please be aware of the following conditions:
- User instructions aim to provide as many details as possible but cannot cover individual use cases. You might need to adapt the pertinent actions to your requirements.
- The OVHcloud ecosystem is built for flexibility and freedom of choice. Customers are therefore responsible for the secure and proper configuration of their services. To prevent data loss, we strongly recommend to apply backup strategies to all your important data.
- Our guides and tutorials may reference third-party software or services in combination with OVHcloud solutions. The technical support provided by OVHcloud does not include the configuration of systems or products outside of our responsibility. This includes but is not limited to:
- Operating systems and user interfaces (Windows, Debian, Plesk, etc.).
- Any other third-party software (FTP clients, email software, etc.).
- Services offered by other providers (DNS, APIs, user interfaces, etc.).
To receive the appropriate assistance for any issues you might experience, follow these guidelines:
- You seek personalized advice or you would like to discuss a topic that is not covered in detail by our documentation?
Join the OVHcloud Community to search for your topic and reach out to other users. - You need to report an incident regarding your OVHcloud service or you are experiencing difficulties in the OVHcloud Control Panel?
Create a support request in our Help Centre. - You require professional assistance for your project or you need help with tasks outside our support scope?
Visit our partner portal to search for experts who are familiar with OVHcloud solutions. - You are looking for more detailed information regarding our support levels and Professional Services?
Please visit our web pages for OVHcloud support levels and OVHcloud Professional Services.
You can participate in improving our documentation:
- You would like to share feedback to improve a guide page or you want to report insufficient information on a specific page?
Use the "Was this page helpful?" buttons at the bottom of the page to let us know. - You would like to propose a specific documentation update?
Use the "Edit this page" function, available at the bottom of the page and in the sidebar.
Instructions
Activating rescue mode
On the Home tab, click on ... next to "Boot" in the section Your VPS.
Select Reboot in rescue mode from the menu and click Confirm in the popup window.
Using rescue mode
After initiating the reboot, a progress bar will indicate the duration of the task. Note that this can take several minutes.
You will receive an automated email with the SSH credentials for rescue mode access. Please wait for the email to arrive before taking any further action. This email can also be viewed in your : Click on the name associated with your NIC handle (Customer ID) in the menu bar in the top right-hand corner, then select Service emails.
Please note that if you are no longer the technical contact of the server, you will not receive the email. For more information, refer to our guide on Managing contacts for your services.
You will then need to access your server via SSH, using the temporary password generated for the rescue mode.
Example:
Your SSH client will normally block the connection at first due to a mismatch of the ECDSA fingerprint. This is because the rescue mode uses its own temporary SSH server. To resolve this, you need to edit the file known_hosts of your local .ssh folder.
You have two options:
-
Delete the fingerprint from the file. Your SSH client will then add a new fingerprint entry for the server when you are no longer using rescue mode. For a detailed explanation, refer to the section "Login and fingerprint" in our SSH introduction guide.
-
Temporarily disable the fingerprint. Open the file
known_hostswith a text editor and identify the fingerprint string of your server by its IP address. Add the character#at the start of the line. As a result, this line is now a "comment" and will be ignored by applications reading the file. Remember to revert this change before rebooting the VPS.
For most changes you make to your server via SSH while in rescue mode, you will need to mount the system partition.
Once you are connected, verify the attached disks with this command:
The result will look similar to the following example output:
In rescue mode, sda is the rescue mode disk and sda1 is the primary rescue partition mounted on /.
In this example, the primary disk of the VPS is sdb and the system partition is sdb1 (indicated by the size).
Mount this partition with the following command:
Your files are now accessible from the mount point /mnt:
You should then see your file system displayed:
Before you can write to this partition, you need to open it for write access with the following command:
You can now apply changes to your system, for example reset user passwords and SSH keys.
Once you have completed your actions in rescue mode, reboot the VPS again in the regular mode from the OVHcloud Control Panel.
Troubleshooting boot issues
If you encounter errors when rebooting a VPS, use the following procedure:
- Check the KVM in the OVHcloud Control Panel for relevant information as to why the VPS is unable to start. Consult our KVM guide for help with this feature.
- If the KVM shows that the VPS is stuck in boot or unable to find the disk, ensure you have boot logs enabled. Relay the pertinent logs to our support teams for further investigations by creating a support request.
Go further
Recovering server access if your user password is lost
How to replace an SSH key pair
Checking the file system on a VPS
Join our community of users.