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 Windows Infrastructure VM Image

Creating a Windows Infrastructure VM Image

Windows infrastructure VM images are used to create antivirus and patch servers. When you need to deploy antivirus and patch servers, perform operations in the following sections:

Creating a Windows VM Template

Scenarios

This section describes how to create and configure a Windows VM template on FusionCompute to create Windows VMs.

Prerequisites
  • You have logged in to FusionCompute.
  • You have obtained the ISO files of Windows Server 2012 R2.
  • You have obtained the FusionAccess_Windows_Installer_V100R006C20SPC102.iso file.
Procedure

Creating a bare VM

  1. On FusionCompute, choose VM and Template > Create VM.
  2. Table 4-12 lists the required parameters.

    Table 4-12 Parameter description

    Category

    Description

    VM name

    Specifies the name of the VM to be created.

    Example: Windows_2012_en_temp

    Computing resources

    Specifies the location where the VM is to be created.

    Select ManagementCluster.

    Data Store resources

    • For FusionCube: Choose FusionStorage as the Data Store resources.

    OS

    • OS type: Windows
    • OS version: Windows Server 2012 R2 Standard 64-bit

    Hardware

    • CPUs: 2
    • Memory: 2 GB
    • Disk 1: 50 GB
    • NICs: 1

    Others

    BSOD handling policy: Restart

    Retain the default values for other parameters.

  3. Click Next. On the Confirm Info page, confirm the information and click Finish.
  4. Click OK.

    The prompt dialog box is closed.

Mounting a CD/DVD-ROM drive

  1. Choose VM and Template from the main menu of FusionCompute.
  2. In the navigation tree of the page that is displayed, click VM and Template.
  3. In the Name column, click the name of the newly created bare VM.
  1. Choose Hardware > CD/DVD-ROM drive > Mount Local CD/DVD-ROM Drive, and click OK.
  2. Mount the ISO file to a VM. Select Restart the VM now to install the OS, and click Confirm.
  3. In the VM and Template list, locate the row where the newly created bare VM is located, and click Log In Using VNC.

Installing the OS

  1. In the VNC window, install the Windows OS as prompted.

    NOTE:

    During the installation, select Windows Server 2012 R2 Standard (Server with a GUI), as shown in Figure 4-29.

    Figure 4-29 OS

  2. After the OS is installed, set the administrator password and log in to the VM.

(Optional) Enabling remote desktop connection

If this function is enabled, you can access the Windows VM remotely. If you do not enable this function on the VM template, you can also perform this task on each VM respectively.

  1. In the VNC window of the bare VM, right-click and choose Run. In the Run edit box, enter the sysdm.cpl command and press Enter.

    The System Properties window is displayed.

  2. On the Remote tab page, select Allow remote connections to this computer, as shown in Figure 4-30.

    Figure 4-30 Enabling remote desktop connection

  3. In the Remote Desktop Connection dialog box that is displayed, click OK.
  4. Click OK.

    Remote desktop connection is enabled.

(Optional) Changing group policies

Disable Activate Shutdown Event Tracker System State Data feature and Display Shutdown Event Tracker to prevent the shutdown event confirmation dialog box from being displayed when you shut down the Windows VM. You can perform this operation when creating the template or on each VM.

  1. In the VNC window of the bare VM, right-click and choose Run. In the Run edit box, enter the gpedit.msc command and press Enter.

    The Local Group Policy Editor window is displayed.

  2. In the navigation tree of the Local Group Policy Editor window, choose Computer Configuration > Administrative Templates > System.
  3. Disable Activate Shutdown Event Tracker System State Data feature and Display Shutdown Event Tracker, as shown in Figure 4-31.

    Figure 4-31 Changing the group policy

(Optional) Configuring the DST

