flat vmdk file restore in proxmox

Mn1sh

New Member
Mar 6, 2016
20
0
1
42
what is the procedure to restore or importat a vmdk image into a proxmox KVM container?


Seems it is a flat vmdk file:


root@srv1:/var/# file clone-serverNAME-flat.vmdk

clone-serverNAME-flat.vmdk: DOS/MBR boot sector; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x8176, GRUB version 0.94
root@srv1:/var/#



----->

1) I have created a KVM container ( selecting do not use any media for CD/DVD) and i have noted the Virtual Machine ID

2) I have access to /etc/pve/nodes/srv1/qemu-server/VMID.conf file

3) Seems to me i have to convert the above vmdk file to qcow2 format:

qemu-img convert myVMwFlatImage-pve.vmdk -O qcow2 myVMwFlatImage-pve.qcow2

4) Where do I put this file myVMwFlatImage-pve.qcow2? Folder path /location

5) How do I link myVMwFlatImage-pve.qcow2 to /etc/pve/nodes/srv1/qemu-server/VMID.conf ?

6)
/etc/pve/local/qemu-server/VMIDconf file shows this:
bootdisk: ide0
cores: 3
ide0: MainStoragePool:vm-VMID-disk-1,size=230G
ide2: none,media=cdrom
memory: 4096
name: NameVM
net0: e1000=64:34:33:30:36:61,bridge=vmbr0
ostype: l26
smbios1: uuid=a6-b71caass-3c91-bed5-asdqqdq34
sockets: 1
 
I could load the qcow2 image converted from vdmk , when I used storage as local .. as that created the folder /var/lib/vz/images/VMID/ and i could replace or put converted qcow2 image inside that folder and adjust the image name in file /etc/pve/local/qemu-server/VMID.conf


My Question is: Is it possible to load this qcow2 image from Ceph storagePool , instead of local disk ? If so how