Skip to content

Home Lab

Notes from my learning sessions

Menu
Menu

Manual backup VM image in KVM

Posted on December 13, 2021December 13, 2021 by sandeep

Start virt-manager on the KVM host and note the name of the guest VM. (In my case I want to take a backup of the OpenStack VM)

The instance is running. It is recommended to shut down the instance before taking a backup.

In the KVM host create a backup folder as required and copy the VM image <VMName>.qcow2 in /var/lib/libvirt/images/ to the backup folder with the planned backup image name.

In case you would want to make use of the backup. Copy the backup file to /var/lib/libvirt/images/<newimagename>.qcow2. (Reason for using the new name, the old one already exists, do not want to overwrite).

From virt-manager choose to create a new VM, File->New Virtual Machine, and select import existing image

Click on the browse button and select the restored image qcow2 file.

Continue the bring up of VM, further steps, as explained here.

Recent Posts

  • Ceph + KVM: 4. Orchestrating Ceph RBD backed VMs on KVM Hosts
  • Rabbit MQ Cluster + HAProxy + Keepalived
  • Install and configure MariaDB / Galera cluster
  • Ceph + KVM : 3. Installing KVM, cutsomized monitoring scripts
  • Ceph + KVM : 5. Service checks and CLI commands
  • Ceph + KVM : 2. Installation – Ceph Storage
  • Ceph + KVM : 1. Planning and preparing for Ceph Storage
  • Openstack Xena on Ubuntu 20.04 – Cinder
  • Preparing custom Debian 11 MATE image
  • Setup Ubuntu 20.04 repository mirror server

Archives

  • April 2025
  • March 2025
  • October 2024
  • September 2024
  • April 2022
  • March 2022
  • February 2022
  • December 2021
  • October 2021
  • September 2021
  • October 2020
  • February 2020
  • January 2020
  • December 2019
© 2025 Home Lab | Powered by Minimalist Blog WordPress Theme