Advertisement
Guest User

convert multiple qcow2 disks to VMDK

a guest
Aug 29th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2. # quick script to convert multiple proxmox qcow2 virtual disks to VMDK for migrating to VMware ESXi, etc...
  3.  
  4. for image in 113 116 118 123  # replace with your actual proxmox VM IDs to convert
  5. do
  6.     # be sure to update the paths to match your environment
  7.     qemu-img convert -p -f qcow2 -O vmdk /mnt/nfs/proxmox/images/$image/vm-"$image"-disk-1.qcow /mnt/nfs/proxmox/images/$image/vm-"$image"-disk-1.vmdk
  8. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement