dissect.target.plugins.os.unix.esxi._os¶
Module Contents¶
Classes¶
ESXi OS plugin |
Functions¶
Generate a UUID for an NFS volume based on the host and path. |
Attributes¶
- dissect.target.plugins.os.unix.esxi._os.HAS_ENVELOPE = True¶
- class dissect.target.plugins.os.unix.esxi._os.ESXiPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugins.os.unix._os.UnixPluginESXi OS plugin
ESXi partitioning varies between versions. Generally, specific partition numbers have special meaning.
- The following is a list of known partition numbers:
1: EFI boot 5: BOOTBANK1 6: BOOTBANK2 7: vmkcore (ESXi 6), OSDATA / LOCKER (ESXi 7) 8: store (ESXi 6), HDD VMFS datastore (ESXi 7) 9: vmkcore (ESXi 6)
- classmethod detect(target: dissect.target.target.Target) dissect.target.filesystem.Filesystem | None¶
Provide detection of this OSPlugin on a given filesystem.
- Parameters:
fs –
Filesystemto detect the OS on.- Returns:
The root filesystem / sysvol when found.
- classmethod create(target: dissect.target.target.Target, sysvol: dissect.target.filesystem.Filesystem) Self¶
Initiate this OSPlugin with the given target and detected filesystem.
- Parameters:
target – The
Targetobject.sysvol – The filesystem that was detected in the
detect()function.
- Returns:
An instantiated version of the OSPlugin.
- hostname() str¶
Return the target’s hostname.
- Returns:
The hostname as string.
- domain() str | None¶
- ips() list[str]¶
Return the IP addresses configured in the target.
- Returns:
The IPs as list.
- version() str | None¶
Return the target’s OS version.
- Returns:
The OS version as string.
- os() str¶
Return a slug of the target’s OS name.
- Returns:
A slug of the OS name, e.g. ‘windows’ or ‘linux’.
- dissect.target.plugins.os.unix.esxi._os.parse_boot_cfg(fh: TextIO) dict[str, str]¶
- dissect.target.plugins.os.unix.esxi._os.nfs_volume_uuid(host: str, path: str) str¶
Generate a UUID for an NFS volume based on the host and path.
This is used to create a unique identifier for NFS volumes in ESXi.