Create and Onboard VMs
Based on the resources you already have, create a VM, create one from a template, clone an existing VM, import VM files, or register a VM. These methods use different resource sources. Choose the method that meets your current goal; you do not need to perform them in sequence.
Choose a Creation or Onboarding Method
| Available Resource or Goal | Task |
|---|---|
| Deploy a VM from an image, or create a blank VM without an image, and customize its hardware configuration. | Create a Virtual Machine |
| Use an existing VM template to deploy a new VM. | Create a VM from a Template |
| Copy an existing VM environment to create a new VM. | Clone a Virtual Machine |
| Upload existing OVF VM files to import a VM. | Import a Virtual Machine |
| Bring a VM under platform management by using available VM configuration files and corresponding disk data already in data storage. | Register a Virtual Machine |
Create a Virtual Machine
Create a virtual machine with or without an image, and customize its CPU, memory, storage, and network settings to meet workload requirements.
Before you begin
- The platform provides VM-related system parameters that control default platform behavior. Before creating a VM, you can customize VM-related system parameters to control default VM characteristics.
- The platform provides default capacity and feature settings for VMs, such as CPU, Memory, Disk 1, NIC 1, Other Hardware, and Advanced Settings. You can quickly create a VM by using the default platform settings.
- You can create a VM without an OS image. You can add the disk 1 by creating a new disk. A CD/DVD drive is optional.
- You can create a VM without a NIC and configure NICs and their features later.
- To enable VM or disk encryption, make sure that an available default key provider is configured. If you use the Native Key Provider, back it up first. For more information, see Encryption Keys and How Encryption Works.
Procedure
What to do next
Some VM settings depend on VMTools. After the VM is created, install VMTools so that these settings can take effect. For more information about VMTools, see Install and Use VMTools.
Create a VM from a Template
Create identical virtual machines from a template. You can customize hardware, software, and configuration for the new virtual machines based on the template.
Before you begin
- The platform provides VM-related system parameters that globally control default platform behavior. Before creating virtual machines, you can customize VM-related system parameters to control default VM features.
- Before you create virtual machines from a template, make sure that a VM template already exists in the platform. For template preparation and management, see VM Template Management.
- To enable VM or disk encryption, make sure that an available default key provider is configured. If you use the Native Key Provider, back it up first. For more information, see Encryption Keys and How Encryption Works.
Procedure
- In the navigation pane, choose .
- Right-click a valid parent resource of the virtual machine, such as a cluster or host, and choose New Virtual Machine.
- In the Select VM Creation Type dialog, select From Template.
- Click Next.
- In the Select Virtual Machine Template dialog, select the target template and click OK.
-
In the Create Virtual Machine from Template dialog, configure the following options:
- Review the configuration and click OK.
What to do next
Some virtual machine configurations depend on VMTools. After the virtual machine is created, install VMTools to make these configurations take effect. For more information about VMTools, see Install and Use VMTools.
Clone a Virtual Machine
To reuse the configuration of an existing virtual machine, clone the VM. ZSphere provides full-VM cloning and supports Full Clone and Instant Full Clone.
Before you begin
- The source VM must be running, paused, or shut down.Note:When cloning a running VM, only data that has been written to disk when the clone task starts is cloned. Real-time cached data is not included.
- To ensure data integrity, pause or shut down high-I/O VMs before cloning them.
- Detach shared disks from the source VM. VMs with shared disks cannot be cloned.
- The cluster where the VM resides has sufficient compute, storage, and network resources.
- If the source VM is encrypted or you plan to encrypt the cloned VM, make sure that the default key provider is available.
Procedure
What to do next
The clone operation copies the VM configuration, installed applications, credentials, and similar data to the cloned VM. It does not automatically copy all associated settings. Configure additional settings for the cloned VM as needed. For example, you can manually assign the same tags as the source VM.
If the source VM has a console password configured, restart the cloned VM to make the password take effect.
Import a Virtual Machine
Upload an OVF file to quickly import a VM and support migration from third-party virtualization platforms.
Before you begin
- The platform provides VM-related system parameters that control default platform behavior. Before creating a VM, you can customize VM-related system parameters to control default VM characteristics.
- To enable VM or disk encryption, make sure that an available default key provider is configured. If you use the Native Key Provider, back it up first. For more information, see Encryption Keys and How Encryption Works.
Procedure
What to do next
Some VM settings depend on VMTools. After the VM is created, install VMTools so that these settings can take effect. For more information about VMTools, see Install and Use VMTools.
Register a Virtual Machine
Register a VM for centralized management using its existing configuration file and disk data. You can also connect an independent clone of the storage to the original platform and register the VMs in that copy.
Before you begin
- Make sure an Advanced Edition license is installed on the platform and is valid.
- Only SAN storage, local storage, and NFS storage support VM registration. Before registration, the data storage must be connected to the platform and attached to the corresponding cluster. The cluster must contain an available host that can access the data storage. When connecting a cloned SAN storage copy, select Register as the storage addition method. For details, see Add SAN Storage.
- The data storage contains a usable configuration file generated by the source platform's VM Metadata feature. Before cloning storage, confirm that the VM Metadata system parameter is enabled on the source platform and that the required configuration files have been generated. If the parameter is currently disabled, enable it first. The configuration files and disk data in the copy must be complete, consistent, and independent of the data being used by the original VM.
- All disks of the VM are located on the current data storage. A VM with any disk located on another data storage cannot be registered.
- For a VM with TPM, make sure the corresponding key provider is configured on the platform before registration.
Procedure
Results
After registration, find the registered VM in the VM list and verify its name, location, and disk information.
