As a DevOps engineer, use the kubectl command to review available VM resources and provision a stand-alone Linux or Windows VM in a namespace on a Supervisor. If the VM includes a PCI device configured for vGPU, after you create and boot the VM in your vSphere IaaS control plane environment, you can install the NVIDIA vGPU graphics driver to enable GPU operations.
Prerequisites
- Create a namespace and assign storage policies to it. See Create and Configure a vSphere Namespace on the Supervisor.
- Create a content library and associate it with the namespace. See Creating and Managing Content Libraries for Stand-Alone VMs in vSphere IaaS Control Plane.
- If a content library is protected by a security policy, all library items must be complaint. If the protected library includes a mix of compliant and non-compliant items, the kubectl get virtualmachineimages command fails to present VM images to the DevOps engineers.
- If you plan to deploy VMs with vGPU devices, you must have access to images with the boot mode set to EFI, such as CentOS.
- Associate default or custom VM classes with a namespace. See Working with VM Classes in vSphere IaaS Control Plane.
If you plan to use NVIDIA vGPU or other PCI devices for your VMs, you must follow additional requirements. For information, see Deploying a VM with PCI Devices in vSphere IaaS Control Plane.
For information about VM operator and supported fields, see Concepts of VM Service and https://vm-operator.readthedocs.io/en/stable/ref/api/v1alpha2/.
View VM Resources Available on a Namespace in vSphere IaaS Control Plane
As a DevOps engineer, verify that you can access VM resources on your namespace, and view VM classes and VM templates available in your environment. You can also list storage classes and other items you might need to self-service a VM.
Procedure
Deploy a Virtual Machine in vSphere IaaS Control Plane
As a DevOps engineer, provision a VM and its guest OS in a declarative manner by writing VM deployment specifications in a Kubernetes YAML file.
Prerequisites
If you use NVIDIA vGPU or other PCI devices for your VMs, see Deploying a VM with PCI Devices in vSphere IaaS Control Plane.