Migrate VM OS to physical device

stewart

Member
Aug 1, 2022
30
1
8
Due to breaking my GPU passthrough and not finding a solution (and to make my life 100x simpler in future) I've decided to move my desktop environment from being a Proxmox VM to a new desktop machine that will just have Windows installed.

I'm looking for advice on the most efficient way to migrate my OS (vm-100-disk-2, format raw) from my local-lvm to physical media (an M.2 SSD)? In the past, between two physical disks I'd have used something like clonezilla.

PVE 8.0.4
 
As you said - Clonezilla is an option for this job. Mount the ISO within the VM, boot from it and choose the „server mode“ on the VM side. Boot your bare metal system from an USB stick with Clonezilla and let this run in „client mode“. Both systems must have network access. Either by optaining an IP from a DHCP or static IPs assigned. After a successful cloning let your bare metal system boot from Windows. It will redetect the new hardware on 1st boot - if not any special mass storage drivers are needed.
 
  • Like
Reactions: stewart
I'd use plain dd to to do this. Make sure this is the only disk you require of the VM, (no other EFI disk etc.). I notice the name convention "vm-100-disk-2" suggesting other disks.

Also note you need a physical disk at least as large as the file size. If bigger, you can enlarge the partitions later, to use all the space etc.
 
  • Like
Reactions: stewart
Use Veeam free agent to do a bare-metal backup in the VM to Samba shared drive.

Boot Veeam restore ISO on target machine and restore over the network.

Veeam does driver injection so it should boot, but you will probably have to reactivate Windows.
 
  • Like
Reactions: stewart
Thanks all for your suggestions. I might give Clonezilla a chance first, as I've used it before, but I'll keep the other suggestions in my back pocket in case.