본문 바로가기

Lunux

Vmware P2V 후 작업

##Type below command to mount the root partition.

 chroot /mnt/sysimage 



## Edit modules.conf 

 vi /etc/modules.conf



## Add the following line:

 alias scsi_hostadapter mptscsih 



## check boot image file name fm grub.conf

 vi /boot/grub/grub.conf


## create a new boot image incorporating LSI module (virtual scsi card ESXi)

 mv /boot/initrd-2.4.20-8.img /boot/initrd-2.4.20-8.img.bak20140323

 mkinitrd --preload mptbase /boot/initrd -8.img 2.4.20-8 



## Finally reinstall grub on the boot partition of SCSI disk:

 grub-install --recheck /dev/sda

 (hd0) /dev/sda

 

 grub-install /dev/sda



reboot


## Done, normal reboot ##