mirror of https://gitee.com/openkylin/libvirt.git
openvz: Set virtType to openvz in openvzLoadDomains
Otherwise virsh dumpxml will report <domain type='qemu'> instead of the expected <domain type='openvz'>.
This commit is contained in:
parent
a74575e374
commit
d173c12fe0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue