No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionAccess V100R006C20 on FusionCloud V100R006C10 Software Installation Guide 11 (Microsoft AD)

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Creating a Linux Infrastructure VM Image

Creating a Linux Infrastructure VM Image

Creating a Linux VM

Scenarios

A VM image is a disk partition with an OS installed. You can create a VM image by installing a VM on this disk partition.

The process for making a VM image is to create and install a VM. This section describes how to create a VM on the cascading FusionSphere OpenStack management console (Region Type I scenario) or FusionSphere OpenStack management console (Region Type II scenario).

Prerequisites
  • You have obtained the FusionAccess_Linux_Installer_V100R006C20SPC103.iso file.
  • You have logged in to the cascading FusionSphere OpenStack management console (Region Type I scenario) or FusionSphere OpenStack management console (Region Type II scenario).
  • You have set the value of VM Watchdog to OFF. If the value is ON before image creation, set the value to ON after image creation.
    Method:
    • Region Type I scenario
      1. Log in to the cascaded FusionSphere OpenStack web client, choose Configuration > OpenStack > Nova, and set VM Watchdog to OFF.
      2. Log in to the cascaded FusionSphere OpenStack web client, choose Configuration > VM Diversification and select the Nova area of the corresponding host group. Ensure that VM Watchdog is set to OFF.
    • Region Type II scenario
      1. Log in to the FusionSphere OpenStack web client, choose Configuration > OpenStack > Nova, and set VM Watchdog to OFF.
      2. Log in to the FusionSphere OpenStack web client, choose Configuration > VM Diversification and select the Nova area of the corresponding host group. Ensure that VM Watchdog is set to OFF.
      NOTE:

      If there are multiple cascaded environments, perform this operation in all of them.

Procedure

Registering an image

  1. On the FusionSphere OpenStack management console, choose Resources > Computing > Images, and click Register.
  2. Set the parameters according to Table 4-5. Retain the default values for the parameters that are not involved and click OK.

    Table 4-5 Image parameters

    Parameter

    Description

    Provided As Service

    Supported

    Type

    KVM

    Name

    FusionAccess_SUSE_Image

    Applicable OS

    Linux

    OS Version

    SUSE Linux Enterprise Server 11 SP3 64-bit

    Min Disk (GB)

    60

    Min Memory (MB)

    4096

    Disk Device Type

    virtio

    Image Server Type

    Glance

    Upload Mode

    HTTPS

    Image File

    FusionAccess_Linux_Installer__V100R006C20SPC103.iso

  3. Refresh the image list after the registration. When the newly registered image is displayed, the registration is successful.

Creating a VM

  1. Choose Resources > Computing > Compute Instances and click Create.
  2. Set Availability Zones to the availability zone (AZ) of the interconnected back-end storage, for example, manage-az, and click Next.
  3. Select the image registered in Step 3 and click Next.
  4. Select the vdi-linux-image flavor created in Defining Computing Instance Flavors (KVM) and click Next.
  5. Select the DMZ_Tenant network and click Next, as shown in Figure 4-3.

    Figure 4-3 Selecting a network

  1. In the window that is displayed, set VM Name to FA-TEMPLATE and click Next.

    NOTE:
    • If you do not add the VMTools role to all hosts in the AZ in Obtaining UVP VMTools, select the hosts where the VMTools role is deployed.
    • If the VMTools role has been added to all hosts in the AZ, this option is not selected by default.

  2. Confirm the VM information and click Complete to start VM creation.
  3. Choose System > Tasks and Logs > Task Center to check the VM creation progress.

    When the status becomes Succeeded, the VM is successfully created.

  4. After the VM is created, choose Resources > Computing > Compute Instances to record the VM IP address.

    NOTE:

    After the VM is created, two IP addresses are generated for the DMZ_Service and DMZ_Tenant planes.

Configuring a Linux VM

Scenarios

This section describes how to install an OS on a bare VM.

Prerequisites

You have logged in to the cascading FusionSphere OpenStack management console (Region Type I scenario) or FusionSphere OpenStack management console (Region Type II scenario).

Procedure

Configuring the haproxyIP mapping

  1. Set the haproxyIP mapping on the local PC. For details, see Configuring the haproxyIP Mapping.

Logging in to the VM using VNC

  1. On the FusionSphere OpenStack management console, choose Resources > Computing > Compute Instances. In the row of the newly created VM, choose More > VNC Login.

    NOTE:

    If the wait time for the VM system startup options is too short after you log in to the VM, you may fail to enter the system installation options in a timely manner. In this case, forcibly restart the VM and use VNC to rapidly log in to the VM. On the FusionSphere OpenStack management console, choose Resources > Computing > Compute Instances. In the row of the newly created VM, choose More > Force Restart. During the restart, manually refresh the VM status. After the VM is restarted, log in to the VM immediately.

