[SOLVED] Clonezilla Remote --> Local issues

lastb0isct

Renowned Member
Dec 29, 2015
61
6
73
39
Hi All,

I have a physical machine that i want to clone to a virtual machine. I have followed the migration wiki about 10 times and have not gotten any different results than this issue. I'm hoping that someone can help.

So, what i'm doing is booting the physical machine to the clonezilla live CD and i have it at the screen where it says "waiting for the target machine to connect".

The target machine i have used the clonezilla .iso to create a VM under a large disk that is about 100GB larger than the physical machine. I enter through and get to the Shell Prompt and enter "sudo su -" and "fdisk /dev/sda" which results in this output:

hu4dGNo.png


I use dhcp and get an IP. Then i run this command: ocs-onthefly -s x.x.x.x -t sda and get the following output:

3sShBQG.png

ZTHRK0u.png


Does anyone have experience with this? I'd love to figure this out and get clonezilla working!
 
I know the problem. What HDD Bus do you use in the VM? Virtio? Then the right command is

ocs-onthefly -s x.x.x.x -t vda

or the right device like vdb, vdc ...
 
Thanks for the response fireon. My HDD Bus is set to ide0. I am able to confirm that there is a sda partition/disk on my machine and have even attempted to create a partition on it, sda1, with no luck.

Any other ideas?
 
Strange... what you see when you watch this commands on your machines:

source: fdisk -l

target: fdisk -l

I have done so many migragtion in this way. Should be no problem with.

I see you have an message: "Connection refused" Can you reach every machine from the other?
 
Well, i just blew out the clonezilla VM and was able to get it to go further this time, but i did get an issue with it actually pushing content over. Doing Disk --> Disk I get this error for both sda2 and sda3:

aqABIoS.png


This is on the destination VM. Should i be selecting partitions to copy over, not the whole disk?

The first partition looks to copy over just fine, but the remaining two do not. This is a Ubuntu Source Physical Machine.
 
Last edited:
I always cloned the wole disk, never the partitions. But you say you have an linux as source machine. It is also possible to add the targetpartitions manually with cfdisk, gparted or parted. Format that and copy your source machine with rsync, then write grub and boot the new vm. I have also this done very often.
 
Guides? Not really... This are linux default admin tools. Ok, short instruction:

1. Boot both host with an liveimage like clonezilla....
2. Configure your new VM with cfdisk or when you like better "gparted", with gparted you can also format all partions easy. Don't forget to set the bootflag.
3. Mount your fresh partitions in VM with your liveimage. Set an SSH Rootpassword.
4. Mount all partitons on your sourcemachine right, then copy all contend from sourcemachine to the targetmachine. For example on the sourcemachine: "rsync -aPvze ssh /* targetmachine.local:/."
5. Motify your fstab, and write GRUB on your bootpartion (for this you must make an Chroot) . When you have only one partition then it is normaly /dev/vda (virtio) or /dev/sda (virtio/scsi). "grub-install /dev/vda"
6. Boot into the new VM :)

BTW: German Language or English? For Instruction Links.
 

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!