Convert vmdk image to qcow on ZFS

yena

Renowned Member
Nov 18, 2011
373
4
83
What is the correct procedure to convert a vmdk image to a qemu KVM ZFS image ?
( i need ZFS Replication .. )

If i create a vm-1001-disk-1 and than:

dd if=win2012-pve.vmdk of=/rpool/data/vm-1001-disk-1

Thanks!
 
Hi,

this do not work.

use
"qemu-img -f vmdk -O raw <path>/win2012-pve.vmdk /dev/zvol/rpool/data/vm-10001-disk-1"
 
  • Like
Reactions: BrandonN and yena
This didn't work for me, it seem to obviously miss the convert command. Then it worked.

"qemu-img convert -f vmdk -O raw <path>/win2012-pve.vmdk /dev/zvol/rpool/data/vm-10001-disk-1"
 
@cloudtinker

Does the zvol already exist?
If not you have to create it first. qemu-img can not create zvols.
 

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!