ducky.config module¶
VM configuration management
-
class
ducky.config.MachineConfig(*args, **kwargs)[source]¶ Bases:
ConfigParser.ConfigParserContains configuration of the whole VM, and provides methods for parsing, inspection and extending this configuration.
-
add_device(klass, driver, **kwargs)[source]¶ Add another device to the configuration.
Parameters: - klass (string) – class of the device (
klassoption). - driver (string) – device driver - dot-separated path to class (
driveroption). - kwargs – all keyword arguments will be added to the section as device options.
- klass (string) – class of the device (
-
add_storage(driver, sid, filepath=None)[source]¶ Add another storage to the configuration.
Parameters: - driver (string) – storage’s driver - dot-separated path to class (
driveroption). - sid (int) – storage’s SID (
sidoptions). - filepath (string) – path to backend file, if there’s any (
filepathoption).
- driver (string) – storage’s driver - dot-separated path to class (
-