dissect.hypervisor.descriptor.vbox

Module Contents

Classes

VBox

VirtualBox XML descriptor parser.

Machine

HardDisk

Snapshot

Hardware

Attributes

NS

dissect.hypervisor.descriptor.vbox.NS = '{http://www.virtualbox.org/}'
class dissect.hypervisor.descriptor.vbox.VBox(fh: TextIO)

VirtualBox XML descriptor parser.

Parameters:

fh – A file-like object of the VirtualBox XML descriptor.

machine
__repr__() str
property uuid: uuid.UUID | None

The VM UUID.

property name: str | None

The VM name.

property media: dict[uuid.UUID, HardDisk]

The media (disks) registry.

property hardware: Hardware

The current machine hardware state.

property snapshots: dict[uuid.UUID, Snapshot]

All snapshots.

class dissect.hypervisor.descriptor.vbox.Machine(vbox: VBox, element: xml.etree.ElementTree.Element)
vbox
element
__repr__() str
property uuid: uuid.UUID

The machine UUID.

property name: str

The machine name.

property current_snapshot: uuid.UUID | None

The current snapshot UUID.

property media: dict[uuid.UUID, HardDisk]

The media (disks) registry.

property hardware: Hardware

The machine hardware state.

property snapshots: dict[uuid.UUID, Snapshot]

All snapshots.

property parent: Snapshot | None
class dissect.hypervisor.descriptor.vbox.HardDisk(vbox: VBox, element: xml.etree.ElementTree.Element, parent: HardDisk | None = None)
vbox
element
parent = None
__repr__() str
property uuid: uuid.UUID

The disk UUID.

property location: str

The disk location.

property type: str | None

The disk type.

property format: str

The disk format.

property properties: dict[str, str]

The disk properties.

property is_encrypted: bool

Whether the disk is encrypted.

class dissect.hypervisor.descriptor.vbox.Snapshot(vbox: VBox, element: xml.etree.ElementTree.Element, parent: Snapshot | Machine | None = None)
vbox
element
parent = None
__repr__() str
property uuid: uuid.UUID

The snapshot UUID.

property name: str

The snapshot name.

property ts: datetime.datetime

The snapshot timestamp.

property hardware: Hardware

The snapshot hardware state.

class dissect.hypervisor.descriptor.vbox.Hardware(vbox: VBox, element: xml.etree.ElementTree.Element)
vbox
element
__repr__() str
property disks: list[HardDisk]

All attached hard disks.