Installing an OS on the VM

  1. After the VM is successfully restarted, the Welcome to UVP! page is displayed. Select Install within 30 seconds and press Enter.

    NOTE:

    If you do not select Install within 30 seconds, the system boots from the local hard disk by default. You need to restart the VM, and click More > VNC Login.

    The system starts automatic loading. The loading takes about 3 minutes. After the loading is complete, the Main Installation Window page is displayed, as shown in the following figure.

    NOTE:
    • Press Tab or and to move the cursor.
    • Press Enter to select an item or execute the selected item.
    • Press the space key to select the item selected by the cursor.
    • Use the digital keys in the upper part of the main keyboard area to enter digits.

  2. In the navigation tree on the left, select Network and press Enter.
  3. In Network, set the NIC type of to DHCP.
  4. In the navigation tree, select Timezone and press Enter.
  5. In the Time Zone Selection window, change the time zone and time and save the settings.
  6. In the navigation tree, select Password and press Enter.
  7. On the Root Password Configuration page, enter the password of user root as planned and save the settings.
  8. Press F12. A confirmation dialog box is displayed. Press Enter as prompted.

    The Package Installation page is displayed. Linux OS installation starts.

  9. After the OS is successfully installed, the VM automatically restarts.

    NOTE:
    • The installation takes about 10 minutes.
    • During the VM restart process, if Failed is displayed for certain items, ignore these items and continue with subsequent operations. These items do not affect the normal use of the VM.

Installing UVP VMTools

NOTE:

For a VM installed using a Windows image, the NIC driver becomes available only after UVP VMTools is installed.

  1. On the FusionSphere OpenStack management console, choose Resources > Computing > Compute Instances.
  2. Locate the row containing the target VM and select Stop from the More drop-down list.
  3. After the VM is stopped, choose More > Attach uvptools. After the mounting is successful, click Start.
  4. Log in to the VM using VNC as user root.

    Username: root; default password: Use the actual value set in Step 9.

    NOTE:
    • If this is the first time for user root to log in to the VM, the FusionAccess screen is displayed.
    • Press and to move the cursor upwards and downwards.

  5. Move the cursor to Driver Tools in the navigation on the left, and press Enter.

  6. Install Driver Tools as prompted and press F8 to restart the VM.

Deleting the naming rule of network devices

  1. Log in to the VM using VNC as user root.
  2. Run the following command to delete the naming rule of network devices from the /etc/udev/rules.d file:

    rm -rf /etc/udev/rules.d/*-persistent-net.rules

    The naming rule of network devices is automatically generated during VM creation.

Stopping the VM

  1. Close the browser containing the VNC login page.
  2. Locate the row containing the target VM and select Detach uvptools from the More drop-down list.
  3. Locate the row containing the target VM and select Stop from the More drop-down list.

Creating a Linux VM Image

Scenarios

This section describes how to create a Linux infrastructure VM image.

Prerequisites

You have logged in to the cascading FusionSphere OpenStack management console (Region Type I scenario) or FusionSphere OpenStack management console (Region Type II scenario).

Procedure
  1. On the FusionSphere OpenStack management console, choose Resources > Computing > Compute Instances.
  2. Locate the row that contains the VM that has been stopped in Configuring a Linux VM, and choose More > Make image.

    Click OK to go to the task center to view the progress. The image creation time depends on the size of the image file, which takes about 15 minutes. When the status of the image creation task changes to Succeeded, the image creation is complete.
    NOTE:
    • If the VM is in the Running state, choose More > Stop and perform this operation after the VM is stopped.
    • Do not perform other operations on the selected VM and its associated resources during image creation.

  3. On the FusionSphere OpenStack management console, choose Resources > Computing > Images.
  4. Locate the row that contains the image generated in Step 2, click Modify.
  5. Modify the image information and click Save.

    • Name: The value can be customized. The recommended value is FusionAccess_Mgr_Template.
    • Retain the default values for other parameters. That is, ensure that the values are the same as those set in Step 2 of Creating a Linux VM.

  6. In the KVM and FusionCompute scenarios, if the image cannot be displayed in the image list on the ServiceCenter tenant portal, update the image attributes. For details, see Updating an Image.
  7. If the ISO image FusionAccess_SUSE_Image is not needed after the image is created, mask it on the FusionSphere OpenStack management console. For details, see Masking an Image.
Translation
Download
Updated: 2019-07-01

Document ID: EDOC1100021785

Views: 48042

Downloads: 104

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next