]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
openvz: Set virtType to openvz in openvzLoadDomains
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 1 Jun 2011 08:36:39 +0000 (10:36 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 1 Jun 2011 08:36:39 +0000 (10:36 +0200)
Otherwise virsh dumpxml will report <domain type='qemu'> instead
of the expected <domain type='openvz'>.

src/openvz/openvz_conf.c

index 7c76e6ba5ed5eaf653748f02936cef60f5f4c88e..9ce92dc690f570066d9646f46618a4f4bac43369 100644 (file)
@@ -473,6 +473,8 @@ int openvzLoadDomains(struct openvz_driver *driver) {
         if (VIR_ALLOC(dom->def) < 0)
             goto no_memory;
 
+        dom->def->virtType = VIR_DOMAIN_VIRT_OPENVZ;
+
         if (STREQ(status, "stopped")) {
             virDomainObjSetState(dom, VIR_DOMAIN_SHUTOFF,
                                  VIR_DOMAIN_SHUTOFF_UNKNOWN);