Perform this operation only for regions that use DST.

  1. Configure the DST.

    • If your OS supports the DST, perform the following steps:
      1. On the VM, click the Date and Time area on the taskbar. In the dialog box that appears, click Change date and time settings.
      2. Click Change time zone.
      3. On the Time Zone Settings page, select a time zone based on the actual region and click OK twice.
        NOTE:

        If Automatically adjust clock for Daylight Saving Time is displayed on the Time Zone Settings page, select it.

    • If your OS does not support the DST, obtain TZEDIT.exe from http://support.huawei.com/ecommunity/bbs/10301999.html and set the DST as prompted.

Installing the PV driver

  1. On the FusionCompute portal, locate the row of the VM to be operated, choose More > Mount Tools, and click OK twice.
  2. On the VNC login page, switch to the CD-ROM drive on the VM, right-click Setup and select Run as Administrator from the shortcut menu. Install the software as prompted. During the installation, retain the default settings. After the installation, restart the VM.
  3. Uninstall Tools.

Disabling the firewall

  1. In the VNC window of the bare VM, right-click and choose Run. In the Run edit box, enter the gpedit.msc command and press Enter.

    The Local Group Policy Editor window is displayed.

  2. In the navigation tree on the left of the Local Group Policy Editor window, choose Computer Configuration > Administrative Templates > Network > Network Connections > Windows Firewall. Click Domain Profile and disable Windows Firewall: Protect all network connections. Click Standard Profile and disable Windows Firewall: Protect all network connections, as shown in Figure 4-32.

    Figure 4-32 Disabling the firewall

  3. Close the Local Group Policy Editor window.
  4. Enter services.msc in the Run text box, and press Enter.
  5. Disable Application Layer Gateway Service, as shown in Figure 4-33.

    Figure 4-33 Application Layer Gateway Service Properties (Local Computer)

  6. Disable the Windows Firewall service in the same way.
  7. Close the Services window.

Installing .NET framework 3.5.1

  1. Repeat Step 5 to Step 10 to mount the ISO files of Windows Server 2012 R2 to the VM. Select Restart the VM now to install the OS, and click Confirm.
  2. On the taskbar, click .

    The Server Manager window is displayed, as shown in Figure 4-34.

    Figure 4-34 Server Manager

  3. In the middle of the page, click Add Roles and Features.

    The Add Roles and Features Wizard dialog box is displayed.

  4. Click Next for four times.
  5. In the displayed dialog box, select .NET Framework 3.5 Features and click Next, as shown in Figure 4-35.

    Figure 4-35 Installing .NET framework 3.5

  6. Click Specify an alternate source path, as shown in Figure 4-36.

    Figure 4-36 Specifying an alternate source path

  7. In the displayed dialog box, set Path to Windows Server 2012 R2 ISO drive:\Sources\SxS.

    For example, if the Windows Server 2012 R2 ISO file is saved in drive D, set Path to D:\Sources\SxS.

  8. Click OK.
  9. Click Install.

    The installation progress bar is displayed. When Installation succeeded is displayed, the installation is successful, as shown in Figure 4-37.

    Figure 4-37 Installation progress

  10. Click Close.

    The Add Roles and Features Wizard dialog box is closed.

  11. Close the Server Manager window.
  12. Uninstall the CD/DVD-ROM drive from the VM.

Installing the monitoring agent

  1. Repeat Step 5 to Step 10 to mount the FusionAccess_Windows_Installer_V100R006C20SPC102.iso file to the VM. Select Restart the VM now to install the OS, and click Confirm.
  2. On the VM, double-click the CD/DVD-ROM.

    NOTE:

    The FusionAccess Windows Installer window is displayed after the CD-ROMs of some VMs are double-clicked.

  3. Double-click run.bat.

    The Figure 4-38 window is displayed.

    Figure 4-38 FusionAccess Windows Installer

  4. Click Scale-out Deployment.

    The Deployment page is displayed.

  5. Select Monitoring agent and click Install.

    Install the monitoring agent as prompted.

  6. Close the FusionAccess Windows Installer window.
  7. Uninstall the CD/DVD-ROM drive from the VM.

(Optional) Installing the Cloudbase-Init software

