How to add qcow2 disk in proxmox

amey

New Member
Feb 24, 2021
19
5
1
India
Hello,

I am a new to proxmox.

I am migrating my work load from OpenStack to proxmox.
And with that regard, I need to move disks which are in qcow2 format.
I am using proxmox 6.3-2 version

Any ideas how can I do this? Thanks.

Regards,
Amey.
 
Configuration of the disks in my proxmox server =


Code:
root@prod-proxmox-svr1:~# pvesm status
Name             Type     Status           Total            Used       Available
local             dir     active       524032000        38348700       485683300
local-lvm     lvmthin     active      5040631808        34276296      5006355511

I want to make sure that the qcow2 disks goes in to lvmthin partition.
 
cat /etc/pve/storage.cfg =

Code:
dir: local
        path /var/lib/vz
        content iso,vztmpl,backup


lvmthin: local-lvm
        thinpool data
        vgname pve
        content rootdir,images
 
you can use 'qm importdisk' (see 'man qm' for details) this renames/converts(if necessary) the disk to the correct naming scheme and format
 
you can use 'qm importdisk' (see 'man qm' for details) this renames/converts(if necessary) the disk to the correct naming scheme and format
Thanks.
Following commands helped =

1) tmp# qemu-img convert gitlab-server.qcow2 -O raw gitlab-server.raw
2) tmp# dd if=gitlab-server.raw dd of=/dev/pve/vm-101-disk-0

I was not sure about how to import the disk in 'local-lvm' volume.

I tried to use following flags in step number 2 = pv -s 100G
But the process did not work.