Initializing the VM Service
ou need to initialize the VM service before using it. This section describes how to initialize the VM service.
Prerequisites
- A storage pool has been created for the system, and it can provide the file system space required by the virtualization service.
- The imported license file contains SmartContainer.
- The storage resources to be created by initializing the VM service does not exist. For details, see Procedure.
If some resources to be created already exist and you do not want to delete them, confirm the resources that need to be created and manually create them for the corresponding controllers. After the creation is complete, you do not need to initialize the resources.
Context
- The storage system has activated VM services by default.
- If the VM service is disabled, log in to the CLI and run the change vm_service general status=Running command in developer mode to activate the VM service.
After you run the change vm_service general status=Running command to enable VM services, the storage system will automatically restart. Perform subsequent operations after the storage system successfully restarts.
Procedure
- Choose
VM.
- Click Initialize.
The Initialize VM Service dialog box is displayed.
The screenshot is for reference only and the actual GUI may vary.
- Set VM service parameters.
Table 6-1 describes related parameters.
Table 6-1 VM service parametersParameter
Description
Value
Owning Storage Pool
Storage pool for VM file system of the VM service.
NOTE:If the storage system does not have a storage pool, click Create to create one.
[Example]
Storagepool001
VM File System
File system space of the VM service, which is used to store the VM image file and VM instances. The file system space of VM file systems of different controllers need to be set separately.
[Value range]
512 KB to 256 TB
[Example]
410 GB
NOTE:- Set the value after evaluating the image file size and the system disk capacity of the VM to be created.
For example: If the image file size is 10 GB and the VM housing four system disks with each of 100 GB needs to be created on controller 0A, set the value of 0A to 410 GB.
- If you need to modify the value, perform capacity expansion on the thick LUN corresponding to the controller and run CLI command scan virtual_machine block owner_container_id=?enlarge_vmfs_enabled=yes to rescan the VM block device generated by the LUN. For LUN names of different controllers, see 5.a.
- Set the value after evaluating the image file size and the system disk capacity of the VM to be created.
- Click OK.
A dialog box indicating a high risk is displayed.
- Confirm the information in the dialog box and select I have read and understand the consequences associated with performing this operation. Click OK.The system automatically initializes the storage resources related to the VM service, including:
- Create thick LUN vm_lun_reserved_container0 and set its owning controller to 0A.
Create thick LUN vm_lun_reserved_container1 and set its owing controller to 0B.
- Create LUN groups vm_lg_reserved_container0 and vm_lg_reserved_container1.
- Add LUN vm_lun_reserved_container0 to LUN group vm_lg_reserved_container0.
Add LUN vm_lun_reserved_container1 to LUN group vm_lg_reserved_container1.
- Create hosts vm_host_reserved_container0 and vm_host_reserved_container1.
- Add the vHBA initiator whose WWN starts with 2100 to host vm_host_reserved_container0.
Add the vHBA initiator whose WWN starts with 2101 to host vm_host_reserved_container1.
- Create host groups vm_hg_reserved_container0 and vm_hg_reserved_container1.
- Add host vm_host_reserved_container0 to host group vm_hg_reserved_container0.
Add host vm_host_reserved_container1 to host group vm_hg_reserved_container1.
- Create mapping views vm_mv_reserved_container0 and vm_mv_reserved_container1.
- Add host group vm_hg_reserved_container0 to mapping view vm_mv_reserved_container0.
Add host group vm_hg_reserved_container1 to mapping view vm_mv_reserved_container1.
- Add LUN group vm_lg_reserved_container0 to mapping view vm_mv_reserved_container0.
Add LUN group vm_lg_reserved_container1 to mapping view vm_mv_reserved_container1.
- Scan for VM block devices generated by LUNs.
- Create file systems used by the VM container.
Before performing this operation, check whether the resources (LUNs, LUN groups, hosts, host groups, mapping views, and VM file systems) to be created already exist in the system. If yes, the initialization configuration process will fail. Delete all the resources and try again.
- Create thick LUN vm_lun_reserved_container0 and set its owning controller to 0A.
- Click Close.