Get VM image in LVM storage

Quốc Hưởng

New Member
Mar 2, 2018
16
1
1
33
Hi,

I installed the VM in Local-LVM. Now how can i get the VM image from this local-lvm ( like the qcow2 image ).?

Thanks for your help
 
There is the "pvesm" command. I have a VM with ID 801, and I can see the raw file is vm-801-disk-1.raw

pvesm path local:801/vm-801-disk-1.raw

returns: /var/lib/vz/images/801/vm-801-disk-1.raw

You can read more about in the help files accessed from the storage display in Proxmox. Of course, raw is not like qcow2 and has limitations.
 
  • Like
Reactions: Quốc Hưởng
Seem good.
Can i get the output like "vmdk", not a "raw" ? Does it work ?

dd if=/dev/pve/vm-103-disk-1 of=103.vmdk

Tks for ur help
 
You do get a raw file from dd (it is just a complete dump of the disk image) - this you can convert to a vmdk using
qemu-img convert ('qemu-img convert -f raw -O vmdk <raw-image> <vmdk-image>')
 
  • Like
Reactions: Quốc Hưởng
What did you try to do that didn't succeed? import the image converted with qemu-img convert? import a raw image?
What's the error you're getting from Vmware?
 

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!