From 764d42b657ed766a4858936dd3832ae6fceee446 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Sun, 20 Apr 2025 23:48:43 -0600 Subject: [PATCH] Update Workflows/Veeam Backup & Replication/Migrating VMs to ProxmoxVE.md --- .../Migrating VMs to ProxmoxVE.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Workflows/Veeam Backup & Replication/Migrating VMs to ProxmoxVE.md b/Workflows/Veeam Backup & Replication/Migrating VMs to ProxmoxVE.md index 354aea4..8df7ae4 100644 --- a/Workflows/Veeam Backup & Replication/Migrating VMs to ProxmoxVE.md +++ b/Workflows/Veeam Backup & Replication/Migrating VMs to ProxmoxVE.md @@ -39,4 +39,16 @@ nmcli connection up ens18 ``` !!! success "VM Successfully Fixed" - At this point, the virtual machine should be booting, and have network access, bringing it back into production use. \ No newline at end of file + At this point, the virtual machine should be booting, and have network access, bringing it back into production use. + +### Convert VM Disk from `.RAW` to `.QCOW2` +Given that the migration process via Veeam Backup & Replication ignores the destination disk format (at the time of writing this), it is necessary to convert the format of the disk from `.raw` to `.qcow2` so that you can perform things like VM snapshots, which are essential during updates, development, and testing. + +Open a shell onto the ProxmoxVE server that is currently holding the VM that you need to convert the disks for, then locate the disks (this is not explained here, yet), and run the following commands to convert them. +```sh +# Convert a Single Disk +qemu-img convert -f raw -O qcow2 source.raw destination.qcow2 + +# Convert All Disks in a Given Directory +find . -type f -name "*.raw" -exec sh -c 'qemu-img convert -f raw -O qcow2 "$1" "${1%.raw}.qcow2"' _ {} \; +``` \ No newline at end of file