Converting from ESXI to Physical

General support questions including new installations

Converting from ESXI to Physical

Postby churchill » 2009/07/01 16:21:35

Good day to you all.

I have been running a Centos 5.3 install on my ESXI box and have decided that I would like to move this to dedicate hardware.

The plan was to create an image of the guest using clonezilla and then restore the image back to a HP DL380 G3.

The image creation worked well and the restore of the image onto the DL380 disks was succesfull, however when I try to boot I get the following errors

Scanning and configuring dmraid supported devices
trying to resume from /dev/sda3
Unable to access resume device (/dev/sda3)
Creating root device
Mounting root filesystem
mount: could not find filesystem '/dev/root'
setting up other filesystems
setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel Panic - Not syncing: Attempted to kill init!

Using a systemrescue cd I have successfully mounted the filesystems which now exist in /dev/cciss/c0d0 previously /dev/sda

I have changed the /boot/grub/device.map to
(hd0) /dev/cciss/c0d0

my fstab looks like this
Code: Select all
LABEL=/          /               ext3          defaults                   1  1
LABEL=/boot   /boot         ext3          defaults                   1  2
tmpfs             /dev/shm   tmpfs        defaults                    0  0
devpts           /dev/pts     devpts       gid=5,mode=620      0  0
sysfs             /sys           sysfs         defaults                    0  0
proc              /proc          proc          defaults                    0  0
LABEL=SWAP-sda3         swap          swap             defaults               0  0


Can somebody point me in the right direction so that I can get this system booted, I feel that I am almost there but missing something small?!?

Thank you for your time!
churchill
 
Posts: 3
Joined: 2009/07/01 15:42:41

Re: Converting from ESXI to Physical

Postby pschaff » 2009/07/01 18:20:55

Welcome to the CentOS fora.

The initrd does not match your physical hardware. Can't provide details without knowing more about your hardware, but in general, you should boot from the installation media in rescue mode, chroot to the installed image, and run mkinitrd to generate a new initrd. For example if the cloned system was running the current kernel, after the chroot you would do:
Code: Select all
mv  /boot/initrd-2.6.18-128.1.14.el5.img  /boot/initrd-2.6.18-128.1.14.el5_orig.img
mkinitrd /boot/initrd-2.6.18-128.1.14.el5.img 2.6.18-128.1.14.el5

You may have to create aliases in /etc/modprobe.conf for your hardware. The following google might help:
Code: Select all
mkinitrd modprobe alias site:centos.org


P.S. Added [ code ] ... [ /code ] tags to your fstab listing for readability. (Delete spaces.) Still not very readable. :-(
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Converting from ESXI to Physical

Postby churchill » 2009/07/01 19:09:17

Thanks for your response, and also the advice on using the code snippets.

Firstly, the hardware I am moving to is a DL380 G3 dual processor with SmartArray 5i raid controller.

Secondly, I am not entirely sure how to chroot the installation. Is this the same as mounting the partitions? I will search google, but if you have any info in the meantime that would be much appreciated.
churchill
 
Posts: 3
Joined: 2009/07/01 15:42:41

Re: Converting from ESXI to Physical

Postby gerald_clark » 2009/07/01 19:48:37

The instructions appear on the screen when you boot in rescue mode.
gerald_clark
 
Posts: 7180
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Converting from ESXI to Physical

Postby pschaff » 2009/07/01 22:03:22

churchill wrote:
...
Firstly, the hardware I am moving to is a DL380 G3 dual processor with SmartArray 5i raid controller.
...

Not sure if that RAID is a true hardware RAID, or a "fake RAID" requiring a driver. If the latter, that might be part of the problem.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Converting from ESXI to Physical

Postby churchill » 2009/07/02 21:07:56

Hi Phil,

Sure enough the mkinitrd worked a treat without the need for the alias modeprobe.conf.

There was a slight issue with dm-mem-cache which was resolved by adding --without-dmraid to the mkinitrd command.

That just leaves me to say thank you for your help, I learnt a little bit more along the way :-) !

Thank you kindly.
churchill
 
Posts: 3
Joined: 2009/07/01 15:42:41

Re: Converting from ESXI to Physical

Postby pschaff » 2009/07/02 21:44:26

Glad to help. Keep learning!
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 5 - General Support

Who is online

Users browsing this forum: No registered users and 3 guests