Migrating physical servers to Proxmox....

S

Shivaramakrishnan

Guest
Hi
I am new to Proxmox.I found this tool to be very efficient.
But found a problem now.
I did a image of a hard drive (Compressed format of bzip2) on to a ssh server under /var/lib/vz/2012-07-06-Bzipped2/ as per the instructions given at the proxmox website.
The images were created:
/var/lib/vz/2012-07-06-Bzipped2# ls -la
total 77753600
drwxr-xr-x 2 root root 4096 Jul 7 22:59 .
drwxr-xr-x 10 root root 4096 Jul 7 22:59 ..
-rw-r--r-- 1 root root 14239 Jul 7 22:59 Info-dmi.txt
-rw-r--r-- 1 root root 18194 Jul 7 22:59 Info-lshw.txt
-rw-r--r-- 1 root root 2059 Jul 7 22:59 Info-lspci.txt
-rw-r--r-- 1 root root 172 Jul 7 22:59 Info-packages.txt
-rw-r--r-- 1 root root 69 Jul 7 22:59 clonezilla-img
-rw-r--r-- 1 root root 4 Jul 7 22:59 disk
-rw-r--r-- 1 root root 30 Jul 7 22:59 parts
-rw-r--r-- 1 root root 37 Jul 6 13:42 sda-chs.sf
-rw-r--r-- 1 root root 31744 Jul 6 13:42 sda-hidden-data-after-mbr
-rw-r--r-- 1 root root 512 Jul 6 13:42 sda-mbr
-rw-r--r-- 1 root root 700 Jul 6 13:42 sda-pt.parted
-rw-r--r-- 1 root root 514 Jul 6 13:42 sda-pt.sf
-rw------- 1 root root 5854718674 Jul 6 15:51 sda1.dd-img.aa
-rw------- 1 root root 5049089866 Jul 6 17:56 sda5.dd-img.aa
'-rw------- 1 root root 612772799 Jul 6 18:11 sda6.dd-img.aa
-rw------- 1 root root 13081987566 Jul 6 23:28 sda7.dd-img.aa
-rw------- 1 root root 3021980466 Jul 7 00:43 sda8.dd-img.aa
-rw------- 1 root root 51921217468 Jul 7 22:59 sda9.dd-img.aa

Now when I try to restore the image using the clonezilla live by following these steps:
1.I booted the VM using the clonezilla live
2. device-image
3.ssh option - 10.16.49.170 (SSH server where I have the image of the hard drive stored)
4.Gave the path as /var/lib/vz/2012-07-06-Bzipped2
Also tried /var/lib/vz/2012-07-06-Bzipped2/

The problem what i am facing now is :
Mounting sshfs by: sshfs -o nonempty,noatime -p 22 "root"@10.16.49.170:"/var/lib/vz/2012-07-060Bzipped2/" /home/partimag
read: Connection reset by peer
Clonezilla image home directory /home/partimag is not a mounting point ! Failed to mount other device as /home/partimag!

I have the image size to be 50GB and memory to be 2GB.
Can anyone please help me out as I am trying this over 2 days now?
 
you created the image with clonezilla live cd?
 
Depending on the systems you are trying to migrate to proxmox ie Windows or linux depends on the steps you are going to take.

I have migrated the windows systems using these steps. And i haven't had a issue yet.

1 download and run the
mergeide.reg
2 download and install
vmware vCenter converter standalone once completed follow the following steps and your system will boot in proxmox
3 Select source type: powered-on machine, Specify the powered-on machine.
Next section select destination type: Vmware Virtual machine/workstation, this is just to convert the file so proxmox can read it. The Vmware type I have used Vmware workstation 8.0x and vmware player 4.0.x as the product type i haven't tried the others as both of these have worked for me, then name your system and select the destination
Next section Data to copy you want advance property's select type/cluster for you system disk as well as you main disk select pre-allocate, all else default.
Then in Devices go to other then select ide for your disk controller the memory and cpus really don't matter as proxmox will change what the systems sees depending on what you have your vms set in your proxmox interface. All other options you can leave default. Wait for your system to finish converting then move the image to proxmox then convert the image to raw or qcow2 if you want or you can leave it vmdk. Add the disk to you proxmox conf and boot the system. once you login remember to remove your ghost hardware by following these steps.

To work around this behavior and display devices when you click Show hidden devices:
Click Start, point to All Programs, point to Accessories, and then click Command Prompt.
At a command prompt, type the following command , and then press ENTER:
set devmgr_show_nonpresent_devices=1
Type the following command a command prompt, and then press ENTER:
start devmgmt.msc
Troubleshoot the devices and drivers in Device Manager.

NOTE: Click Show hidden devices on the View menu in Device Manager before you can see devices that are not connected to the computer.
When you finish troubleshooting, close Device Manager.
Type exit at the command prompt.

Note that when you close the command prompt window, Window clears the devmgr_show_nonpresent_devices=1 variable that you set in step 2 and prevents ghosted devices from being displayed when you click Show hidden devices.


Your system is converted run updates and you should be good to go.

With linux all i did is boot the system you want to convert in a live environment and DD the drive to a raw image and I used that to boot works for me for most linux os Freebsd gave me some issues i believe its a bug i just haven't had the time to find out in details if someone else succeed please let me know.
 
Last edited:
I was able to fix that.I copied them to the root folder and then renamed to standard format that clonezilla uses.But my question is how much disk space should be allotted to the VM?The hard disk that I cloned is 250G and the image size after bzipped is aroung 79G.
Is it any way that I could restore the image using the bzipped size in VM? Obviously I dont want the VM size to be as that of the original disk.


/var/lib/vz/2012-07-06-Bzipped2# ls -la
total 77753600
drwxr-xr-x 2 root root 4096 Jul 7 22:59 .
drwxr-xr-x 10 root root 4096 Jul 7 22:59 ..
-rw-r--r-- 1 root root 14239 Jul 7 22:59 Info-dmi.txt
-rw-r--r-- 1 root root 18194 Jul 7 22:59 Info-lshw.txt
-rw-r--r-- 1 root root 2059 Jul 7 22:59 Info-lspci.txt
-rw-r--r-- 1 root root 172 Jul 7 22:59 Info-packages.txt
-rw-r--r-- 1 root root 69 Jul 7 22:59 clonezilla-img
-rw-r--r-- 1 root root 4 Jul 7 22:59 disk
-rw-r--r-- 1 root root 30 Jul 7 22:59 parts
-rw-r--r-- 1 root root 37 Jul 6 13:42 sda-chs.sf
-rw-r--r-- 1 root root 31744 Jul 6 13:42 sda-hidden-data-after-mbr
-rw-r--r-- 1 root root 512 Jul 6 13:42 sda-mbr
-rw-r--r-- 1 root root 700 Jul 6 13:42 sda-pt.parted
-rw-r--r-- 1 root root 514 Jul 6 13:42 sda-pt.sf
-rw------- 1 root root 5854718674 Jul 6 15:51 sda1.dd-img.aa
-rw------- 1 root root 5049089866 Jul 6 17:56 sda5.dd-img.aa
'-rw------- 1 root root 612772799 Jul 6 18:11 sda6.dd-img.aa
-rw------- 1 root root 13081987566 Jul 6 23:28 sda7.dd-img.aa
-rw------- 1 root root 3021980466 Jul 7 00:43 sda8.dd-img.aa
-rw------- 1 root root 51921217468 Jul 7 22:59 sda9.dd-img.aa
 

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!