]> xenbits.xensource.com Git - 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>
Mon, 20 Apr 2015 20:36:35 +0000 (16:36 -0400)
commitf1a89a8b6d1a1097e41a171a13b1984b06e8ab3e
treea7459ee66d3356216c1a0188ab5062a7c853b698
parent3700c065cde30ff3f70cc3a029279c79c2337a54
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
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/snapshot_conf.c