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]
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
[/code]
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!
Converting from ESXI to Physical
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Converting from ESXI to Physical
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]
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
[/code]
You may have to create aliases in /etc/modprobe.conf for your hardware. The following google might help:
[code]
mkinitrd modprobe alias site:centos.org
[/code]
P.S. Added [ code ] ... [ /code ] tags to your fstab listing for readability. (Delete spaces.) Still not very readable. :-(
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]
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
[/code]
You may have to create aliases in /etc/modprobe.conf for your hardware. The following google might help:
[code]
mkinitrd modprobe alias site:centos.org
[/code]
P.S. Added [ code ] ... [ /code ] tags to your fstab listing for readability. (Delete spaces.) Still not very readable. :-(
Re: Converting from ESXI to Physical
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.
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.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Converting from ESXI to Physical
The instructions appear on the screen when you boot in rescue mode.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Converting from ESXI to Physical
[quote]
churchill wrote:
...
Firstly, the hardware I am moving to is a DL380 G3 dual processor with SmartArray 5i raid controller.
...[/quote]
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.
churchill wrote:
...
Firstly, the hardware I am moving to is a DL380 G3 dual processor with SmartArray 5i raid controller.
...[/quote]
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.
Re: Converting from ESXI to Physical
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.
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.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Converting from ESXI to Physical
Glad to help. Keep learning!