5.10.1 Install KVM

  1. Log in to the ILOM as root user.

    KVM GUI

  2. Launch the remote console.
    1. On the main Summary page, select Launch next to remote console.
      GUI

    2. Select Continue on the JAVA security warning pop-up.
  3. Connect the Oracle Linux ISO Image.

    Note:

    If firmware upgrade is required, apply same procedure.
    1. In the KVMS menu, select Storage option.
      GUI

      A window entitled Storage Devices appears.

    2. Click Add and navigate to the location of the ISO on the local workstation.
    3. Select the ISO and then click Select.
      GUI

      The ISO file will be included in the list of available storage devices.
    4. Select it in the Storage Devices window and then click Connect.
      GUI


      GUI

      Message when the ISO is connected will be displayed.
      GUI

  4. Click OK to confirm and close the window.
  5. Shut down the server gracefully.
    1. On the System Summary page, click Turn Off next to Power State in the Actions pane. Click OK at the confirmation prompt.
      GUI

      Note:

      • This performs a graceful shutdown of the operating system prior to powering off the host server. Wait for the indicator to signify that the server is powered down before proceeding to the next step.
      • If at any point the internet connection on the local workstation is lost or the browser being used is closed and the OSA has not yet been updated, the Oracle System Assistant Updater ISO must be remounted using the previous steps.
  6. Set CDROM as the next boot device.
    1. Under the Host Management tab, select Host Control option.
    2. From the drop-down menu for Next Boot Device, select CDROM option and then, click Save.
      GUI

  7. Power ON the server.
    1. On the System Summary page, click Turn On next to Power State in the Actions Pane to boot into the Oracle System Assistant Updater ISO.
    2. Click OK at the confirmation prompt.
  8. Oracle Linux OS installation.
    Go back to the window that contains the Remote Console. If the window was closed, re-launch the console in the Actions Pane.
    The system will boot into the installation.
    1. Select Install Oracle Linux xx and Enter.
      GUI

    2. Select Language and click Continue.
      GUI

    3. Select Date and Time, confirm and then, click Done.
      GUI

    4. Select Software selection with the following options.
      • Under Basic Environment, select Server with GUI
      • Under Add-ons for Selected Environment, select:
        • Virtualization Client
        • Virtualization Hypervisor
        • Virtualization Tools
        • Compatibility Libraries

        GUI

        Confirm and then click Done.
    5. Select Installation Destination.
      1. Select all hard drives to be installed.
      2. Under Other Storage Options, ensure Automatically configure partitioning is selected.

        c. Click Done.
        GUI

        When prompted with INSTALLATION OPTIONS screen, select Reclaim space.
        GUI

        When prompted with RECLAIM DISK SPACE screen, select Delete all, followed by Reclaim space.


        GUI


        GUI

  9. Reduce Home space on KVM (IDIH Database).

    Note:

    • This is an optional step.
    • The steps from 7 to 12 only apply for KVM that will store the VM for IDIH Database.
    1. Select Installation Destination.
      1. Select all hard drives to be installed.
      2. Under Other Storage Options, ensure I will configure partitioning.
      3. Click Done.
        GUI


        GUI

    2. Select Click here to create them automatically.
      GUI

      Note:

      Modify home to 800Gi and click Update Settings.

      GUI

      Note:

      The desired capacity field is customizable. In the above scenario, 800GB has been allocated to /home directory out of 1TB space. It is expected to retain about 200GB of free space out of total memory. This space can later be utilized for adding ephemeral disk.
    3. Click Accept Changes and Done.
      GUI

  10. Run installation on KVM.
    1. Verify Installation Source Auto-detected should be automatically selected with the correct image.

      Note:

      Verify the media if needed, but it takes a very long time to do so.

      GUI

    2. Select Network and host name.

      Note:

      Update server Host Name, but do not consider about networking at this time, as it will be configured later. Click Done after editing the host name.

      GUI

  11. Begin installation.
    1. Click Begin Installation to start the install.
      GUI

      Installation will begin.

      If needed, select and enter information for root password and user creation.

    2. Create an Administrative user. (NextGen)
      GUI

  12. Reboot after installation.
    When OL7.x installation is complete, and you are prompted, reboot server to start OL7.x.
    GUI

  13. Accept the license.

    GUI


    GUI

    Then, select finish installation.
    GUI

  14. Disconnect the ISO from storage.
    From KVMS, and then storage, select the ISO and then select disconnect.
  15. Revert KVM Hypervisor host interface naming convention to ETHx.
    1. Edit /etc/default/grub using VI editor.
      $ cd /etc/default
      $ sudo vi grub
    2. Add the following to the GRUB_CMDLINE_LINUX parameter:

      rhgb quiet net.ifnames=0
      grub

      Recreate the grub2 config file, run grub2-mkconfig -o /boot/grub2/grub.cfg


      grub

    3. Restart server, run shutdown -r now
      shutdown

    After server restart, devices should be shown as ETHx.

  16. Create KVM Hypervisor HOST MGMT interface.
    1. Create bond0 interface configuration file (/etc/sysconfig/network-scripts ifcfg-bond0):
      $ sudo vi /etc/sysconfig/network-scripts/ifcfg-bond0
      DEVICE=bond0
      TYPE=Bonding
      BOND_INTERFACES=eth0,eth1
      ONBOOT=yes
      NM_CONTROLLED=no
      BOOTPROTO=none
      BONDING_OPTS="mode=active-backup primary=eth0"
    2. Create eth0 interface configuration file (/etc/sysconfig/network-scripts ifcfg-eth0):
      $ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
      DEVICE=eth0
      TYPE=Ethernet
      ONBOOT=yes
      NM_CONTROLLED=no
      BOOTPROTO=none
      MASTER=bond0
      SLAVE=yes
    3. Create eth1 interface configuration file (/etc/sysconfig/network-scripts ifcfg-eth1):
      $ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth1
      DEVICE=eth1
      TYPE=Ethernet
      ONBOOT=yes
      NM_CONTROLLED=no
      BOOTPROTO=none
      MASTER=bond0
      SLAVE=yes

      Identify VLANs that apply for the system VM (IDIH).

      Table 5-13 VLAN for System VM

      VLAN Name VLAN ID (example)
      OAM/Mgt 1982
      XMI 1983
      IMI 405
      INT 406
      According the architecture OAM & XMI could be a unique VLAN.
    4. Create bond0.<vlan> OAM/Mgmt interface configuration file (/etc/sysconfig/network-scripts ifcfg-bond0.<vlan>):
      $ sudo vi /etc/sysconfig/network-scripts/ifcfg-bond0.1982
      DEVICE=bond0.<vlan>
      TYPE=Ethernet
      ONBOOT=yes
      NM_CONTROLLED=no
      BOOTPROTO=none
      VLAN=yes
      IPADDR= <OAM/Mgmt IP>
      NETMASK= <OAM/Mgmt netmask>
      GATEWAY= <OAM/Mgmt gateway>
      Save.
      :wq!
    5. Create bond0.<vlan> OAM/Mgmt route file (/etc/sysconfig/network-scripts/route-bond0.<vlan>) default through <bond0.<vlan> gateway>
      $ sudo vi /etc/sysconfig/network-scripts/route-bond0.1982
      default via 10.x.x.x.
      Save.
      :wq!
      $ sudo more route-bond0.1982
      default via 10.x.x.x.
    6. Bring KVM hypervisor host OAM/Mgmt interfaces into service … ifup eth0 ifup eth1 ifup bond0 ifup bond0.<vlan>
      ifup

  17. Create interface bridges.
    Create XMI interface bridge (/etc/sysconfig/network-scripts ifcfg-br_XMI):
    $ sudo vi /etc/sysconfig/network-scripts/XMI
    DEVICE=br_XMI
    TYPE=Bridge
    BOOTPROTO=none
    ONBOOT=yes
    NM_CONTROLLED=no

    Note:

    Repeat this step for all identify interfaces. For IDIH, we need XMI,IMI and INT interfaces.
  18. Create VLAN interfaces and bond them to the appropriate bridge.
    Create guests XMI vlan interface (/etc/sysconfig/network-scripts ifcfg-bond0.<XMI Vlan>)
    $ sudo vi /etc/sysconfig/network-scripts/ifcfg-bond0.1983
    ONBOOT=yes
    NM_CONTROLLED=no
    BOOTPROTO=none
    VLAN=yes
    BRIDGE=XMI
    TYPE=Ethernet
    DEVICE=bond0.1983

    Note:

    Repeat above step for all identify interfaces. For IDIH, we need XMI,IMI and INT interfaces.
  19. Verify interfaces and restart the network.
    1. Verify that all interfaces have been created with ls command.
      $ sudo ls -l /etc/sysconfig/network-scripts/

      Example:
      example

    2. Execute the following:
      $ sudo service network restart
  20. Create image repository.
    1. Verify disk space.
      $ df –h
    2. Create an images directory called repository for IMGs and ISOs in /home partition.
      $ cd /home
      $ sudo -i
      $ mkdir repository
  21. Copy image to the repository on the management server.
    Copy one of the two image types to the .qcow2 directory created.

    Note:

    • The image pack for OCPM is located on the Oracle Software Delivery Site.
    • Copy IDIH Oracle,Mediation and application images to the repository.
  22. Launch the virtual manager from the ILOM console.
    virt-manager from the OS (virt-manager and its dependencies are included in Oracle Linux ISO and installed on the host).
    VMM

  23. Resize ORA (database) ova image on KVM.
    1. Resize ova from KVM to 120G. Run the following commands:
      cd /home/repository/qemu-img resize <image_name.qcow2> +<New_Size>
      cd /home/repository qemu-img resize ORA-82_32_0.qcow2 +56G
    2. Verify actual size.

      Apply command, virtual size to 120G.

      [root@MXMERM01DRA01S05KVM03 repository]# qemu-img
      info ORA-82_32_0.qcow2
      image: ORA-82_32_0.qcow2
      file format: qcow2
      virtual size: 120G (68719476736 bytes)
      disk size: 20G
      cluster_size: 65536
      Format specific information:
          compat: 1.1
          lazy refcounts: false
      [root@MXMERM01DRA01S05KVM03 repository]#
    3. Initiate VM using the following command:
      [root@MXTIJM01DRA01S05KVM03 admusr]# virsh start TIJDRA01S05PCIDHD01 
    4. Validate SDB is attached to VM. Login to Database VM and run the following command:
      $ sudo df -h
  24. Create VM.
    1. From the Virtual Machine Manager, select the Monitor ICON to create the new virtual machine.
      GUI

    2. Select Import existing disk image and click forward.
      GUI

    3. Next, select the path where the .qcow2 image resides. Browse local to add the repository.
      GUI

      OPTIONS

      OS type = generic

      Version = generic

      Select forward when complete


      GUI

    4. Next, select the memory and CPU settings. Refer to pining tool to setup correct information.
      GUI

    5. Name the Virtual Machine and click Finish.
    6. Choose Customize configuration before install.
    7. Select XMI Bridge from drop down list.
      GUI

      Note:

      In case the bridges are not listed, it is recommended to check the network parameters configured in the KVM.
      GUI

  25. Create VMs using .qcow2 image.
    1. Click Add Hardware, select Network.
      GUI

      Interfaces for IDIH VMs:

      Oracle: XMI and INT

      Mediation: XMI, INT and IMI

      Application: XMI and INT

      Note:

      Ensure that all 3 IDIH VMs are created and corresponding interfaces have been added to them (as listed above). The interfaces naming convention XMI, IMI, INT must be used in place of eth0, eth1, eth2. This change must be done in 70-persistent-net.rules file. Check HWaddr of each interface using ifconfig command and edit the file to change interface names accordingly. Ensure that interface names are not interchanged while editing the file. Caution is advised.

      Table 5-14 IDIH VM Interfaces

      IDIH VM interfaces
      XMI eth0
      IMI eth1
      IN eth2

      PARAMETERS:

      Network source = XMI (select appropriate network source from the dropdown)

      Device Model = virtio

    2. Click Finish.

      Add all interfaces as needed. After adding the other networks, you will see the NICs appear.


      GUI

    3. Click Begin Installation.
      GUI

      Installation takes a few minutes. From the Virtual Machine Manager, you will see the newly created VM.


      GUI