Deploying vNIOS on Red Hat OpenShift
Before setting up a NIOS virtual appliance as a Grid member, you must deploy the virtual appliance in your Red Hat OpenShift environment. For information about Red Hat OpenShift, see the OpenShift Container Platform documentation.
Information about deploying a vNIOS on Red Hat OpenShift instance and steps to deploy it are described in the following sections:
Prerequisites
Complete the following prerequisites before deploying vNIOS for Red Hat OpenShift:
Set up additional interfaces on the bare metal worker node to enable bridged networking for virtual machines.
Set up bridges and network attachment definitions for MGMT and LAN1 interfaces on the Red Hat OpenShift server for a standalone deployment. If you are configuring a HA configuration, set up another bridge and network attachment definition for the HA interface.
Use the following versions of software:
OpenShift Container Platform 4.12.13
OpenShift Virtualization 4.12.3
Downloading the NIOS Virtual Image from the Infoblox Support Site
You must download the qcow2 image file from the Infoblox Support site for the vNIOS for Red Hat OpenShift virtual appliance model, and then proceed to deploy the image in the Red Hat OpenShift environment. To download, complete the following steps:
Log in to the Infoblox Support site.
On the Downloads tab, complete the following steps to download the image:
Infoblox Software: Select NIOS/vNIOS.
Select release type: Select the release type as General maintenance products with full engineering support for routine patches and bug fixes on all significant issues.
Select version: Select the vNIOS version.
vNIOS for Red Hat OpenShift section: Download the qcow2 image of vNIOS for Red Hat OpenShift.
Note
When deploying the NIOS virtual image on Red Hat OpenShift, you must specify the URL of the location in which the qcow2 image is stored. Therefore, make sure that the image file is accessible through a URL.
Deploying the NIOS Virtual Image on Red Hat OpenShift
You can deploy a virtual machine instance by using a preconfigured YAML file or from the catalog option that is available in the Red Hat OpenShift web console UI.
Deploy Using a YAML File
You can type or paste a preconfigured YAML file to deploy a virtual machine instance in the Red Hat OpenShift environment.
To deploy a virtual machine, complete the following steps:
Log in to the RedHat OpenShift Container Platform web console.
In the left navigation panel, click Virtualization -> VirtualMachines.
On the VirtualMachines page, click Create and choose With YAML.
Either type or paste the virtual machine configuration in the YAML editor. For information about the supported vNIOS appliances and their specifications, see About Infoblox vNIOS for Red Hat OpenShift.
You may copy the content in the sample YAML file and customize the settings described in the Key parameters to configure a virtual machine table.Click Create.
Wait for the status to show as Running before accessing the virtual machine.From the Console tab, you can access the virtual machine using virtual network computing (VNC) or the serial console.
Key parameters to configure a virtual machine
Parameter | Description |
---|---|
| Specify a name for the virtual machine. |
| Allocate 250 GiB for the disk space. |
| Specify a custom name for the storage class. |
| Specify the URL of the location that has the vNIOS qcow2 image that you downloaded. |
| Specify the CPU cores depending on the vNIOS appliance that you will use. |
| Add a root disk. If you plan to use cloudinit, add a second disk for cloudinit. |
| Add two network interfaces for a standalone deployment. |
| Specify the memory (in GB) that must be allocated to the virtual machine depending on the vNIOS appliance that you will use. |
| Define two network attachment definitions for a standalone deployment. |
| Add cloudinit data. |
Deploy from the Catalog (OpenShift Web Console UI)
To deploy a virtual machine instance using the From catalog option, you must clone and modify one of the preconfigured Red Hat virtual machine templates available in the OpenShift web console to suit your requirement.
Cloning the Template
Only limited settings can be modified in a preconfigured template. To customize a preconfigured template for deploying the vNIOS instances, you must clone it. You can use the cloned template to customize and reuse it each time you deploy a virtual machine. Note that cloning a template is a one-time activity.
To clone the template, complete the following steps:
Log in to the RedHat OpenShift Container Platform web console.
In the left navigation panel, click Virtualization -> Templates.
In the Project drop-down list, choose All Projects.
List of templates of all projects is displayed.Search for fedora-desktop-large.
Click the three dots menu on the template and select Clone.
In the Clone template dialog box:
Template name: Specify a name for the template.
Template project: Specify the project in which you want the template cloned.
Template display name: Specify a display name for this template.
Template provider: Specify a name for the provider.
Click Clone.
The cloned template is displayed.
Deploying the Virtual Machine
To deploy a virtual machine from the UI using the From catalog option, complete the following steps:
In the Red Hat OpenShift Container Platform web console, click Virtualization -> VirtualMachines in the left navigation panel.
On the VirtualMachines page, click Create and choose From catalog from the drop-down list.
On the Create VirtualMachine from Catalog page, in the Filter box, search for the template that you cloned.
Click the template to open it.
Click the Customize VirtualMachine button.
On the Customize Template parameters page:
Name: Specify a name for the virtual machine.
Storage: Expand Storage and complete the following:
Disk Source: Click the drop-down list and choose URL (creates PVC).
Image URL: Select or enter the URL of the location where you downloaded the vNIOS qcow2 image.
Disk size (GiB): Specify 250.
Click Next.
On the Review and create VirtualMachine page -> Overview tab, complete the following:
CPU | Memory: click the Edit (pencil) icon and complete the following:
In the Edit CPU | Memory dialog box, depending on the vNIOS appliance, specify the CPU cores and memory that you want to allocate to the virtual machine.
Example: For an IB-V2225 appliance, specify 8 cores for CPUs and 64 GB for Memory.
For more information on supported models, see About Infoblox vNIOS for Red Hat OpenShift.Click Save.
Boot mode: Click the Edit icon and complete the following:
In the Boot mode dialog box, choose BIOS from the Boot mode drop-down list. This setting is required for NIOS to boot.
Click Save.
On the Network interfaces tab, add the required number of interfaces: MGMT and LAN1 interfaces for a standalone deployment or MGMT, LAN1, and HA interfaces for a HA setup.
In the HA setup, you must ensure that the LAN1 and HA interfaces are on the same subnet.
Complete the following:The default interface added for pod networking can be removed. Click the three dots menu and choose Delete to delete it. When prompted, click Delete.
Click Add network interface and complete the following in the Add network interface dialog box:
Name: Specify a name for this interface.
Model: Retain virtio as the model.
Type: Retain the type as Bridge.
Network: Select a network attachment definition from the drop-down list.
Click Save.
Add one or two more interfaces depending on whether you will use a standalone or a HA deployment respectively.
Click Create VirtualMachine.
Wait for the status to show as Running. The VM is added to the Virtualization -> Virtual Machines tab.From the Console tab, you can access the virtual machine using virtual network computing (VNC) or the serial console.
Note
Currently, the cloudinit configuration does not work in a virtual machine deployed using the From catalog option in the web console. If you must use cloudinit, deploy the virtual machine using a YAML file as described in the deploy Using a YAML File section.