forked from pool/libvirt
794d4df5d5
implementation does not support libxl in Xen 4.2. - Update to libvirt 0.10.2 - network: define new API virNetworkUpdate - add support for QEmu sandbox support - blockjob: add virDomainBlockCommit - node_memory: Define the APIs to get/set memory parameters - list: Define new API virConnectListAllSecrets - list: Define new API virConnectListAllNWFilter - list: Define new API virConnectListAllNodeDevices - list: Define new API virConnectListAllInterfaces - list: Define new API virConnectListAllNetworks - list: Define new API virStoragePoolListAllVolumes - list: Define new API virStorageListAllStoragePools - parallels: add support of containers to the driver - Add PMSUSPENDED life cycle event - Add per-guest S3/S4 state configuration - qemu: Support for Block Device IO Limits OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=227
36 lines
1.2 KiB
Diff
36 lines
1.2 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-0.10.2/src/qemu/qemu_conf.c
|
|
===================================================================
|
|
--- libvirt-0.10.2.orig/src/qemu/qemu_conf.c
|
|
+++ libvirt-0.10.2/src/qemu/qemu_conf.c
|
|
@@ -350,9 +350,7 @@ int qemudLoadDriverConfig(struct qemud_d
|
|
return -1;
|
|
}
|
|
if (virGetUserID(user, &driver->user) < 0) {
|
|
- VIR_FREE(user);
|
|
- virConfFree(conf);
|
|
- return -1;
|
|
+ VIR_WARN("User %s does not exist! Continuing...", user);
|
|
}
|
|
VIR_FREE(user);
|
|
|
|
@@ -365,9 +363,7 @@ int qemudLoadDriverConfig(struct qemud_d
|
|
return -1;
|
|
}
|
|
if (virGetGroupID(group, &driver->group) < 0) {
|
|
- VIR_FREE(group);
|
|
- virConfFree(conf);
|
|
- return -1;
|
|
+ VIR_WARN("Group %s does not exist! Continuing...", group);
|
|
}
|
|
VIR_FREE(group);
|
|
|