forked from pool/libvirt
326f0f1ce2
- Introduce virDomainMigrate*CompressionCache APIs - Introduce virDomainGetJobStats API - Add basic support for VDI images - Introduce API virNodeDeviceLookupSCSIHostByWWN - Various locking improvements - Many incremental improvements and bug fixes, see http://libvirt.org/news.html - Drop upstream patches: a6b8bae5-python-generator-fix1.patch, 25ea8e47-python-generator-fix2.patch, 567779e5-libxl-default-disk-backend.patch - Fix path to qemu-bridge-helper in libvirt-qemu apparmor profile Modified install-apparmor-profiles.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=252
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
Allow qemu driver (and hence libvirtd) to load when qemu
|
|
user:group does not exist. The kvm package, which may not
|
|
exist on a xen host, creates qemu user:group.
|
|
|
|
A better (future) solution would be to build the libvirtd
|
|
drivers as loadable modules instead of built-in to the
|
|
daemon. Then the qemu driver would only be loaded when needed,
|
|
which would never be the case on a xen-only configuration.
|
|
|
|
Index: libvirt-1.0.3/src/qemu/qemu_conf.c
|
|
===================================================================
|
|
--- libvirt-1.0.3.orig/src/qemu/qemu_conf.c
|
|
+++ libvirt-1.0.3/src/qemu/qemu_conf.c
|
|
@@ -439,15 +439,15 @@ int virQEMUDriverConfigLoadFile(virQEMUD
|
|
|
|
p = virConfGetValue(conf, "user");
|
|
CHECK_TYPE("user", VIR_CONF_STRING);
|
|
- if (p && p->str &&
|
|
- virGetUserID(p->str, &cfg->user) < 0)
|
|
- goto cleanup;
|
|
+ if (p && p->str)
|
|
+ if (virGetUserID(p->str, &cfg->user) < 0)
|
|
+ VIR_WARN("User %s does not exist! Continuing...", p->str);
|
|
|
|
p = virConfGetValue(conf, "group");
|
|
CHECK_TYPE("group", VIR_CONF_STRING);
|
|
- if (p && p->str &&
|
|
- virGetGroupID(p->str, &cfg->group) < 0)
|
|
- goto cleanup;
|
|
+ if (p && p->str)
|
|
+ if (virGetGroupID(p->str, &cfg->group) < 0)
|
|
+ VIR_WARN("Group %s does not exist! Continuing...", p->str);
|
|
|
|
GET_VALUE_BOOL("dynamic_ownership", cfg->dynamicOwnership);
|
|
|