Error creating vm from KVM snapshot

kaptenjeffry

New Member
May 9, 2023
2
0
1
I want to clone a vm from KVM to proxmox. So I did a snapshot of the lv from the VM's KVM. Then I imported the snapshot as a disk form my vm at proxmox

Code:
qm importdisk <my vm number> <kvm snapshot> local_zfs


I attach the disk to the vm and set to be the first to boot and I'm getting the following error

Code:
Buffer I/O error on dev dm-2, logical block 11353072,async page read
see attachment.

I'm tested with all Bus ( IDE,SATA, virtio and SCSI) and getting the same error or blank screen at console.

Screenshot 2023-05-09 at 10.15.39 AM.png
 
Hi,
I want to clone a vm from KVM to proxmox. So I did a snapshot of the lv from the VM's KVM. Then I imported the snapshot as a disk form my vm at proxmox

Code:
qm importdisk <my vm number> <kvm snapshot> local_zfs
why not use the integrated clone functionality in Proxmox VE (i.e. qm clone or in the UI)? That also works for running VMs. Was the VM properly shut down at the time you made the LV snapshot, otherwise the disk/filesystem might not have been in a consistent state.
 
Hi,

why not use the integrated clone functionality in Proxmox VE (i.e. qm clone or in the UI)? That also works for running VMs. Was the VM properly shut down at the time you made the LV snapshot, otherwise the disk/filesystem might not have been in a consistent state.
Hi Fiona,
Thanks for the reply. The KVM is in different server so I can't use the qm clone.

I didn't shutdown the vm when I did the snapshot. I thought the idea of lv snapshot is to enable us to copy lv without bringing down the VM.
 
You could try to either:
  • Move the disk to a shared storage. In that case, qm clone also works across nodes using the --target option).
  • Clone the VM locally and migrate the clone afterwards to the desired node.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!