Without this creating the domain fails:
gi._glib.GError: Failed to create domain: internal error missing domain type attribute
---
examples/config-demo.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/examples/config-demo.py b/examples/config-demo.py
index 016f9bb..aa2493e 100644
--- a/examples/config-demo.py
+++ b/examples/config-demo.py
@@ -8,6 +8,7 @@ domain.set_memory(1024*1024)
domain.set_vcpus(2)
domain.set_lifecycle(LibvirtGConfig.DomainLifecycleEvent.ON_POWEROFF,
LibvirtGConfig.DomainLifecycleAction.DESTROY)
+domain.set_virt_type(LibvirtGConfig.DomainVirtType.KVM)
clock = LibvirtGConfig.DomainClock.new()
clock.set_offset(LibvirtGConfig.DomainClockOffset.UTC)
--
1.7.10.4