From: Matthias Bolte Date: Wed, 1 Jun 2011 08:36:39 +0000 (+0200) Subject: openvz: Set virtType to openvz in openvzLoadDomains X-Git-Tag: CVE-2011-2178~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d173c12fe01bbc8892f93beaaa9c1ee4da3ff28f;p=thirdparty%2Flibvirt.git openvz: Set virtType to openvz in openvzLoadDomains Otherwise virsh dumpxml will report instead of the expected . --- diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index 7c76e6ba5e..9ce92dc690 100644 --- a/src/openvz/openvz_conf.c +++ b/src/openvz/openvz_conf.c @@ -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);