作者: dtom 時間: 2013-6-21 12:18 標題: RH9 convert VM 後起唔到
事前
[attach]1547652[/attach]
落左 VM
[attach]1547651[/attach]
VM grub setup
[attach]1547650[/attach]
然後...
[attach]1547649[/attach]
係咪 VM 既 sda1 end 39 同 sda2 start 又係 39 引起呢?
( sda2 end 9600 亦同 sda3 start 9600... )
仲可以點救呢
作者: 有你便有我 時間: 2013-6-21 12:24
chroot 後行mkinitrd -f -v /boot/initrd-xxxxx xxxxx rebuild 番個initrd, 因為initrd無pack到你個scsi driver 入去
作者: dtom 時間: 2013-6-21 14:43
chroot 後行mkinitrd -f -v /boot/initrd-xxxxx xxxxx rebuild 番個initrd, 因為initrd無pack到你個scsi dr ...
有你便有我 發表於 2013-6-21 12:24
多謝師兄指點, 但仲未得
rebuild initrd
[attach]1547693[/attach]
after rebuild initrd
[attach]1547692[/attach]
作者: roytam1 時間: 2013-6-21 20:18
IDE harddisk?
改用 hda 試下?
作者: 有你便有我 時間: 2013-6-21 22:11
用緊esxi 嗎? 係咪LSI Logic SAS?? 照計用vmware convert 唔會出現呢個問題......
你試試再chroot 入去run 埋呢句command 先mkinitrd
cat << "EOF" >> /etc/modules.conf
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsih
EOF
作者: lazyfai 時間: 2013-6-22 00:44
唔想改 file, 可以在 mkinitrd 時加埋 --with=mptbase --with=mptscsih 咁樣, 你會見到佢加埋呢2個嘢入去~
作者: unknown2 時間: 2013-6-22 08:38
本帖最後由 unknown2 於 2013-6-22 09:06 編輯
What is the hypervisor?
KVM? VMware?
What io controller is the vm using? virtio, virtio-scsi? sas-scsi?
If your kernel is too old and do not contains corresponding driver module, it will not boot.
Besides, your error message shows "cannot open root device 'sda'" is a hint.
sda - mean the whole harddisk, and it is not a partition
I guess your linux root is sda2, correct?
so you should create a boot entry which point to "root=sda2" (may need to reinstall grub)
作者: dtom 時間: 2013-6-22 17:27
本帖最後由 dtom 於 2013-6-22 17:29 編輯
多謝咁多位既回覆先
呢幾日忙其他野
有進展再覆 post
係 esxi 5.0, LSI Logic SAS
其實 convert 過 3/4 部 linux, 部部都係咁上下問題,
但個幾部都係 CentOS, 呢部就舊D係 RH9...
作者: Bomber 時間: 2013-6-24 10:43
Also check http://lionel.parmentier.free.fr/?p=55 with google translate...
作者: dtom 時間: 2013-6-25 11:47
回復 9# Bomber
得左! THX 各位!!
作者: lazyfai 時間: 2013-6-25 12:34
咁結果係用咩方法呢?
作者: dtom 時間: 2013-6-25 14:05
回復 11# lazyfai
#9 跟住做晒
其中 grub-install /dev/sda 出 error,
但行一次 grub-install --recheck /dev/sda 就無問題

