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:
Navigate to the host configuration page. Click the Storage tab, and then select the storage pool with alias isopool. Click Upload Files.
In the dialog box that opens, click the Select file/Drag the file here area to open the dialog box for selecting a file.
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. |
Click Start to start uploading the selected file. The progress bar display the file uploading progress.
After the file uploading is complete, verify that the uploaded file is displayed on the file list of storage pool isopool.
Navigate to the host configuration page.
Click Add VM. The Add VM dialog box opens.
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.
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.
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.
Click OK to add the VM.
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.
This example describes the procedure for installing Windows Server 2008 on the VM.
ARM hosts do not support Windows operating systems. |
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.
On the VM configuration page, click Start to start the VM.
After the VM is started, click Console to launch the remote console window and verify that the VM has started to install the OS.
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.
Select the driver to install. In this example, select the SCSI controller to install the high-speed disk driver.
Check the high-speed disk information displayed on the OS installation screen after the driver installation is complete.
Log in to the VM through the VM console after the guest OS installation on the VM is complete.
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.
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.
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.
ARM hosts do not support Windows operating systems. |
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.
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. |
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.
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.
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.
Execute the mount command to mount the driver to the Linux VM and access the Linux directory of the proxy tool.
Execute the ./CAS_tools_install.sh command to install the tool.
On the VM configuration page, click the Summary tab and verity that the tool is operating correctly.
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:
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.
Configure the parameters required by CAStools, and then click Apply.