How to copy / clone a VM on a physical disk ?

harryMacdouglas

New Member
May 3, 2022
2
0
1
Hello,

I have a Virtual Machine on a distant server that I want to clone with the exact amount of data into a physical disk.

I tried to dd the command to copy the virtual image and tried to transfert ip to another distant machine through a ssh connection.

Bash:
dd if=/dev/sda | gzip -1 - | ssh user@IP.ADD.RE.SS dd of=/path/save/location/image.gz

after i just installed it into the disk with command dd and then when i tried to boot on it,
the system crashed with the grub program.

Is there a way to manage it ?
 
You could backup it to a PBS and restore it to the other server
 
Thank you for your answer.
Well actualy, I found another way to do it.
I found that I could clone the VM in rawdisk format which is compatible with the command dd :)
Thanks!
 

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!