# Use Veeam Rescue Media for Recovery

Veeam Rescue Media for Linux provides a powerful lifeline, allowing you to boot a failed machine into a recovery environment and restore your system from a backup. This tutorial will walk you through the steps to boot your system using Veeam Rescue Media from an ISO image so you can recover quickly and minimize downtime. 

## Prerequisites
As prerequisites, you'll have to:
* Access to Exoscale environment
* [Exoscale command-line interface](https://community.exoscale.com/reference/cli/exo/)
* [Exoscale SOS Bucket](https://community.exoscale.com/product/storage/object-storage/)
* [Veeam Recovery Media](https://repository.veeam.com/backup/linux/agent/veeam-recovery-media/)


## Step 1: Boot into Rescue Mode
Use the following command with the Exoscale CLI to boot the instance in rescue mode using the netboot profile:

```bash
exo compute instance start "<instance name>" --rescue-profile=netboot -z "<zone>"
```

Replace:
- `<instance name>` with your actual instance name.
- `<zone>` with the zone your instance is located in (`ch-gva-2`, `de-muc-1`, `at-vie-2`,...).


## Step 2: Access iPXE Shell

Open the instance's console via the Exoscale Portal.
Wait for the netboot menu to appear.
    Choose the option to open the iPXE shell.


## Step 3: Boot Recovery Media

At the `iPXE>` prompt, run the following command to boot with the Veeam recovery media stored in your bucket.

```
sanboot http://<your_bucket_url>/<veeam_recovery.iso>
```

> [!NOTE]
> Replace `<your_bucket_url>` with the public HTTP(S) link to your ISO.   
> For example: `sanboot http://my-bucket.sos-at-vie-1.exo.io/veeam_recovery.iso`


## Step 4: Modify Boot Parameters
When the Veeam Recovery screen appears:

- Press `Tab` on the keyboard when the boot menu is visible.
- Modify the boot parameters line by adding the following:

```
httpfs=http://<your_bucket_url>/<veeam_recovery.iso> ip=dhcp
``` 
This instructs the Veeam image to mount and run directly over HTTP.


## Step 5: Start Recovery Console
After setting the correct boot parameters, press `Enter` to boot.
The Veeam Recovery Console will start.
You can now proceed with your restore or recovery tasks.


> [!NOTE]
> This process requires Veeam Recovery Media v6.x or later.   
> For details and troubleshooting, refer to the official KB:
> [Veeam KB4587 – Recovery Media in Cloud](https://www.veeam.com/kb4587)
