How to use the Rescue Mode in Virtfusion
Introduction
Rescue mode, or LiveOS is a Linux environment equipped with tools to support accessing your data. You will have access to all your disks and will be able to resolve the issue or back up data before performing a reinstallation.
In this article, we will show you how to use the Rescue Mode to take the backup of the data in the Virtfusion Control Panel.
Prerequisites:
- an active KVM VPS
- access to the Virtfusion VPS control panel
1. Boot into rescue mode
- Upon logging into Virtfusion, choose the virtual machine that needs booted into rescue mode -> click on “manage”
- After selecting the virtual machine, click Media in the control panel. Under CD/DVD-ROM select SystemRescue 10. Then click Insert. In the Boot Order section, select CD/DVD, and click Apply.
- Next, restart your VPS in the control panel. Then go to the Options section and click Enable VNC Access
- Then click on Browser VNC and leave it as default. After connecting to VPS via VNC, you can change the VPS password.
Next, configure the network so that VPS can access ssh. You can run the following cmd:
ip addr add <your_ip_address>/<subnet_mask> dev ens3 ip route add default via <gateway_ip>
systemctl stop iptables
2. SSH to your virtual machine using the above information
You can access your VPS using a free simple SSH client program called Putty or BitviseSSH located at:
https://www.bitvise.com/ssh-client-download
List your partitions to retrieve the name of the partition you need to mount.
fdisk -l
You can mount partitions you want to mount using the mount
command in SSH:
mount /dev/vda1 /mnt/
Your partition will now be mounted.
3. Backup your data
- You can use SFTP protocol via BitviseSSH to take the backup of your data
- Once opened, you can create a folder on your PC
- On the right-hand side locate /mnt
- Now drag and drop the data that you need to the left
- Wait until it finishes.
4. Exit rescue mode
Once you are done with the backup, you can now disable rescue mode. Upon disabling rescue mode, the virtual machine will be rebooted into your primary operation system.
5. Reinstall your VPS
You can reinstall your VPS by clicking on “reinstall” in the Virtfusion control panel
That’s all! Enjoy GreenCloudVPS services!