Instance Recovery Using Rescue Image¶
Upload Rescue Image¶
Upload the SystemRescue .iso image (example uses systemrescue-13.00
you can download any other version on its website.):
openstack image create --disk-format iso \ --container-format bare \ --property hw_rescue_device=disk \ --property hw_rescue_bus=virtio \ --file systemrescue-13.00-amd64.iso \ --public rescuecd13Note
For volume-backed instances, additional image properties are required:
hw_rescue_device=diskensures the rescue image is attached as a disk instead of a CD-ROM during rescue mode
hw_rescue_bus=virtioensures the rescue disk uses the VirtIO bus, which is required for proper device detection in many environmentsThis allows proper access to the instance root volume for recovery
Enter Rescue Mode¶
Put the instance into rescue mode:
openstack server rescue --image rescuecd13 <server_id>Note
This action can also be performed via the Horizon dashboard.
After the command completes, the instance will boot into the rescue environment, allowing recovery actions to be performed.
Exit Rescue Mode¶
Return the instance to normal operation:
openstack server unrescue <server_id>