]> 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:32:37 +0000 (20:32 -0400)
commit55540339e2b100d6bbab99e4e94094091120a610
treea1c1d10313051715d0d56210505ec963c819dfb7
parent7d9739f26d15de6400cc1720ada7c6856233287b
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