mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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)
|
if (VIR_ALLOC(dom->def) < 0)
|
||||||
goto no_memory;
|
goto no_memory;
|
||||||
|
|
||||||
|
dom->def->virtType = VIR_DOMAIN_VIRT_OPENVZ;
|
||||||
|
|
||||||
if (STREQ(status, "stopped")) {
|
if (STREQ(status, "stopped")) {
|
||||||
virDomainObjSetState(dom, VIR_DOMAIN_SHUTOFF,
|
virDomainObjSetState(dom, VIR_DOMAIN_SHUTOFF,
|
||||||
VIR_DOMAIN_SHUTOFF_UNKNOWN);
|
VIR_DOMAIN_SHUTOFF_UNKNOWN);
|
||||||
|
Loading…
Reference in New Issue
Block a user