2

I have a HP Proliant DL380 CentOS 5.10 server that I'd like to clone to a VMWare VM. I have successfully cloned it to identical hardware using Clonezilla, however when I try to restore it to a VM it appears to clone successfully, but on boot I get an error message:

enter image description here

I can't find much information on how to perform a clone like this and I think I might be missing something. The maximum ram I can safely set is 4GB (the server has 12) and maximum cpus is 4 (server has 8).

3

A problem that I often encountered when cloning from a physical to a virtual machine is that the initrd is often not appropriate anymore.

You should boot your VM on another OS, using a livecd or whatever, then :

  • mount your centos root partition to /mnt, and other partitions to appropriate subdirectory
  • bind mount /dev, /sys and /proc to /mnt/dev, /mnt/sys and /mnt/proc
  • chroot into /mnt
  • verify that there is nothing innapropriate in your /etc/modprobe.conf and modprobe.d and that necessary modules are present
  • then regenerate your initrd with mkinitrd :

mkinitrd -f /boot/initrd-XXX.img XXX

(where XXX is your kernel version)

And reboot normally to your CentOS.

Sorry that this is a bit vague, I'm telling this by memory.

  • What do you mean boot my VM on another OS? – blarg Apr 7 '14 at 15:17
  • I mean boot from some live media such as a SystemRescueCD livecd or whatever distribution you fancy so you can fix your system from it. – user60039 Apr 8 '14 at 15:46
  • I tried running mkinitrd but it ran with several errors. – blarg Apr 8 '14 at 15:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.