方式一:分步转换

安装zstd

github:GitHub - facebook/zstd: Zstandard - Fast real-time compression algorithm

tar zxvf zstd-1.5.6.tar.gz
cd zstd-1.5.6
make install

解压vma

zstd -d vzdump-qemu-190-2024_12_16-12_50_41.vma.zst

提取vma

vma extract vzdump-qemu-190-2024_12_16-12_50_41.vma vzdump-qemu-190-2024_12_16-12_50_41

安装qemu-kvm

yum -y install qemu-kvm

转换vmdk

cd vzdump-qemu-190-2024_12_16-12_50_41
qemu-img convert -f raw disk-drive-ide0.raw -O vmdk vm.vmdk

方式二:基于docker的一次性转换(注意磁盘空间)

github:GitHub - astroicers/zst2vmdk: Converts Zstandard compressed VMA files to VMDK format for virtual machine migrations.

docker pull astroicers/zst2vmdk:latest
docker run -v $(pwd):/data --rm astroicers/zst2vmdk ./your-file.vma.zst