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

  • Openstack Xena on Ubuntu 20.04 – Cinder
  • Preparing custom Debian 11 MATE image
  • Setup Ubuntu 20.04 repository mirror server
  • Preparing custom Debian 11 server cloud image
  • Complile Linux Kernel (on Debian 11)
  • Openstack Xena – Test Home Lab
  • Openstack Xena on Ubuntu 20.04 – Horizon
  • Openstack Xena on Ubuntu 20.04 -Home Lab
  • Openstack Xena on Ubuntu 20.04 – Neutron
  • Openstack Xena on Ubuntu 20.04 – Nova

Archives

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