Previous Topic: CentOS 6.3 x86_64Next Topic: CentOS 5.9 x86_64


CentOS 5.9 i386

You can install this distro in your appliance.

Note: We recommend creating a separate partition for /usr volume to allow you to move the volume later. This allows you to create a volume that is read-only and shared between appliance instances as well as conserve disc space. You must verify that the distro that you are installing supports the separation. If you create multiple partitions and do not separate later, some filesystem counters will not report correctly.

Follow these steps:

  1. Upload the installation DVD to the /vol/_impex/ directory.
  2. Open the grid shell and initialize the installation with the following command:
    util iso2class app_name=CentOS59_i386 install_size=5G console_type=graphic iso_volume1=CentOS-5.9-i386-bin-DVD-1of2.iso os=linux virt_mode=xen_hvm,vmware cpu=0.5 mem=1.5G bw=1M
    

    The following prompt appears:

    When you have finished installing from iso_volume1 and are ready to reboot so that remaining volume(s) become available, press [Enter]
    
  3. Access the AppLogic GUI, select the CentOS59_i386 application, and click the Login (graphic) icon.

    The CentOS installation wizard displays a series of screens for you to select your preferences.

  4. For some screens, you can make your own choices or accept default values, but for the following screens, select the following values:
    1. CD Found: select Skip.
    2. Would you like to initialize this drive, erasing ALL DATA: click Yes to confirm the volume overwrite, and then select Create custom layout, and click Next.

      A screen appears to create and set up the partitions.

    3. Click New to open the Add Partition dialog, and create the root partition with the following values:
      • Mount Point: /
      • File System Type: ext3
      • Size: Change 200 to 2000
      • Additional Size Options: Fixed size
      • Click Force to be a primary partition.
    4. Click OK, and click New again to create the /usr partition with the following values:
      • Mount Point: /usr
      • File System Type: ext3
      • Additional Size Options: Fill to maximum allowable size
      • Click Force to be a primary partition.
    5. Click OK to close the dialog, review your setup, and click Next to continue through the wizard.

      Note: Click Yes to ignore the swap partition warning.

    6. Network Devices: Deselect Active on Boot.

      Note: Click Continue to ignore the error message.

    7. Select only the Server software package when prompted to include additional tasks to support (deselect others).
    8. Select Base System and System Tools when prompted to select tools for the system (keep other default selections), then select Customize now, and click Next to continue through the wizard, and click Reboot when you get to the last step.

      Your system reboots.

  5. Complete the installation:
    1. Return to the grid shell.

      The following prompt still appears:

      When you have finished installing from iso_volume1 and are ready to reboot so that remaining volume(s) become available, press [Enter]
      
    2. Press Enter, Y, Enter.

      The following prompt appears:

      When you have finished with the installation, press [Enter] to continue
      
    3. Press Enter, Y, Enter.

      A prompt appears to specify whether to install msi/APK.

    4. Press 2, Enter to select NOT to install the msi/APK.

      A prompt appears to specify whether to call hvm2pv now.

    5. Press 2, Enter to select NOT to call hvm2pv now.

      You now should have a CentOS 5.9 application named CentOS59_i386 running.

    6. Enter the following command to stop the application:
      app stop CentOS59_i386
      
    7. Specify the device schema:
      • Open the application GUI, right-click on the singleton, and select Modify Boundary.
      • On the General tab, in the Virtualization section, click Advanced, select IDE and /dev/hdX, and click OK.
      • On the Volumes tab, select the consecutive hd* (hda,hdb,hdc...) devices for all volumes (where hda is the boot volume), click OK, and save the application.
    8. Enter the following command to call the hvm2pv utility:
      util hvm2pv name=CentOS59_i386:main.iso2class virt_mode=xen_hvm
      

      The following prompt appears:

      Is the pre-requisite software installed?
      
    9. Press Y, Enter.

      A confirmation prompt appears.

    10. Press Y, Enter to confirm the CentOS OS and 32-bit architecture.

      A prompt appears to set up a new root password.

    11. Press N, Enter to NOT set up a password.

      A prompt appears to press any key when ready.

    12. Press Enter to boot the appliance in PV mode.

      A prompt appears to delete the original boot volume.

    13. Press Y, Enter to perform the cleanup.

    You now have the managed CentOS 5.9 i386 appliance capable of booting in HVM mode.

  6. To enable the PV mode of operation:
    1. To upload and install the kernel-xen rpm on the running appliance, execute the following commands:
      wget ftp://ftp.pbone.net/mirror/ftp.centos.org/5.9/updates/i386/RPMS/kernel-xen-2.6.18-348.1.1.el5.i686.rpm
      rpm -i kernel-xen-2.6.18-348.1.1.el5.i686.rpm
      
    2. To generate the dependencies file, execute the following command:
      depmod -a 2.6.18-348.1.1.el5xen
      
    3. To generate the initrd image, execute the following command:
      mkinitrd --with=xenblk -f /boot/initrd-2.6.18-348.1.1.el5xen.img 2.6.18-348.1.1.el5xen --allow-missing
      
    4. To modify the grub.conf and menu.lst files properly, execute the following commands:
      /bin/rm -rf /boot/grub/menu.lst
      
      /bin/cp /boot/grub/grub.conf /boot/grub/grub.conf.bak
      
      awk '/^title.*el5xen\)/ {s=1;next;} /^title/ {s=0;print;} !/^title/ {if (s==1) {next;} else {print}}' /boot/grub/grub.conf.bak > /boot/grub/grub.conf
      
      awk '/^title.*el5\)/ {s=1;next;} /^title.*el5xen\)/ {s=0;print;} !/^title/ {if (s==1) {next;} else {if(/kernel/) next; if(/module.*vmlinuz/) {$1="\tkernel";print;next} if(/module.*initrd/) {$1="\tinitrd";print;next} print;}}' /boot/grub/grub.conf.bak > /boot/grub/menu.lst
      
    5. In the GUI of the application, right-click the appliance, select Modify Boundary, and in the Virtualization > Modes area, check Xen HVM and Xen Paravirtualization.
  7. To enable the text consoles in HVM and PV modes, execute the following commands on the appliance:
    echo 'S0:2345:respawn:/sbin/mingetty ttyS0' >> /etc/inittab
    echo 'xvc0:2345:respawn:/sbin/mingetty xvc0' >> /etc/inittab
    echo 'ttyS0' >> /etc/securetty
    echo 'xvc0' >> /etc/securetty