You can edit the properties of a virtual machine, including the virtual machine name and description, hardware and network settings, guest OS settings, and so on.
Change the General Properties of a Virtual Machine
You can review and change the name, description, and other general properties of a virtual machine (VM).
Prerequisites
- If you want to change properties such as Operating System, Operating System Family, or Boot Firmware, power off the VM.
- If you want to change the EFI Secure Boot setting, power off or suspend the VM.
Procedure
- On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore and from the left panel, select Virtual Machines.
- Click to view the list in a card view and, optionally, arrange the list of virtual machines from the Sort by drop-down menu.
- In the card of the virtual machine you want to edit, click Details.
- The list of properties that you can view or edit under General expands by default.
Option Action Virtual Machine Name Edit the name of the VM. You can edit this property while the VM is powered on.
Computer Name Edit the computer and host name set in the guest operating system that identifies the VM on a network. This field is restricted to 15 characters because of a Windows OS limitation on computer names. You can edit this property while the VM is powered on.
Description Edit the optional description of the VM. You can edit this property while the VM is powered on.
Operating System Family Select an operating system family from the drop-down menu. You can edit this property while the VM is powered off. In addition, you cannot edit this property if an operating system is already present on the VM.
Operating System Select an operating system from the drop-down menu. You can edit this property while the VM is powered off. In addition, you cannot edit this property if an operating system is already present on the VM.
Boot Firmware Select a boot firmware from the drop-down menu. You can edit this property while the VM is powered off.
EFI Secure Boot If you select EFI boot firmware, the EFI Secure Boot toggle appears. To ensure that the VM boots only with components with valid signatures, select this option. You can edit this property while the VM is powered off or in suspended state.
Unified Extensible Firmware Interface (UEFI) secure boot is a security standard that helps ensure that your PC boots using only software that the PC manufacturer trusts.
Boot Delay Specify the time in milliseconds to delay the boot operation. The time between when you power on the VM and when it exits the BIOS and launches the guest operating system software can be short. You can change the boot delay to provide more time.
Enter Boot Setup Select whether to force entry into the BIOS or EFI setup screen the next time the VM boots. After the VM boots, the setting resets to
deactivated
.Failed Boot Recovery If a boot failure occurs, select whether the VM must reboot. Failed Boot Recovery Delay Specify a time in seconds for a VM reboot after a boot failure. Storage Policy Select a storage policy for the VM to use from the drop-down menu. You can edit this property while the VM is powered on.
If you specify a remote datastore as a storage policy, all objects that make up the VM must reside on the same remote datastore.
Virtual Data Center View the name of the virtual data center to which this VM belongs. VMware Tools View whether VMware Tools is installed on the VM. Virtual Hardware Version View the virtual hardware version of the VM. - Click Save once you complete making your changes.
Add a Security Tag to a Virtual Machine
Security tags that you create and assign to virtual machines help you to define NSX edge gateway firewall rules and distributed firewall rules for data center groups with an NSX network provider type.
- Verify that your system administrator has published the Security tag edit right to your organization and that your role includes this right.
- Verify that your role includes the vApp: Edit Properties right.
Starting with VMware Cloud Director 10.3, you can create security groups with a dynamic membership that is based on VM characteristics, such as VM names and VM tags. To include a VM in a dynamic security group, you create security tags to assign to the VM. You use dynamic groups to create distributed firewall rules and edge gateway firewall rules that are applied on a per-VM basis in a data center group networking context.
Procedure
- In the top navigation bar, click Applications and then click the Virtual Machines tab.
- In the card of the virtual machine you want to edit, click Details.
- Click Security Tags and click Add.
- To add an existing security tag to the VM, click the drop-down menu and select a tag.
- To create a new security tag to assign to the VM, enter a value for the tag and click Add tag.
- To save the changes, click Submit.
What to do next
- Create dynamic groups of virtual machines based on the tags that you assigned.
- Use the dynamic groups that you created to add distributed firewall rules to the data center group or to add firewall rules to an NSX edge gateway that is scoped to the data center group. See:
Change the Hardware Properties of a Virtual Machine
You can review and change the hardware properties of a virtual machine (VM).
Prerequisites
- To edit the hard disk settings, verify that the VM is powered off.
- For VMware Cloud Director 10.4.2 and later, if you want to edit the Trusted Platform Module (TPM) settings, verify the following:
- VM is powered off.
- The VM does not have any snapshots.
- A VDC that supports TPM backs the VM.
- The VM firmware is EFI.
- The VM hardware version is version 14 or later.
- The guest OS is compatible with TPM.
For more information on VMs with TPM devices, see Working with Virtual Machines.
Procedure
Change the Advanced Properties of a Virtual Machine
In the Advanced settings, you can configure the resource allocation settings (shares, reservation, and limit) to determine the amount of CPU, memory, and storage resources provided for a virtual machine.
Use the resource allocation settings (shares, reservation, and limit) to determine the amount of CPU, memory, and storage resources provided for a virtual machine.
- Resource Allocation Shares
- Shares specify the relative importance of a virtual machine within a virtual data center. If a virtual machine has twice as many shares of a resource as another virtual machine, it is entitled to consume twice as much of that resource when these two virtual machines are competing for resources. Shares are typically specified as High, Normal, or Low and these values specify share values with a 4:2:1 ratio, respectively. You can also select Custom to assign a specific number of shares (which expresses a proportional weight) to each virtual machine. When you assign shares to a virtual machine, you always specify the priority for that virtual machine relative to other powered-on virtual machines.
- Resource Allocation Reservation
-
Specifies the guaranteed minimum allocation for a virtual machine.
VMware Cloud Director allows you to power on a virtual machine only if there are enough unreserved resources to satisfy the reservation of the virtual machine. The virtual data center guarantees that amount even when its resources are heavily loaded. The reservation is expressed in concrete units (megahertz or megabytes).
For example, assume that you have 2 GHz available and specify a resource allocation reservation of 1 GHz for virtual machine 1 and 1 GHz for virtual machine 2. Now each virtual machine is guaranteed to get 1 GHz if it needs it. However, if virtual machine 1 is using only 500 MHz, virtual machine 2 can use 1.5 GHz.
Reservation defaults to 0. You can specify a reservation if you need to guarantee that the minimum required amounts of CPU or memory are always available to the virtual machine.
- Resource Allocation Limit
-
Specifies an upper bound for CPU and memory resources that can be allocated to a virtual machine. A virtual data center can allocate more than the reservation to a virtual machine, but never allocates more than the limit, even if there are unused resources on the system. The limit is expressed in concrete units (megahertz or megabytes).
CPU and memory resource limits default to unlimited. When the memory limit is unlimited, the amount of memory configured for the virtual machine when it was created becomes its effective limit in most cases.
In most cases, it is not necessary to specify a limit. You might waste idle resources if you specify a limit. The system does not allow a virtual machine to use more resources than the limit, even when the system is underutilized, and idle resources are available. Specify a limit only if you have good reasons for doing so.
Prerequisites
- A reservation pool virtual data center.
- Ensure that a certain amount of memory for a virtual machine is provided by the virtual data center.
- Guarantee that a particular virtual machine is always allocated a higher percentage of the virtual data center resources than other virtual machines.
- Set an upper bound on the resources that can be allocated to a virtual machine.
Procedure
- On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore and from the left panel, select Virtual Machines.
- Click to view the list in a card view and, optionally, arrange the list of virtual machines from the Sort by drop-down menu.
- In the card of the virtual machine you want to edit, click Details.
- Click Advanced and Edit.
- Set the resource allocations shares for the CPU settings by selecting an option from the Priority drop-down menu.
Option Description Low Allocates 500 shares per virtual CPU. Normal Allocates 1000 shares per virtual CPU. High Allocates 2000 shares per virtual CPU. Custom Allows you to assign a specific number of shares by entering the number of shares (which expresses a proportional weight) to each virtual machine. When you assign shares to a virtual machine, you always specify the priority for that virtual machine relative to other powered-on virtual machines.
- Specify the reservation for the CPU settings by entering the reservation in MHz, and optionally, the limit for the CPU settings in MHz.
Option Description Unlimited The default CPU resource option. Maximum Specify an upper bound for CPU resources that can be allocated to a virtual machine in MHz. - Set the resource allocations shares for the memory settings by selecting an option from the Priority drop-down menu.
Option Description Low Allocates 5 shares per megabyte of configured virtual machine memory. Normal Allocates 10 shares per megabyte of configured virtual machine memory. High Allocates 20 shares per megabyte of configured virtual machine memory. Custom Allows you to assign a specific number of shares by entering the number of shares. - Specify the reservation for the memory settings in MB and, optionally, the limit for the memory settings in MB.
Option Description Unlimited The default memory resource option. Maximum Specify an upper bound for memory reservation that can be allocated to a virtual machine. - Click Save.
Change the Guest OS Customization of a Virtual Machine
Guest OS customization on VMware Cloud Director is optional for all platforms. It is required for virtual machines that must join a Windows domain.
Some of the information requested on this menu applies only to Windows platforms. The Guest OS Customization panel includes the information necessary for the virtual machine to join a Windows domain. An organization administrator can specify default values for a domain that Windows guests in that organization can join. Not all Windows virtual machines must join a domain, but in most enterprise installations, a virtual machine that is not a domain member cannot access many of the available network resources.
Prerequisites
- Verify that you are a vApp Author or a role with an equivalent set of rights.
- Guest customization requires the virtual machine to be running VMware Tools.
- Customization of Linux guest operating systems requires that Perl is installed in the guest.
Procedure
- On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore and from the left panel, select Virtual Machines.
- Click to view the list in a card view and, optionally, arrange the list of virtual machines from the Sort by drop-down menu.
- In the card of the virtual machine you want to edit, click Details.
- Click Guest OS Customization to expand the list of guest operating system settings.
Option Description Enable Guest Customization Select this option to enable guest customization. Change SID Select this option to change the Windows Security ID (SID). This option is specific for virtual machines running a Windows guest operating system. The SID is used in some Windows operating systems to uniquely identify systems and users. If you do not select this option, the new virtual machine has the same SID as the virtual machine or template on which it is based. Duplicate SIDs do not cause problems when the computers are part of a domain and only domain user accounts are used. However, if the machines are part of a Workgroup or local user accounts are used, duplicate SIDs can compromise file access controls. For more information, see the documentation for your Microsoft Windows operating system.
Allow local administrator password Select this option to allow setting an administrator password on the guest operating system. - Specify a password for the local administrator.
Leaving the Specify password text box blank generates a password automatically.
- Specify the number of times to allow automatic login.
Entering a value of zero deactivates automatic login as administrator.
Require Administrators to change password on first login Select this option to require administrators to change the password of the guest operating system on the first login. This is recommended for security purposes. Auto generate password Select this option to allow password auto generation. By default, VMware Cloud Director generates a password that contains 8 characters. Note: Starting with version 10.4.2.2, you can change the default length of the automatically generated administrator passwords.- A system administrator must change the
adminPasswordLength
parameter by using the cell management tool. See Configure the Auto Generated Password Lenght for Virtual Machines with Enabled Guest OS Customization. - Reboot the VM.
- Force the recustomization of the VM.
Enable this VM to join a domain You can select this option to join the virtual machine to a Windows domain. You can use the organization's domain or override the organization's domain and enter the domain properties. - Enter the domain name.
- Enter the user name and password.
- Enter the account organizational unit.
Script You can use a customization script to modify the guest operating system of the virtual machine. When you add a customization script to a virtual machine, the script is called only on initial customization and force recustomization. If you set the precustomization command line parameter, the script is called before guest customization begins. If you set the postcustomization command line parameter, the script is called after guest customization finishes. - Click the upload button below the script text box to navigate to a customization script on your local machine.
- Type the customization script directly into the Script file text box.
A customization script that you enter directly into the Script file text box cannot contain more than 1500 characters. For more information, see VMware Knowledge Base article https://kb.vmware.com/kb/1026614.
- Specify a password for the local administrator.
- Click Save once you complete making your changes.
Understanding Guest Customization
When you customize your guest operating system, there are some settings and options you should know about.
Enable Guest Customization Check Box
This check box is found on the Guest OS customization tab on the virtual machine Properties page. The goal of guest customization is to configure based on the options selected in the Properties page. If this check box is selected, guest customization and recustomization is performed when required.
This process is required for all guest customization features, such as the computer name, network settings, setting and expiring the administrator and root passwords, SID change for Windows Operating systems, and so on, to work. This option should be selected for Power on and Force re-customization to work.
If the check box is selected, and the virtual machine's configuration parameters in VMware Cloud Director are out of sync with the settings in the guest OS, the Profile tab on the virtual machines Properties page displays that the settings out of sync with the guest OS and the virtual machine needs guest customization.
Guest Customization Behavior for vApps and Virtual Machines
The check boxes are deselected.
- Enable guest customization
- In Windows guest OSs, Change SID
- Password reset
These are the default values of guest customization settings:
- The Enable guest customization check box is the same as the source virtual machine in your catalog.
- For Windows guest virtual machines, Change SID is the same as the source virtual machine in your catalog.
- The password reset setting is same as the source virtual machine in your catalog.
If blank virtual machines, which are pending guest OS installation, are added to a vApp, the Enable guest customization check box is deselected by default because these virtual machines are not yet ready for customization.
After you install the guest OS and VMware Tools, you can power off the virtual machines, stop vApp, and select the Enable guest customization check box and start the vApp and virtual machines to perform guest customization.
If the virtual machine name and network settings are updated on a virtual machine that has been customized, the next time you power on the virtual machine, it is recustomized, which resynchronizes the guest virtual machine with VMware Cloud Director.
Power on and Force Recustomization of a Virtual Machine
You can power on a virtual machine and force the recustomization of a virtual machine.
If the settings in a virtual machine are not synchronized with VMware Cloud Director or an attempt to perform a guest customization has failed, you can force the recustomization of the virtual machine.
Ensure that the application that is running in the virtual machine supports a recustomization. To mitigate the risk of damaging your virtual machine, create a snapshot before you recustomize it.
Prerequisites
- You must be an organization administrator.
- The virtual machine must be powered off.
Procedure
- On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore and from the left panel, select Virtual Machines.
- Click to view the list in a card view and, optionally, arrange the list of virtual machines from the Sort by drop-down menu.
- From the Power menu of the virtual machine you want to power on and customize, select Power On and Force Recustomization.
Results
The virtual machine is recustomized and powered on.
Edit the Guest Properties of a Virtual Machine
If a VM includes user-configurable properties, you can review and modify those properties.
Prerequisites
Verify that the VM is powered off and that its guest properties are user-configurable.
Procedure
- On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore and from the left panel, select Virtual Machines.
- Click to view the list in a card view and, optionally, arrange the list of virtual machines from the Sort by drop-down menu.
- In the card of the virtual machine you want to edit, click Details.
- Click Guest Properties and click Edit.
- Modify the guest properties for the VM and click OK.