Create a VM

Upload an OS image file for guest OS installation

You can mount an OS image file to a VM by using the Virtual Drive function of the VM console. Before mounting an OS image file to a VM, you must first upload the OS image file to the system, either through the local method or through a third-party software product.

To upload an OS image file to the system:

  1. Navigate to the host configuration page. Click the Storage tab, and then select the storage pool with alias isopool. Click Upload Files.

  1. In the dialog box that opens, click the Select file/Drag the file here area to open the dialog box for selecting a file.

  1. Select the .iso file to upload.

The .iso file name cannot contain Chinese characters, spaces, or special characters such as brackets. Use a simple name for the file as a best practice.

 

  1. Click Start to start uploading the selected file. The progress bar display the file uploading progress.

  1. After the file uploading is complete, verify that the uploaded file is displayed on the file list of storage pool isopool.

Add a VM

  1. Navigate to the host configuration page.

  1. Click Add VM. The Add VM dialog box opens.

  1. On the Basic Info tab, set the alias and description for the VM, select the OS and OS version installed on the VM, and then click Next.

  1. On the Hardware tab, configure hardware resources for the VM. You can use the default settings or customize the settings according to the service requirements.

  1. Click the Search icon next to the CD-ROM field. In the Select Storage dialog box that opens, select storage pool isopool, select the desired OS image file (.iso file), and then click OK.

  1. Click OK to add the VM.

  1. Click the VM tab on the host configuration page and verify that the newly added VM is displayed on the VM list in Shutdown state.

Install a guest OS on the VM

This example describes the procedure for installing Windows Server 2008 on the VM.

ARM hosts do not support Windows operating systems.

 

Mount the guest OS image file to the VM and start guest OS installation on the VM

  1. Navigate to the VM configuration page. Click Modify. In the dialog box that opens, select CD-ROM from left navigation pane. In the right pane, click Connect, select the drive and the OS image file on the drive, and then click OK to mount the OS image file to the VM.

  1. On the VM configuration page, click Start to start the VM.

  1. After the VM is started, click Console to launch the remote console window and verify that the VM has started to install the OS.

 

Load a hard disk driver

  1. Because a high-speed disk is used for OS installation and Windows does not have the required driver to identify the disk, you will be prompted to load the required driver in the OS installation process. Click Load Driver. The dialog box for loading a driver opens. Make sure the automatic Virtio driver loading function is enabled in the system.

 

  1. Select the driver to install. In this example, select the SCSI controller to install the high-speed disk driver.

 

  1. Check the high-speed disk information displayed on the OS installation screen after the driver installation is complete.

 

Remove the CD-ROM driver and floppy driver after OS installation

  1. Log in to the VM through the VM console after the guest OS installation on the VM is complete.

  1. Unmount the ISO image file from the VM. To do so, click Modify on the VM configuration page. In the dialog box that opens, select CD-ROM from left navigation pane. In the right pane, click Disconnect to disconnect the mounted driver from the VM. After the driver is disconnected, the value in the Source Path field is cleared.

  1. Delete the floppy driver device that was automatically created during the Virtio driver installation for the high-speed disk. To do so, click Delete Hardware on the CD-ROM menu screen of the VM modification page.

Install CAStools on the VM

For H3C CAS to manage and monitor a VM such as obtaining CPU and memory usage information of a VM, you must install the VM proxy tool CAStools on the VM.

The VM proxy tool supports both Windows and Linux operating systems. For more information, see H3C CAS Software and Hardware Compatibility.

Install the VM proxy tool on a Windows VM

ARM hosts do not support Windows operating systems.

 

  1. Mount the .iso installation file of the tool to the Windows VM. To do so, select CD-ROM on the VM modification page. In the right pane, click Connect. In the Select File dialog box that opens, select Install CAStools and click OK. The Source Path field displays the path of the mounted .iso installation file.

  1. Use the mounted installation file to install the tool. To do so, log in to the VM through the VM console. Double-click the virtual drive to which the tool is mounted, and then follow the installation wizard to install the tool.

After installing the VM proxy tool on a 34- or 64-bit Windows VISTA or Windows Server 2008 OS, you must reboot the OS before you can use the Virtio driver.

 

  1. On the VM configuration page, click the Summary tab to check the state and version of the installed VM proxy tool. On the Performance Monitor tab, verify that the system can monitor the resource usage such as the memory usage and partition usage of the VM correctly.

  1. Disconnect the driver mounted to the VM for VM proxy tool installation. To do so, click Modify on the VM configuration page. In the dialog box that opens, select CD-ROM from left navigation pane, and then click Disconnect in the right pane.

Install CAStools on a Linux VM

  1. Mount the .iso installation file of the tool to the VM. To do so, select CD-ROM on the VM modification page. In the right pane, click Connect. In the Select File dialog box that opens, select Install CAStools and click OK.

  1. Execute the mount command to mount the driver to the Linux VM and access the Linux directory of the proxy tool.

 

  1. Execute the ./CAS_tools_install.sh command to install the tool.

  1. On the VM configuration page, click the Summary tab and verity that the tool is operating correctly.

Assign an IP address to the VM

After installing a guest OS on a VM in CVM, you must manually configure IP address settings for the VM.

To configure IP address settings for a VM:

  1. On the VM configuration page, click Modify. In the dialog box that opens, select Network from the left navigation pane. In the IPv4 Info field, select IP-MAC Binding or Manually Specify. In this example, select Manually Specify to configure the IP address settings through CAStools.

  1. Configure the parameters required by CAStools, and then click Apply.

  1. Verify that the IP address of the VM is correctly displayed on the network information page of the VM. Execute the ipconfig command to check the IP address information of the VM.