convert VM to raw image/disk/bare metal

trillian

New Member
May 25, 2017
2
0
1
39
Hello!

I want to move a proxmox VM (Windows 10) to bare metal. So, how do I get the "raw" image, or can I write it directly to an attached disk?

The harddisk of the VM is a ZFS dataset: rpool/data/vm-100-disk1

Thanks for help!
Trillian
 
If your using raw the vm disk data can be copied directly to a drive.

You could boot a linux live cd on the bare metal then use dd and netcat to clone the vm disk to the bare metal. Be sure to stop the vm first.

The only tricky part, because of Windows, is making sure the driver for your disks on the bare metal have been added to the vm before you clone it. Google should help you figure that out.
 
Hi e100, thanks for reply.

"If your using raw" -> but I use ZFS.
My approach was, to add a second disk to the vm and then copy the first disc with clonezilla to an image on the 2nd disc.

But I would like to convert the VM to an raw image file with (for example)
qemu-img convert -f qcow2 kvm_source.img -O raw kvm_destination.img

But the disk is in local-zfs , I dont know how to access it. It seems to be a ZFS dataset.

Greets
trillian
 

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!