Files
deb-python-pyvmomi/docs/vim/vm/GuestInfo.rst
Nicolas Lamirault a962a6ce68 Fix guest os state
According to the code, guest os not running state is : "notRunning"

```python
CreateEnumType("vim.vm.GuestInfo.GuestState", "VirtualMachineGuestState", "vim.version.version1", ["running", "shuttingDown", "resetting", "standby", "notRunning", "unknown"])
```
2017-03-16 10:58:32 +01:00

5.0 KiB

vim.vm.GuestInfo

Information about the guest operating system.Most of this information is collected by VMware Tools. In general, be sure you have VMware Tools installed and that the virtual machine is running when you access this information.

extends

vmodl.DynamicData

Attributes:

toolsStatus (vim.vm.GuestInfo.ToolsStatus, optional):

Current status of VMware Tools in the guest operating system, if known.

toolsVersionStatus (str, optional):

Current version status of VMware Tools in the guest operating system, if known. The set of possible values is described in VirtualMachineToolsVersionStatus for vSphere API 5.0.

toolsVersionStatus2 (str, optional):

Current version status of VMware Tools in the guest operating system, if known. The set of possible values is described in VirtualMachineToolsVersionStatus

toolsRunningStatus (str, optional):

Current running status of VMware Tools in the guest operating system, if known. The set of possible values is described in VirtualMachineToolsRunningStatus

toolsVersion (str, optional):

Current version of VMware Tools, if known.

guestId (str, optional):

Guest operating system identifier (short name), if known.

guestFamily (str, optional):

Guest operating system family, if known.

guestFullName (str, optional):

Guest operating system full name, if known.

hostName (str, optional):

Hostname of the guest operating system, if known.

ipAddress (str, optional):

Primary IP address assigned to the guest operating system, if known.

net ([vim.vm.GuestInfo.NicInfo], optional):

Guest information about network adapters, if known.

ipStack ([vim.vm.GuestInfo.StackInfo], optional):

Guest information about IP networking stack, if known.

disk ([vim.vm.GuestInfo.DiskInfo], optional):

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.

screen (vim.vm.GuestInfo.ScreenInfo, optional):

Guest screen resolution info, if known.

guestState (str):

Operation mode of guest operating system. One of:
  • "running" - Guest is running normally.
  • "shuttingdown" - Guest has a pending shutdown command.
  • "resetting" - Guest has a pending reset command.
  • "standby" - Guest has a pending standby command.
  • "notRunning" - Guest is not running.
  • "unknown" - Guest information is not available.

appHeartbeatStatus (str, optional):

Application heartbeat status. Please see VirtualMachineAppHeartbeatStatusType

appState (str, optional):

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 vm. 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.See GuestInfoAppStateType

guestOperationsReady (bool, optional):

Guest Operations availability. If true, the vitrual machine is ready to process guest operations.

interactiveGuestOperationsReady (bool, optional):

Interactive Guest Operations availability. If true, the vitrual machine is ready to process guest operations as the user interacting with the guest desktop.

generationInfo ([vim.vm.GuestInfo.NamespaceGenerationInfo, privilege: VirtualMachine.Namespace.EventNotify], optional):

A list of namespaces and their corresponding generation numbers. Only namespaces with non-zero maxSizeEventsFromGuest are guaranteed to be present here. Use ListNamespaces to retrieve list of namespaces.