P2V to LVM via vmdk

KatyComputer

Well-Known Member
Sep 26, 2019
194
16
58
62
St Louis
katycomputer.com
I am following https://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE and have run into an issue. How do I convert VMDK to a qcow2 stored on my LVM?

Or is there a better solution?
df -h reports no useful free space, conversely, I have plenty of free space on the LVM as expressed by lvdisplay pve::
--- Logical volume ---
LV Name data
VG Name pve
LV UUID XusKWn-3IXr-4qPo-b9Pw-lVLT-qZxl-J2hTnZ
LV Write Access read/write (activated read only)
LV Creation host, time proxmox, 2020-09-24 13:59:11 -0500
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status available
# open 0
LV Size <4.22 TiB
Allocated pool data 23.84%
Allocated metadata 2.96%
Current LE 1105557
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 6144
Block device 253:5
 
Hi,

if you want to import the disk to an already existing VM into the LVM storage you can just call:

Code:
qm importdisk <vmid> <source - vmdk file> <proxmox storage name> --format vmdk