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!