parentVApp (vim.ManagedEntity)
You can use virtual machine properties which can be used to populate hostvars
for the given virtual machine in a VMware dynamic inventory plugin.
This section describes settings for the runtime capabilities of the virtual machine.
Indicates whether or not a virtual machine supports snapshot operations.
Indicates whether or not a virtual machine supports multiple snapshots. This value is not set when the virtual machine is unavailable, for instance, when it is being created or deleted.
Indicates whether or not a virtual machine supports snapshot config.
Indicates whether or not a virtual machine supports snapshot operations in poweredOff
state.
Indicates whether or not a virtual machine supports memory snapshots.
Indicates whether or not a virtual machine supports reverting to a snapshot.
Indicates whether or not a virtual machine supports quiesced snapshots.
Indicates whether or not snapshots can be disabled.
Indicates whether or not the snapshot tree can be locked.
Indicates whether console preferences can be set for the virtual machine.
Indicates whether CPU feature requirements masks can be set for the virtual machine.
Indicates whether or not a virtual machine supports ACPI S1 settings management.
Indicates whether or not the virtual machine supports setting the screen resolution of the console window.
Supports tools auto-update.
Supports virtual machine NPIV WWN.
Supports assigning NPIV WWN to virtual machines that do not have RDM disks.
Indicates whether the NPIV disabling operation is supported on the virtual machine.
Indicates whether the update of NPIV WWNs are supported on the virtual machine.
Flag indicating whether the virtual machine has a configurable (swapfile placement policy).
Indicates whether asking tools to sync time with the host is supported.
Indicates whether or not the use of nested page table hardware support can be explicitly set.
Indicates whether resource settings for disks can be applied to the virtual machine.
Indicates whether boot options can be configured for the virtual machine.
Indicates whether automatic boot retry can be configured for the virtual machine.
Flag indicating whether the video RAM size of the virtual machine can be configured.
Indicates whether or not the virtual machine supports setting the display topology of the console window.
Indicates whether record and replay functionality is supported on the virtual machine.
Indicates that change tracking is supported for virtual disks of the virtual machine. However, even if change tracking is supported, it might not be available for all disks of the virtual machine. For example, passthru raw disk mappings or disks backed by any Ver1BackingInfo cannot be tracked.
Indicates whether multiple virtual cores per socket is supported on the virtual machine.
Indicates that host based replication is supported on the virtual machine. However, even if host based replication is supported, it might not be available for all disk types. For example, passthru raw disk mappings can not be replicated.
Indicates whether or not guest autolock is supported on the virtual machine.
Indicates whether memoryReservationLockedToMax (bool, optional) may be set to true for the virtual machine.
Indicates whether the featureRequirement feature is supported.
Indicates whether a monitor type change is supported while the virtual machine is in the poweredOn
state.
Indicates whether the virtual machine supports the Flex-SE (space-efficent, sparse) format for virtual disks.
Indicates whether the virtual machine supports nested hardware-assisted virtualization.
Indicates whether the virtual machine supports virtualized CPU performance counters.
This section describes the configuration settings of the virtual machine, including the name and UUID. This property is set when a virtual machine is created or when the reconfigVM
method is called. The virtual machine configuration is not guaranteed to be available. For example, the configuration information would be unavailable if the server is unable to access the virtual machine files on disk, and is often also unavailable during the initial phases of virtual machine creation.
The changeVersion is a unique identifier for a given version of the configuration. Each change to the configuration updates this value. This is typically implemented as an ever increasing count or a time-stamp. However, a client should always treat this as an opaque string.
Last time a virtual machine’s configuration was modified.
Display name of the virtual machine. Any / (slash), (backslash), character used in this name element is escaped. Similarly, any % (percent) character used in this name element is escaped, unless it is used to start an escape sequence. A slash is escaped as %2F or %2f. A backslash is escaped as %5C or %5c, and a percent is escaped as %25.
This is the full name of the guest operating system for the virtual machine. For example: Windows 2000 Professional. See alternateGuestName (str).
The version string for the virtual machine.
128-bit SMBIOS UUID of a virtual machine represented as a hexadecimal string in “12345678-abcd-1234-cdef-123456789abc” format.
VirtualCenter-specific 128-bit UUID of a virtual machine, represented as a hexademical string. This identifier is used by VirtualCenter to uniquely identify all virtual machine instances, including those that may share the same SMBIOS UUID.
A 64-bit node WWN (World Wide Name).
A 64-bit port WWN (World Wide Name).
The source that provides/generates the assigned WWNs.
The NPIV node WWNs to be extended from the original list of WWN numbers.
The NPIV port WWNs to be extended from the original list of WWN numbers.
This property is used to enable or disable the NPIV capability on a desired virtual machine on a temporary basis.
This property is used to check whether the NPIV can be enabled on the Virtual machine with non-rdm disks in the configuration, so this is potentially not enabling npiv on vmfs disks. Also this property is used to check whether RDM is required to generate WWNs for a virtual machine.
Hash incorporating the virtual machine’s config file location and the UUID of the host assigned to run the virtual machine.
Flag indicating whether or not a virtual machine is a template.
Guest operating system configured on a virtual machine.
Used as display name for the operating system if guestId isotherorother-64. See guestFullName (str).
Description for the virtual machine.
Information about the files associated with a virtual machine. This information does not include files for specific virtual disks or snapshots.
Configuration of VMware Tools running in the guest operating system.
Additional flags for a virtual machine.
Legacy console viewer preferences when doing power operations.
Configuration of default power operations.
Processor, memory, and virtual devices for a virtual machine.
Resource limits for CPU.
Resource limits for memory.
The latency-sensitivity of the virtual machine.
Whether memory can be added while the virtual machine is running.
Whether virtual processors can be added while the virtual machine is running.
Whether virtual processors can be removed while the virtual machine is running.
The maximum amount of memory, in MB, than can be added to a running virtual machine.
Memory, in MB that can be added to a running virtual machine.
Affinity settings for CPU.
Affinity settings for memory.
Resource limits for network.
Additional configuration information for the virtual machine.
Specifies CPU feature compatibility masks that override the defaults from the GuestOsDescriptor
of the virtual machine’s guest OS.
Enumerates the set of datastores that the virtual machine is stored on, as well as the URL identification for each of these.
Virtual machine swapfile placement policy.
Configuration options for the boot behavior of the virtual machine.
Fault tolerance settings for the virtual machine.
vApp meta-data for the virtual machine.
Indicates whether user-configured virtual asserts will be triggered during virtual machine replay.
Indicates whether changed block tracking for the virtual machine’s disks is active.
Information about firmware type for the virtual machine.
Indicates the maximum number of active remote display connections that the virtual machine will support.
Indicates whether the guest operating system will logout any active sessions whenever there are no remote display connections open to the virtual machine.
Specifies that the virtual machine is managed by a VC Extension.
If set true, memory resource reservation for the virtual machine will always be equal to the virtual machine’s memory size; increases in memory size will be rejected when a corresponding reservation increase is not possible.
Set of values to be used only to perform admission control when determining if a host has sufficient resources for the virtual machine to power on.
Indicates whether the virtual machine is configured to use nested hardware-assisted virtualization.
Indicates whether the virtual machine have virtual CPU performance counters enabled.
Configuration of scheduled hardware upgrades and result from last attempt to run scheduled hardware upgrade.
Specifies the total vFlash resource reservation for the vFlash caches associated with the virtual machine’s virtual disks, in bytes.
Detailed information about the files that comprise the virtual machine.
A list of files that makes up the configuration of the virtual machine (excluding the .vmx file, since that file is represented in the FileInfo). These are relative paths from the configuration directory. A slash is always used as a separator. This list will typically include the NVRAM file, but could also include other meta-data files.
A list of files stored in the virtual machine’s log directory. These are relative paths from the logDirectory
. A slash is always used as a separator.
Files making up each virtual disk.
Files of each snapshot.
The swapfile specific to the virtual machine, if any. This is a complete datastore path, not a relative path.
Detailed information about the files that comprise the virtual machine.
Information about all the files that constitute the virtual machine including configuration files, disks, swap file, suspend file, log files, core files, memory file and so on.
Layout of each virtual disk attached to the virtual machine. For a virtual machine with snaphots, this property gives only those disks that are attached to it at the current point of running.
Layout of each snapshot of the virtual machine.
Time when values in this structure were last updated.
Storage space used by the virtual machine, split by datastore.
Storage space used by the virtual machine on all datastores that it is located on. Total storage space committed to the virtual machine across all datastores is simply an aggregate of the property committed
Time when values in this structure were last updated.
The current virtual machine’s environment browser object. This contains information on all the configurations that can be used on the virtual machine. This is identical to the environment browser on the ComputeResource to which the virtual machine belongs.
DatastoreBrowser to browse datastores that are available on this entity.
The current resource pool that specifies resource allocation for the virtual machine. This property is set when a virtual machine is created or associated with a different resource pool. Returns null if the virtual machine is a template or the session has no access to the resource pool.
Basic information about a resource pool.
Runtime information about a resource pool.
The ComputeResource to which this set of one or more nested resource pools belong.
The set of child resource pools.
The set of virtual machines associated with this resource pool.
Configuration of this resource pool.
The resource configuration of all direct children (VirtualMachine and ResourcePool) of this resource group.
Reference to the parent vApp.
Parent of this entity. This value is null for the root object and for (VirtualMachine) objects that are part of a (VirtualApp).
Custom field values.
General health of this managed entity.
The configStatus indicates whether or not the system has detected a configuration issue involving this entity. For example, it might have detected a duplicate IP address or MAC address, or a host in a cluster might be out of compliance.property
.
Current configuration issues that have been detected for this entity.
Access rights the current session has to this entity.
List of permissions defined for this entity.
Name of this entity, unique relative to its parent. Any / (slash), (backslash), character used in this name element will be escaped. Similarly, any % (percent) character used in this name element will be escaped, unless it is used to start an escape sequence. A slash is escaped as %2F or %2f. A backslash is escaped as %5C or %5c, and a percent is escaped as %25.
List of operations that are disabled, given the current runtime state of the entity. For example, a power-on operation always fails if a virtual machine is already powered on.
The set of recent tasks operating on this managed entity. A task in this list could be in one of the four states: pending, running, success or error.
A set of alarm states for alarms that apply to this managed entity.
A set of alarm states for alarms triggered by this entity or by its descendants.
Whether alarm actions are enabled for this entity. True if enabled; false otherwise.
The set of tags associated with this managed entity. Experimental. Subject to change.
The resource configuration for a virtual machine.
Reference to the entity with this resource specification: either a VirtualMachine or a ResourcePool.
The changeVersion is a unique identifier for a given version of the configuration. Each change to the configuration will update this value. This is typically implemented as an ever increasing count or a time-stamp.
Timestamp when the resources were last modified. This is ignored when the object is used to update a configuration.
Resource allocation for CPU.
Resource allocation for memory.
Execution state and history for the virtual machine.
Per-device runtime info. This array will be empty if the host software does not provide runtime info for any of the device types currently in use by the virtual machine.
The host that is responsible for running a virtual machine. This property is null if the virtual machine is not running and is not assigned to run on a particular host.
Indicates whether or not the virtual machine is available for management.
The current power state of the virtual machine.
The fault tolerance state of the virtual machine.
The vSphere HA protection state for a virtual machine. Property is unset if vSphere HA is not enabled.
Flag to indicate whether or not the VMware Tools installer is mounted as a CD-ROM.
The timestamp when the virtual machine was most recently suspended. This property is updated every time the virtual machine is suspended.
The timestamp when the virtual machine was most recently powered on. This property is updated when the virtual machine is powered on from the poweredOff state, and is cleared when the virtual machine is powered off. This property is not updated when a virtual machine is resumed from a suspended state.
The total time the virtual machine has been suspended since it was initially powered on. This time excludes the current period, if the virtual machine is currently suspended. This property is updated when the virtual machine resumes, and is reset to zero when the virtual machine is powered off.
The current question, if any, that is blocking the virtual machine’s execution.
The amount of memory resource (in bytes) that will be used by the virtual machine above its guest memory requirements. This value is set if and only if the virtual machine is registered on a host that supports memory resource allocation features. For powered off VMs, this is the minimum overhead required to power on the VM on the registered host. For powered on VMs, this is the current overhead reservation, a value which is almost always larger than the minimum overhead, and which grows with time.
Current upper-bound on CPU usage. The upper-bound is based on the host the virtual machine is current running on, as well as limits configured on the virtual machine itself or any parent resource pool. Valid while the virtual machine is running.
Current upper-bound on memory usage. The upper-bound is based on memory configuration of the virtual machine, as well as limits configured on the virtual machine itself or any parent resource pool. Valid while the virtual machine is running.
Number of active MKS connections to the virtual machine.
Record / replay state of the virtual machine.
For a powered off virtual machine, indicates whether the virtual machine’s last shutdown was an orderly power off or not. Unset if the virtual machine is running or suspended.
If set, indicates the reason the virtual machine needs a secondary.
This property indicates whether the guest has gone into one of the s1, s2 or s3 standby modes. False indicates the guest is awake.
For a powered-on or suspended virtual machine in a cluster with Enhanced VMotion Compatibility (EVC) enabled, this identifies the least-featured EVC mode (among those for the appropriate CPU vendor) that could admit the virtual machine. This property will be unset if the virtual machine is powered off or is not in an EVC cluster. This property may be used as a general indicator of the CPU feature baseline currently in use by the virtual machine. However, the virtual machine may be suppressing some of the features present in the CPU feature baseline of the indicated mode, either explicitly (in the virtual machine’s configured cpuFeatureMask
) or implicitly (in the default masks for the GuestOsDescriptor
appropriate for the virtual machine’s configured guest OS).
Whether any disk of the virtual machine requires consolidation. This can happen for example when a snapshot is deleted but its associated disk is not committed back to the base disk.
These requirements must have equivalent host capabilities featureCapability
in order to power on.
These requirements must have equivalent host capabilities featureCapability
in order to power on, resume, or migrate to the host.
The masks applied to an individual virtual machine as a result of its configuration.
Specifies the total allocated vFlash resource for the vFlash caches associated with VM’s VMDKs when VM is powered on, in bytes.
Information about VMware Tools and about the virtual machine from the perspective of VMware Tools. Information about the guest operating system is available in VirtualCenter. Guest operating system information reflects the last known state of the virtual machine. For powered on machines, this is current information. For powered off machines, this is the last recorded state before the virtual machine was powered off.
Current status of VMware Tools in the guest operating system, if known.
Current version status of VMware Tools in the guest operating system, if known.
Current version status of VMware Tools in the guest operating system, if known.
Current running status of VMware Tools in the guest operating system, if known.
Current version of VMware Tools, if known.
Guest operating system identifier (short name), if known.
Guest operating system family, if known.
See guestFullName (str).
Hostname of the guest operating system, if known.
Primary IP address assigned to the guest operating system, if known.
Guest information about network adapters, if known.
Guest information about IP networking stack, if known.
Guest information about disks. You can obtain Linux guest disk information for the following file system types only: Ext2, Ext3, Ext4, ReiserFS, ZFS, NTFS, VFAT, UFS, PCFS, HFS, and MS-DOS.
Guest screen resolution info, if known.
Operation mode of guest operating system.
Application heartbeat status.
Application state. If vSphere HA is enabled and the vm is configured for Application Monitoring and this field’s value is appStateNeedReset
then HA will attempt immediately reset the virtual machine. There are some system conditions which may delay the immediate reset. The immediate reset will be performed as soon as allowed by vSphere HA and ESX. If during these conditions the value is changed to appStateOk
the reset will be cancelled.
Guest Operations availability. If true, the vitrual machine is ready to process guest operations.
Interactive Guest Operations availability. If true, the virtual machine is ready to process guest operations as the user interacting with the guest desktop.
A list of namespaces and their corresponding generation numbers. Only namespaces with non-zero maxSizeEventsFromGuest
are guaranteed to be present here.
Basic information about the virtual machine.
Reference to the virtual machine managed object.
Runtime and state information of a running virtual machine. Most of this information is also available when a virtual machine is powered off. In that case, it contains information from the last run, if available.
Guest operating system and VMware Tools information.
Basic configuration information about the virtual machine. This information is not available when the virtual machine is unavailable, for instance, when it is being created or deleted.
Storage information of the virtual machine.
A set of statistics that are typically updated with near real-time regularity.
Overall alarm status on this node.
Custom field values.
A collection of references to the subset of datastore objects in the datacenter that is used by the virtual machine.
Specific information about the datastore.
Global properties of the datastore.
Hosts attached to this datastore.
Virtual machines stored on this datastore.
DatastoreBrowser used to browse this datastore.
Capabilities of this datastore.
Configuration of storage I/O resource management for the datastore. Currently VMware only support storage I/O resource management on VMFS volumes of a datastore. This configuration may not be available if the datastore is not accessible from any host, or if the datastore does not have VMFS volume.
A collection of references to the subset of network objects in the datacenter that is used by the virtual machine.
Name of this network.
Properties of a network.
Hosts attached to this network.
Virtual machines using this network.
Current snapshot and tree. The property is valid if snapshots have been created for the virtual machine.
Current snapshot of the virtual machineThis property is set by calling Snapshot.revert
or VirtualMachine.createSnapshot
. This property will be empty when the working snapshot is at the root of the snapshot tree.
Data for the entire set of snapshots for one virtual machine.
The roots of all snapshot trees for the virtual machine.
Information about the configuration of the virtual machine when this snapshot was taken. The datastore paths for the virtual machine disks point to the head of the disk chain that represents the disk at this given snapshot.
All snapshots for which this snapshot is the parent.
The guest heartbeat.
See also
The GitHub Page of pyVmomi
The issue tracker for the pyVmomi project
The GitHub Page of vSphere Automation SDK for Python
The issue tracker for vSphere Automation SDK for Python
An introduction to playbooks
Using Vault in playbooks
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/scenario_guides/vmware_scenarios/vmware_inventory_vm_attributes.html