dissect.target.loaders.proxmox
¶
Module Contents¶
Classes¶
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
. Thestorage_id
maps to a storage configuration in/etc/pve/storage.cfg
. Thevolume_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 specificpath
.- Parameters:
path – The target path to check.
- Returns:
True
if thepath
can be loaded by aLoader
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.