summaryrefslogtreecommitdiffstats
path: root/recipes-extended/libvirt
Commit message (Collapse)AuthorAgeFilesLines
* libvirt: cleanup: remove old RRECOMMENDSBruce Ashfield2013-10-181-4/+1
| | | | | | | | All of the old RRECOMMENDS are confirmed to be handled via PACKAGECONFIG, so we can clean up the recipe and remove commented out reference to the old values. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: Fix wrong depend for libxlYang Shi2013-10-181-1/+1
| | | | | | | | xen is not the right dependency for --with-libxl/--without-libxl, replace it to libxl. Signed-off-by: Yang Shi <yang.shi@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: Try to fix selinux/securityfs mount handling in LXCBogdan Purcareata2013-10-107-0/+622
| | | | | | | | | | | | | | | | | | The current behavior for libvirt containers is to configure a set of "basic" mounts in the new container environment by default. Some of these mounts, such as securityfs or selinux, might not have kernel support on all running platforms. The added patchset implements proper handling for this case and makes some additional cleanups and refactoring. The patchset is taken from the upstream libvirt mailing list. Please refer to: https://www.redhat.com/archives/libvir-list/2013-October/msg00270.html Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: don't mount securityfs or selinux if userns enabledMark Asselstine2013-10-034-0/+250
| | | | | | | | | | | | | | | | | | | | | | commit 6807238d87fd [Ensure securityfs is mounted readonly in container] from upstream libvirt requires securityfs to be mounted, always. Failing to use a kernel without SECURITYFS support results in the following error when you attempt to start a lxc guest: error : lxcContainerMountBasicFS:807 : Failed to mkdir securityfs: No such file or directory Input/output error Here we apply an upstream fix for this which allows you to use userns support instead of SECURITYFS, by using <idmap> in your guest config. A similar situation exists for SELINUX so here we are bringing in 2 more upstream commits, the first for context and the second, which like the securityfs patch, doesn't force selinux to be mounted if userns is used. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Cc: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: uprev to 1.1.2Bruce Ashfield2013-09-062-183/+2
| | | | | | | | | | | 1.1.2 is available and fixes a number of issues with 1.1.1 (segfaults and more). Since 1.1.1 has been available for a while, with no significant issues reported, I'm also removing the fallback 1.0.3 and 1.1.1 recipes with this update. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: fix overly aggresive packagingBruce Ashfield2013-08-161-1/+1
| | | | | | | During the 1.1.1 uprev, a debug change of overly aggressive packaging was left in place. The restores the previous packaging divisions. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: move python PACKAGECONFIG into main recipeBruce Ashfield2013-08-152-5/+4
| | | | | | | | | | | | | The libvirt-python.inc manipulation of PACKAGECONFIG meant that the default configuration options of the libvirt recipe never fired, since the variable had an assignment and the lazy set of the configuration values never applied to the build. Moving the python PACKAGE_CONFIG options into the main recipe, and ensuring that PACKAGE_CONFIG_${PN} is used for libvirt-python means that most builds will now use the default configuration. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: update to 1.1.1Bruce Ashfield2013-08-152-0/+307
| | | | | | | | | | | | | Updating to the 1.1.1 libvirt release. Changes from the 1.0.3 recipe include a fix/workaround for the: ../src/.libs/libvirt.so: undefined reference to `virNetTLSInit' That is seen on some machines. The current fix is to explicilty link against the library which provides the definition. A smarter fix via libtool may be possible, but was elusive at the time of writing this patch. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: fix python script's improper pathsMark Asselstine2013-08-122-0/+57
| | | | | | | | | | | libvirt generates several python scripts using its python/generator.py script. This uses the PYTHON variable, which in our case will be a full path to the sysroot that will not exist on the target. For this we are patching libvirt to allow for (but not require) TARGET_PYTHON to be defined and used when generating these python scripts. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: make ebtables a PACKAGECONFIGMark Asselstine2013-06-281-3/+7
| | | | | | | | | | | This is a bit ugly since ebtables isn't controlled via --with/--without-PACKAGE but we can achieve the same result using the cached path variable. Since there are no static hooks into ebtables it doesn't get picked up via the automatic RDEPENDS so we also ensure that we add the RDEPENDS explicitly here. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: use 4 fields for PACKAGECONFIG[]Joe Slater2013-06-281-18/+20
| | | | | | | | | | | | | As per the PACKAGECONFIG documentation "You can omit any argument you like but must retain the separating commas". If we do not retain the separating commas, we might get parsing errors, or, worse, we will think we depend on many items that we do not enable. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: fix libvirtd crash if path part of URI is missingThomas Tai2013-06-282-2/+42
| | | | | | | | | | | | | | | | | | | | If the user forgets to include the path portion of the URI, instead of receiving an error message, libvirtd crashes. So for example attempting to make this call will cause libvirtd to fall over. virsh -c qemu+ssh://root@my.host.com list (forgetting the trailing /system after the host name) The reason for the crash is that libvirtd is trying to output an error message with a uninitialized variable. This problem is already fixed in the upstream so applying this fix to our tree allows this issue to be avoided. Signed-off-by: Thomas Tai <thomas.tai@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: switch to use volatile system for directory creation in /var/runMark Asselstine2013-06-281-0/+21
| | | | | | | | | | | | | | libvirt relies on its Makefile's install rules to create several directories in /var/run/libvirt. The use of ALLOW_EMPTY_ allows these to be included in the RPM, however, they are cleared out at boot by the volatile system. This causes issues since the libvirt runtime does not check for the existence of these directories prior to attempting to create files in them, resulting in errors. Here we add to the volatiles allowing the required directories to be created at boot or when the volatiles are updated. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: use libexecdir instead of hard code pathTing Liu2013-06-181-2/+2
| | | | | Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: move libvirt-guests.sh to /etc/init.dJoe Slater2013-05-301-1/+5
| | | | | | | | | | The script does not seem to meet the definition of what should go into /usr/libexec and is a superset of a normal "service" script, so we move it to /etc/init.d. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: Enable selinux if selinux is availableLei Yang2013-05-301-2/+2
| | | | | | | Enable selinux when "DISTRO_FEATURES" contains selinux Signed-off-by: Lei Yang <lei.yang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: add patch to fix thread safety in lxc callbackBogdan Purcareata2013-05-242-0/+64
| | | | | | | | | | Patch has been submitted upstream (22 mar 2013) after the release of Libvirt 1.0.3 (5 mar 2013). Updated to work against libvirt 1.0.3. Please see http://www.redhat.com/archives/libvir-list/2013-March/msg01353.html for original patch. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.net> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: add RDEPENDS on gettext-runtimeJoe Slater2013-05-211-1/+5
| | | | | | | | The libvirt-guests script needs gettext.sh which is in the gettext-runtime package. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: fix warning of sysctl.d/libvirtd.confOlivia Yin2013-05-151-1/+2
| | | | | | | | | | | | | | | | | | | WARNING: QA Issue: libvirt: Files/directories were installed but not shipped /usr/lib /usr/lib/sysctl.d /usr/lib/sysctl.d/libvirtd.conf $(DESTDIR)$(prefix)/lib is hardcoded in libvirt Makefile due to following reason that is stated in the daemon/Makefile.in of libvirt. # Use $(prefix)/lib rather than $(libdir), since man sysctl.d insists on # /usr/lib/sysctl.d/ even when libdir is /usr/lib64 @WITH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@install-sysctl: @WITH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@ $(MKDIR_P) $(DESTDIR)$(prefix)/lib/sysctl.d @WI TH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@ $(INSTALL_DATA) $(srcdir)/libvirtd.sysctl \ @WITH_LIBVIRTD_TRUE@@WITH_SYSCTL_TRUE@ $(DESTDIR)$(prefix)/lib/sysctl.d/libvirtd.conf Signed-off-by: Olivia Yin <hong-hua.yin@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* fix libvirt-python build problemYao Zhao2013-05-033-81/+13
| | | | | | | | | | | | | | | | | | | | | | | | The current libvirt's config.log: configure:65065: checking for python configure:65083: found /usr/bin/python configure:65095: result: /usr/bin/python configure:65116: checking for python version configure:65123: result: 2.7 configure:65137: checking for python platform configure:65144: result: linux2 configure:65170: checking for python script directory configure:65206: result: ${prefix}/lib/python2.7/dist-packages configure:65215: checking for python extension module directory configure:65251: result: ${exec_prefix}/lib/python2.7/dist-packages so it will use host python which may quite different with target python. remove python_incdir.patch and inherit pythonnative. use PACKAGECONFIG instead of EXTRA_OECONF. enable python in full PACKAGECONFIG. Signed-off-by: Yao Zhao <yao.zhao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: Changed python bindings install locationMihai Prica2013-04-182-8/+11
| | | | | | | | | The libvirt-python files were installed to dist-packages and this is not part of sys.path in yocto so they were not available to python. Changed this to site-packages. Signed-off-by: Mihai Prica <mihai.prica@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: use pkgconfig to control udevBruce Ashfield2013-04-181-2/+3
| | | | | | | | | | | | | | To ensure that libvirt doesn't rely on detection of udev in the environment or sysroot we can add a PACKAGECONFIG option to control both the enablement of udev support, and ensure that libpciaccess is added as a dependency, otherwise configure detects issues such as this: | checking for UDEV... yes | configure: error: You must install the pciaccess module to build with udev | Configure failed. The contents of all config.log files follows to aid debugging Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: package .debug and .a files in lock-driverTing Liu2013-04-061-3/+3
| | | | | | | | | | | | Fix ERROR: QA Issue: non -staticdev package contains static .a library: libvirt path '.../packages-split/libvirt/usr/lib/libvirt/lock-driver/lockd.a' ERROR: QA Issue: non debug package contains .debug directory: libvirt path .../packages-split/libvirt/usr/lib/libvirt/lock-driver/.debug/lockd.so ERROR: QA run found fatal errors. Please consider fixing them. ERROR: Function failed: do_package_qa Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: add dtrace pkgconfig optionBruce Ashfield2013-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the host machine has dtrace, or systemtap development libraries installed, libvirt will detect their headers and enable dtrace probe support. But since we don't have a dependency on dtrace, the build will fail with: | compilation terminated. | In file included from ./internal.h:297:0, | from util/bitmap.h:27, | from util/bitmap.c:33: | ./libvirt_probes.h:9:21: fatal error: sys/sdt.h: No such file or directory There are three problems: - a host contamination issue - dtrace/probes being automatically enabled - a lack of integrated systemtap/dtrace solution Fixing any of the above will make the problem go away, to fix currently broken builds, we can fix the problem by adding dtrace as a PACKAGECONFIG option, and leaving it disabled. This change doesn't add a dtrace/systemtap dependency to the config entry, since they haven't been confirmed at this point. In the future, we should either fix the host contamination or do a full systemtap/dtrae integration, but for now, simply disabling it is the best choice. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: upgrade to 1.0.3Olivia Yin2013-03-181-2/+2
| | | | | Signed-off-by: Olivia Yin <hong-hua.yin@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* Changed libvirt dependency to netcat-openbsd to match meta-networkingDavid Nyström2013-01-181-1/+1
| | | | Signed-off-by: David Nyström <david.nystrom@enea.com>
* Removed old version of libvirtDavid Nyström2012-12-071-118/+0
| | | | | Signed-off-by: David Nyström <david.nystrom@enea.com> Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* Updated libvirt to 1.0.0, added more details to packageconfigDavid Nyström2012-12-071-0/+141
| | | | | Signed-off-by: David Nyström <david.nystrom@enea.com> Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* libvirt: fixed virsh network problemMihai Prica2012-11-261-0/+1
| | | | | | | | | | Virsh uses dnsmasq for its default bridged network. The dnsmasq daemon is configured to starts on all public interfaces. Modified the config file of the libvirtd daemon to stop the existing dnsmasq daemon to enable virsh to work properly. Signed-off-by: Mihai Prica <mihai.prica@intel.com> Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
* libvirt: updated to work for other hypervisorsMihai Prica2012-11-264-47/+91
| | | | | | | | * the package can now be customized using PACKAGECONFIG * fixed to use target include files for python Signed-off-by: Mihai Prica <mihai.prica@intel.com> Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
* libvirt: upgrade to 0.10.2Mihai Prica2012-11-261-4/+7
| | | | | Signed-off-by: Mihai Prica <mihai.prica@intel.com> Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
* libvirt: Use CACHED_CONFIGUREVARS for ac_cv configure vars.Raymond Danks2012-06-271-2/+3
| | | | Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
* libvirt: Initial package creation.Raymond Danks2012-06-215-0/+645
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>