Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Integrity Virtual Machines Version 4.0 Installation, Configuration, and Administration > Chapter 6 Creating Linux Guests

Installing Red Hat Enterprise Linux Guests from ISO Images

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

  1. On the VM Host system, load the *.iso files of Red Hat Advanced Server 4 Update 4 (or Update 5) into the following directory:

    /var/opt/hpvm/ISO-images/linux/

    Use the following file names:

    • RHEL4-U4-ia64-AS-disc1.iso

    • RHEL4-U4-ia64-AS-disc2.iso

    • RHEL4-U4-ia64-AS-disc3.iso

    • RHEL4-U4-ia64-AS-disc4.iso

    • RHEL4-U4-ia64-AS-disc5.iso

    For security reasons, you should mark the ISO images as read-only.

  2. Create a virtual machine with one disk and five DVD devices, one for each of the ISO files. Specify the operating system type as LINUX, as well as one network virtual switch. For example:

    # hpvmcreate -P linux1 -B manual -O LINUX -c 1 -r 2G \ -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc1.iso \ -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc2.iso \ -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc3.iso \ -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc4.iso \ -a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc5.iso \ -a disk:scsi::lv:/dev/vg00/rguest1 \ -a network:lan::vswitch:switch1

    If you create all the virtual DVDs on the guest, you do not have to enter multiple EJ and IN commands during the installation procedure.

  3. On the VM Host system, start the virtual machine:

    # hpvmstart -P linux1 (C) Copyright 2000 - 2008 Hewlett-Packard Development Company, L.P. Opening minor device and creating guest machine container Creation of VM, minor device 1 Allocating guest memory: 2048MB allocating low RAM (0-80000000, 2048MB) /opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids /eaccd6e4-b004-11db-bd1f-00306ef4693e/vmm_config.next): Allocated 2147483648 bytes at 0x6000000100000000 allocating firmware RAM (ffaa0000-ffab5000, 84KB) /opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids /eaccd6e4-b004-11db-bd1f-00306ef4693e/vmm_config.next): Allocated 86016 bytes at 0x6000000180000000 Loading boot image Image initial IP=102000 GP=62E000 Initialize guest memory mapping tables Starting event polling thread Starting thread initialization Daemonizing.... hpvmstart: Successful start initiation of guest 'linux1'

    Use the hpvmconsole command to connect to the guest.

  4. Boot the guest.

    There are two ways to boot the guest:

    • From the EFI shell

    • From the File menu

    To boot from the EFI shell:

    1. Go to the EFI shell. For example:

      fs0 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part1,Sig5D1D1134-C809-11DB-9AEB-000000000000) fs1 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part2,Sig5DB58D88-C809-11DB-9AEB-000000000000) fs2 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)

      EFI lists devices with file systems detected as fs{n}. In this example, fs0 and fs1 are older file systems that are present on the disk. File system fs2 corresponds to the bootable Linux ISO image/Virtual DVD, as can be recognized by the CD against it.

    2. Boot the first installation DVD, which is indicated in the device-mapping table as /CDROM, by entering the following commands:

      shell > fsn: fsn > bootia64

      where n corresponds to the Virtual DVD.

    The following example shows how to boot from fs0:

    # hpvmconsole -P linux1 - - - - - - - - - - Prior Console Output - - - - - - - - - - Device mapping table fs0 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0) blk0 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0) blk1 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0) blk2 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0) blk3 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun2,Lun0) blk4 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun3,Lun0) blk5 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun4,Lun0) blk6 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun5,Lun0) Shell> fs0: fs0:>bootia64

    To boot from the File menu:

    1. Exit the EFI shell.

    2. Select Boot from a file.

    3. Select the option Removable Media Boot, then press Enter.

      The guest boots from the media.

  5. Add the console=ttyS0 option by entering the following command:

    ELILO boot: linux console=ttyS0

    NOTE: Failure to add this option results in an apparent guest hang, where the guest is trying to run a graphical installation program without a display. If this happens, reset the virtual machine. Press Ctrl/B to reach the virtual console. Enter the RS command to restart the virtual machine. Then resume the installation procedure.

    The installation process continues:

    Uncompressing Linux... done Loading initrd initrd.img...done Linux version 2.6.9-42.EL (bhcompile@altix2.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:25:09 EDT 2006 . 9. . Welcome to Red Hat Enterprise Linux +--------------+ CD Found +--------------+ | | | To begin testing the CD media before | | installation press OK. | | | | Choose Skip to skip the media test | | and start the installation. | | | | +----+ +------+ | | | OK | | Skip | | | +----+ +------+ | | | | | +----------------------------------------+ <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen

    On the CD Found screen, select Skip.

  6. The boot program presents a sequence of screens that allow you to customize Linux. Respond to each screen as described in Table 6-2. (Note: These responses are suggested, not mandatory.)

    Table 6-2 Linux Installation Screens

    ScreenTypical Response
    Red Hat Enterprise Linux ASEnter OK.
    Language SelectionSelect your language and enter OK.
    Disk Partitioning SetupSelect Autopartition.
    Automatic PartitioningSelect "Remove all partitions. Select drive sda. Enter OK.
    Warning (about remove all)Enter Yes.
    PartitioningEnter OK.
    Network Configuration for eth0Type the guest's IP address and Netmask. Enter OK.
    Miscellaneous Network SettingsType the Gateway IP address and at least one DNS server IP address. Enter OK.
    Host name ConfigurationSelect manually. Type the guest's full host name (for example, linux1.abc.com). Enter OK.
    FirewallEnter Customize.
    Customize Firewall ConfigurationSelect which accesses to allow and enter OK.
    Security Enhanced LinuxSelect Disabled and enter OK.
    Language SupportSelect your primary language plus any additional languages, then enter OK.
    Time Zone SelectionSelect a city in your time zone from the list, then enter OK.
    Root PasswordType the guest's root password in each entry, then enter OK.
    Package DefaultsSelect Customize software selection and then enter OK.
    Package Group SelectionScroll to the bottom, select Everything, and then enter OK.
    Installation to beginEnter OK.
    Required Install MediaEnter Continue.
    Processing Watch the progress percentage increment to 100%.
    Install Starting Observe installation process.
    Package InstallationObserve progress.
    CompleteEnter Reboot.

     

    NOTE: If you use ISO images for installation, you can leave the virtual CD images mounted, so that you can easily install additional software at a later time.

    The guest reboots and displays a normal Linux boot sequence on the console.

    EFI Boot Manager ver 1.10 [14.62] [Build: Wed May 7 11:13:44 2008] Please select a boot option Red Hat Enterprise Linux AS EFI Shell [Built-in] Boot option maintenance menu Use ^ and v to change option(s). Use Enter to select an option Loading.: Red Hat Enterprise Linux AS Starting: Red Hat Enterprise Linux AS ELILO boot: Uncompressing Linux... done Loading initrd initrd-2.6.9-42.EL.img...done << Lots of lines deleted here >> Red Hat Enterprise Linux AS release 4 (Nahant Update 4) Kernel 2.6.9-42.EL on an ia64 guest1.abc.com login:

  7. Optionally, remove the virtual DVD devices from the guest using the hpvmmodify command. For example, on the VM Host:

    # hpvmmodify -P guest1 \ -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc1.iso \ -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc2.iso \ -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc3.iso \ -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc4.iso \ -d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc5.iso

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.