NOTE:
  • If the Cloudbase-Init mode is enabled for FusionSphere, install Cloudbase-Init. For details, see Step 50 to Step 53.
  • If Cloudbase-Init is not enabled for FusionSphere (that is, the default FusionCompute file injection mode), do not install Cloudbase-Init. Go to Step 54.
  1. Copy the Cloudbase-Init software to the C:\ directory on the VM. Run the Cloudbase-Init software and install it as prompted.
  2. On the Configuration options page, configure the software according to Figure 4-39.

    Figure 4-39 Configuration options

  3. After the configuration, deselect the selected options and click Finish, as shown in Figure 4-40.

    Figure 4-40 Finish

  4. Add configuration item netbios_host_name_compatibility=false to the last row in the C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf configuration file of the Cloudbase-Init software so that the host name can contain a maximum of 63 characters.

    NOTE:

    NetBIOS is limited by Windows and can contain at most 15 characters.

Encapsulating the VM template

  1. Go to C:\Windows\System32\Sysprep and double-click sysprep.exe.
  2. Set the following parameters as prompted, as shown in Figure 4-41.

    Parameters for encapsulating VM templates:

    • System Cleanup Action: Select Enter System Out-of-Box Experience (OOBE).
    • Select Generalize.
    • Shutdown Options: Select Shutdown.
    Figure 4-41 Parameters for encapsulating VM templates

  3. Click OK.

    The system displays Sysprep is working... After the template encapsulation is complete, the VM automatically shuts down.

Registering a Windows VM Image

Scenarios

This section describes how to upload the created image file to the target storage directory and register the image for creating compute instances.

Prerequisites

You have logged in to FusionCompute.

Procedure

Exporting the VM

  1. On FusionCompute, choose VM and Template and go to the VM page.
  2. In the Name column, click the name of the created VM.
  3. On the Options tab page, click NIC Advanced Settings. In the right area, set NIC type to HW_V_NET, as shown in Figure 4-42.

    Figure 4-42 NIC Advanced Settings

  1. Click VM and Template and go to the VM page. Locate the row of the VM and click More.
  2. Select Export VM from the prompted drop-down list.
  3. Set Select Export Source to Local PC and click Next.
  4. Set the following parameters and click Finish.

    NOTE:

    A Java plug-in is required if you want to export the VM to the local PC.

    • Name
    • Directory
    • Format (Retain default value ovf.)

    The export process takes about 10 minutes. Then, an .ovf file and a .vhd file are obtained.

Registering an image

  1. Select the image upload mode.

    • If the image file is smaller than 6 GB, select the HTTPS or NFS upload mode, or register the image on FusionSphere OpenStack.
    • If the image file is larger than and equal to 6 GB and smaller than and equal to 200 GB, select the NFS upload mode, or register the image on FusionSphere OpenStack.
    • If the image file is larger than 200 GB, register the image on FusionSphere OpenStack.

    Perform the operations according to the upload mode:

  2. Upload the image file to the NFS server (for example, NAS).

    The NFS server is prepared by customers and must meet the following requirements:

    • If you register a FusionCompute image, the IP address of the NFS server can communicate with the management plane of the CNA node.
    • If you register a KVM or Ironic image, the NFS server can communicate with the API network plane of the VM on FusionSphere OpenStack Management Console.

  3. Log in to the FusionSphere OpenStack management console, choose Resources > Computing > Images, and click Register.

    In the image registration dialog box that is displayed, set the parameters.

    The key parameters are as follows:
    • Provided As Service: Set it to Not Supported.
    • Type: Set it to FusionCompute.
    • Cloud-Init: If Cloudbase-Init is installed in Creating a Windows VM Template, select it. Otherwise, you do not need to select it.

    Set other parameters as required.

  4. Select the image file. Set the image parameters and click Register.

    • If Upload Mode is set to HTTPS, the image is uploaded and registered on the local PC.
    • If Upload Mode is set to NFS, the image is uploaded and registered on the NFS server.

    View the Status column to check whether the image is successfully registered.

  5. 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.
Translation
Download
Updated: 2019-07-01

Document ID: EDOC1100021785

Views: 47704

Downloads: 102

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