dissect.target.loaders.proxmox

Module Contents

Classes

ProxmoxLoader

Loader for Proxmox VM configuration files.

Attributes

dissect.target.loaders.proxmox.RE_VOLUME_ID
class dissect.target.loaders.proxmox.ProxmoxLoader(path: pathlib.Path, **kwargs)

Bases: dissect.target.loader.Loader

Loader for Proxmox VM configuration files.

Proxmox uses volume identifiers in the format of storage_id:volume_id. The storage_id maps to a storage configuration in /etc/pve/storage.cfg. The volume_id is the name of the volume within that configuration.

This loader currently does not support parsing the storage configuration, so it will attempt to open the volume directly from the same directory as the configuration file, or from /dev/pve/ (default LVM config). If the volume is not found, it will log a warning.

base_dir
static detect(path: pathlib.Path) bool

Detects wether this Loader class can load this specific path.

Parameters:

path – The target path to check.

Returns:

True if the path can be loaded by a Loader instance. False otherwise.

map(target: dissect.target.target.Target) None

Maps the loaded path into a Target.

Parameters:

target – The target that we’re mapping into.