]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain: conf: Don't validate VM ostype/arch at daemon startup
authorCole Robinson <crobinso@redhat.com>
Fri, 17 Apr 2015 20:37:57 +0000 (16:37 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 00:23:35 +0000 (20:23 -0400)
commitdc7cbdde6a494efcebf4f0de25dd7d85c8a05f99
treeeb0919e349451d836cf08e3764ca1109fc947498
parente8fb46f7e9ce1a74695456464ebd124f1d103bc9
domain: conf: Don't validate VM ostype/arch at daemon startup

When parsing XML, we validate the passed ostype + arch combo against
the detected hypervisor capabilities. This has led to the following
problem:

- Define x86 qemu guest
- qemu is inadvertently removed from the host
- libvirtd is restarted. fails to parse VM config since arch is removed
- 'virsh list --all' is now empty, user is wondering where their VMs went

Add a new internal flag VIR_DOMAIN_DEF_PARSE_SKIP_OSTYPE_CHECKS. Use
it when loading VM and snapshot configs from disk.

https://bugzilla.redhat.com/show_bug.cgi?id=1043572
(cherry picked from commit f1a89a8b6d1a1097e41a171a13b1984b06e8ab3e)
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/snapshot_conf.c