mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-05 16:33:50 +00:00
libxl: Fix driver reload
On reload, the libxl driver calls virDomainObjListLoadAllConfigs to load all configs from /etc/libvirt/libxl/ but incorrectly passes 'true' for the liveStatus parameter, resulting in error messages such as libvirtd[21053]: XML error: unexpected root element <domain>, expecting <domstatus> libvirtd[21053]: Failed to load config for domain 'sles15sp3' Fix by not requesting live status when re-reading the persistent VM config files. Signed-off-by: Jim Fehlig <jfehlig@suse.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b75a16ae5e
commit
65fab900c5
@ -821,7 +821,7 @@ libxlStateReload(void)
|
|||||||
virDomainObjListLoadAllConfigs(libxl_driver->domains,
|
virDomainObjListLoadAllConfigs(libxl_driver->domains,
|
||||||
cfg->configDir,
|
cfg->configDir,
|
||||||
cfg->autostartDir,
|
cfg->autostartDir,
|
||||||
true,
|
false,
|
||||||
libxl_driver->xmlopt,
|
libxl_driver->xmlopt,
|
||||||
NULL, libxl_driver);
|
NULL, libxl_driver);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user