Boot the Virtual Machine From the First Red Hat Installation Disk

2
a. Boot the virtual machine from the first Red Hat installation disk. b. At the first prompt, type linux rescue and press Enter. c. Change root to the mounted installation. Type chroot /mnt/sysimage and press Enter. d. If the physical computer was IDE based, replace any instance of the text /dev/hda with /dev/sda in the files /etc/fstab, /boot/grub/device.map, and /boot/grub/grub.conf. e. Ensure that grub is installed properly. Type grub-install and press Enter. f. If the file /etc/modules.conf exists, edit it and remove any existing entries. g. Edit the file /etc/modprobe.conf. i. Look for alias ethx module entries, where x is replaced by a number and module is replaced by text. Change each module entry to pcnet32. ii. If you will be using BusLogic: Look for alias scsi_hostadapterx module entries, where x is replaced by a number and module is replaced by text. Change each module entry to BusLogic. iii. If you will be using LSI Logic: Look for alias scsi_hostadapterx module entries, where x is replaced by a number and module is replaced by text. Change each module entry to mptscsih. Additionally, look for an alias scsi_hostadapter module entry, where module is replaced by text and there is no number after hostadapter. If it exists, replace module with mptbase. If it does not exist, add alias scsi_hostadapter mptbase directly above the line that now reads alias scsi_hostadapter1 mptscsih. h. Determine the full path to the ramdisk image to be rebuilt. The file will is located in /boot. List the contents of the directory by typing ls /boot and pressing Enter. There will be a file with a name similar to initrd-2.6.9-42.EL.img. In this example, the full path to the ramdisk image is /boot/initrd-2.6.9-42.EL.img. Make a note of this. Note: If there is more than one initrd- file in /boot, type

Transcript of Boot the Virtual Machine From the First Red Hat Installation Disk

Page 1: Boot the Virtual Machine From the First Red Hat Installation Disk

a. Boot the virtual machine from the first Red Hat installation disk.b. At the first prompt, type linux rescue and press Enter.c. Change root to the mounted installation. Type chroot /mnt/sysimage and press

Enter. d. If the physical computer was IDE based, replace any instance of the text /dev/hda

with /dev/sda in the files /etc/fstab, /boot/grub/device.map, and /boot/grub/grub.conf.

e. Ensure that grub is installed properly. Type grub-install and press Enter. f. If the file /etc/modules.conf exists, edit it and remove any existing entries. g. Edit the file /etc/modprobe.conf.

i. Look for alias ethx module entries, where x is replaced by a number and module is replaced by text. Change each module entry to pcnet32.

ii. If you will be using BusLogic:

Look for alias scsi_hostadapterx module entries, where x is replaced by a number and module is replaced by text. Change each module entry to BusLogic.

iii. If you will be using LSI Logic:

Look for alias scsi_hostadapterx module entries, where x is replaced by a number and module is replaced by text. Change each module entry to mptscsih.

Additionally, look for an alias scsi_hostadapter module entry, where module is replaced by text and there is no number after hostadapter. If it exists, replace module with mptbase. If it does not exist, add alias scsi_hostadapter mptbase directly above the line that now reads alias scsi_hostadapter1 mptscsih.

h. Determine the full path to the ramdisk image to be rebuilt. The file will is located in /boot. List the contents of the directory by typing ls /boot and pressing Enter. There will be a file with a name similar to initrd-2.6.9-42.EL.img. In this example, the full path to the ramdisk image is /boot/initrd-2.6.9-42.EL.img. Make a note of this.

Note: If there is more than one initrd- file in /boot, type cat /etc/grub.conf and press Enter to determine which file is being used.

i. Determine the kernel version to use for rebuilding the ramdisk image. Type ls /lib/modules and press Enter. In this example, you will see the directory 2.6.9-42.EL. Make a note of this.

Note: If there is more than one directory shown, type cat /etc/grub.conf and press Enter to determine which kernel version is being used.

j. Rebuild the ramdisk. Type the command mkinitrd -v -f /boot/initrd-2.6.9-42.EL.img 2.6.9-42.EL and press Enter, where /boot/initrd-2.6.9-42.EL.img is replaced with the information noted in h. and 2.6.9-42.EL is replaced by the information noted in step i