Creating Virtual Machines/Virtual Machine Groups
Create a virtual machine (VirtualMachineInstance) using an image, and schedule the virtual machine to physical nodes with Kubevirt components installed and virtualization enabled.
You can create a single virtual machine through Create Virtual Machine, or you can quickly create multiple virtual machines (VirtualMachineInstance) with the same configuration by using Create Virtual Machine Group (virtualMachinePool).
TOC
PrerequisitesNotesCreate Virtual MachineProcedureRelated OperationsCreate Virtual Machine GroupProcedurePrerequisites
-
Before creating a virtual machine using an image, please confirm the following with the platform administrator:
-
The target cluster is a self-built cluster, and the Kubevirt components have been deployed.
-
The target node must be a physical node with virtualization enabled.
-
A virtual machine image has been added to the platform.
-
-
If you need to use the physical GPU passthrough feature of the virtual machine, please contact the platform administrator for the following configuration:
-
Obtain GPU passthrough environment preparation plan and prepare the necessary environment.
-
Prepare the required physical GPU and enable the related features for physical GPU passthrough for the virtual machine.
-
Notes
When using Windows virtual machines, only logins via the username/password set in the virtual machine image are supported. Please contact the platform administrator to obtain this information in advance.
Create Virtual Machine
Procedure
Note: The following content presents an example of creating a virtual machine using a form, and you may also switch to YAML format for the operation.
-
Enter Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machines.
-
Click Create Virtual Machine.
-
In the Basic Information area, fill in the name and display name of the virtual machine and set tags or annotations.
-
Set the machine type and choose a virtual machine image.
-
In the Storage area, refer to the following instructions to configure the relevant information.
-
In the Network area, refer to the following instructions to configure the relevant information.
-
In the Initialization Settings area, refer to the following instructions to configure the relevant information.
-
(Optional) In the Advanced Configuration area, refer to the following instructions to configure the relevant information.
-
After confirming that the information is correct, click Create.
Wait for the virtual machine to change from Creating to Running status.
Related Operations
You can click the â‹® icon on the right side of the list page or the Actions in the upper right corner of the details page to update or delete the virtual machine as needed. For other related operations like resetting passwords or updating keys, please refer to Manage Virtual Machines.
Note:
-
Updates can only be performed when the virtual machine is in Abnormal, Unknown, or Stopped status.
-
Updates do not support displaying disks that were separately attached or created after the virtual machine was created.
-
By default, Start Immediately is disabled during updates; you can enable it as needed.
Create Virtual Machine Group
Procedure
Note: The following content presents an example of creating a virtual machine group using a form, and you may also switch to YAML format for the operation.
-
Enter Container Platform.
-
In the left navigation bar, click Virtualization > Virtual Machine Groups.
-
Click Create Virtual Machine Group.
-
In the Basic Information area, refer to the following instructions to configure the information for the virtual machine group.
-
In the Virtual Machine Template area, refer to Create Virtual Machine to configure unified tags, annotations, specifications, images, storage, and other information for all the virtual machines in the group.
-
After confirming that the information is correct, click Create.
Tip: After successful creation, you can go to the Virtual Machines list page to view the information of the virtual machines created via the virtual machine group.