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