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, *, parsed_path: urllib.parse.ParseResult | None = None, resolve: bool = True, **kwargs)¶
Bases:
dissect.target.loader.LoaderLoader for Proxmox VM configuration files.
Proxmox uses volume identifiers in the format of
storage_id:volume_id. Thestorage_idmaps to a storage configuration in/etc/pve/storage.cfg. Thevolume_idis 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.- static detect(path: pathlib.Path) bool¶
Detects wether this
Loaderclass can load this specificpath.- Parameters:
path – The target path to check.
- Returns:
Trueif thepathcan be loaded by aLoaderinstance.Falseotherwise.
- map(target: dissect.target.target.Target) None¶
Maps the loaded path into a
Target.- Parameters:
target – The target that we’re mapping into.