| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Signed-off-by: Olivia Yin <r63875@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The libvirt build would fail whenever x11 was in DISTRO_FEATURES and the host
didn't have polkit installed (either no polkit/policykit at all, or just old
policykit).
Ensure that libvirt uses polkit rather than policykit, whether the host has
pkcheck installed or not, and ensure the path is correct per our config.
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
| |
Libvirt contains the functionality to run hooks when before and after
it performs specific operations. Hooks are useful in order to perform
actions on the host that occur outside of the VM. In order to enable
the hooks scripts must exist in a specific directory. This fix adds
the required directory to the file system.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
|
|
|
|
|
|
|
|
| |
libvirt will probe and dynamically add fuse support if detected. This
leads to build inconsistencies and errors due to race conditions.
Explicitly adding fuse as a packageconfig option to ensure that it
is consistently added (or removed).
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
| |
The default PTEST_DIR only works for 32bit.
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
| |
Updating the version of libvirt to 1.2.4. Only small changes are required
to the ptest and python chnages for this new version, but otherwise, all
packaging and build optinos are the same.
Sanity tests show no regressions from 1.2.2.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Poky commit 69b6eaca3d9b635e8a61a0fdbd814b558e91901d [autotools:
Enable separate builddir by default] enforced separate build
directories, which is supported by automake. Make some minor updates
to the recipes and upstream source to allow builds to work with
separated src and build directories.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
| |
This reverts commit df0678b3c9c44aac9703dcf78ceb4fdbe8397f3e.
|
|
|
|
|
|
|
|
|
| |
We add a PACKAGECONFIG[] to deterministically build with
or without libssh2 and add ssh2 to PACKAGECONFIG, so we will
always use it.
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
| |
configure will check for numa support by default, resulting
in indeterminate configuration. We add a PACKAGECONFIG[]
to force behavior.
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
| |
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
| |
Install libvirt test suite and run it as ptest.
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By default dnsmaqs binds to all interfaces, and this causes 2
small issues:
* At boot time, dnsmaqs daemon will start first and binds to virbr
interface, then libvirtd spawns a second dnsmaqs binds to virbr
(in dynamic mode) which binds to virbr:53 proto UDP (but not TCP)
* If some how, libvirtd daemon starts first then dnsmaqs daemon
will fail to start as libvirtd daemon already binds to virbr:53.
This patch tells dnsmasq daemon to leave virbr alone and let
libvirt uses it.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently when libvirt daemon is stared, the libvirt startup
script tries to kill the already running dnsmasq daemons
(e.g. from /etc/init.d/dnsmaqs). Also if
"/etc/init.d/libvirtd start" is invoked more than
one time then this will accidentally kills all the dnsmasq
daemon.
This patch makes sure libvirt startup script to kill only the
dnsmasq that spawned by itself. Also try to avoid killing
dnsmasq if "/etc/init.d/libvirtd start" runs second time.
Signed-off-by: Barton Wensley <Barton.Wensley@windriver.com>
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
| |
To avoid having the default build of libvirt depend on virtual/x11
through polkit and consolekit, check for x11 in DISTRO_FEATURES before
enabling the polkit support in the default PKG_CONFIG.
Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The Xen drivers in libvirt is needed when the build file system image
and kernel are running as dom0. The parts of the kernel needed to run as
dom0 are controlled by DISTRO_FEATURES, and thus there is no need for
the Xen drivers if DISTRO_FEATURES does not contain 'xen'.
Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
| |
It seems that a $ was forgotten in the DISTRO_FEATURE check for selinux.
Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
libvirt is to a large extent licensed under LGPLv2.1 (or later) rather
than GPLv2. From my investigations, there are only some tests and a
couple of files under tools are licensed as GPL. Other than that, files
are generally licensed as LGPL. My recommendation is therefore to set
the default license to LGPLv2.1+, and to add a LICENSE_${PN}-ptest that
is set to LGPLv2.1+ & GPLv2+ if a ptest package is added. This is
preferred to avoid having to specify explicit licenses for every other
package, such as the auto generated libvirt-locale-XX packages.
Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The tasks responsible for compiling and installing the python support
were racing against packaging. As a result, a clean build would not
have anything in libvirt-python, but subsequent builds would.
By moving to _appends, we control the order and always get properly
packaged.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
To work with oe-core master, we need to update the libvirt-python
FILES_* specification to properly pick up and package the support
libraries.
We can also follow the lead of distutils and use a common set of
install arguments for the configuration and install of our nested
libvirt-python support.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
| |
Since python support is separate from the main libvirt build, we
no longer need to trigger configuration options when python
packageconfig support is added, we simply need to add python to the
package depends.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
| |
In 1.2.0, libvirt separated the python components into a separate package.
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
| |
The 1.2.1 libvirt update was pushed before the patches were refreshed,
which results in a patching failure.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
| |
Picking up the latest bugfixes and CVEs via the 1.2.x release of
libvirt.
No external interfaces or functional changes are part of this update.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
libvirt's configure script makes use of pkg-config so we need to inherit
pkgconfig or else we may see an error like
./configure: line 55867: syntax error near unexpected token `AVAHI,'
./configure: line 55867: ` PKG_CHECK_MODULES(AVAHI, avahi-client >= 0.6.0,'
during configure.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Upreving libvirt to v1.2.0 released Dec 2, 2013.
As part of this uprev, existing patches that are part of the 1.2 release have
been dropped, and existing functionality checked for regressions.
From the libvirt release notes:
Features:
Add support for gluster pool (Eric Blake),
Separation of python binding (Daniel P. Berrange),
vbox: add support for 4.3 APIs (Ryota Ozaki)
Documentation:
fix typos in libvirt.h.in (Chen Hanxiao),
Link libvirt-sandbox from apps page (Daniel P. Berrange),
Add docs about audit subsystem logging (Daniel P. Berrange),
virsh: fix doc typos (Nehal J Wani),
Fix typos in various docs (Nehal J Wani),
LXC: add securetty related note in Device nodes (Gao feng),
Fix three minor typos (Yuri Chornoivan),
storage: fix typo in previous patch (Eric Blake),
storage: document gluster pool (Eric Blake),
virDomainReboot: Document that migration might be unsafe (Michal Privoznik),
delete extra character (Wangyufei (A)),
maint: fix comment typos. (Eric Blake),
improve job info details (Eric Blake),
fix a typo in formatnwfilter.html.in (Chen Hanxiao),
Improve cgroups docs to cover systemd integration (Daniel P. Berrange),
fix typos in libvirt.h.in (Chen Hanxiao),
fix virDomainRestoreFlags description bug (Wang Yufei),
grammar fixes (Eric Blake),
add SystemTap to apps using libvirt (Jonathan Lebon),
fix a typo in formatnwfilter (Chen Hanxiao),
caps: Fix function docs for virCapabilitiesAddHostNUMACell (Peter Krempa)
Portability:
tests: fix virpcitest with read-only srcdir (Eric Blake),
tests: guarantee abs_srcdir in all C tests (Eric Blake),
look for numad in /usr/sbin (Jim Fehlig),
build: Don't fail on '<' or '>' with old xmllint (Martin Kletzander),
spec: fix libvirt-docs subpackage on RHEL-6 (Michael Chapman),
Don't depend on syslog.service (Guido Günther),
qemuMonitorJSONGetCPUx86Data: Don't fail on ancient qemus (Michal Privoznik),
build: work around super-old readline.h (Ryota Ozaki),
Fix migration with QEMU 1.6 (Michael Avdienko),
nodeinfo: fix build on non-Linux (Eric Blake)
Bug Fixes:
vbox: handle errors of virDomainHostdevDefAlloc correctly (Ryota Ozaki),
vbox: fix incorrect loop condition in vboxHostDeviceGetXMLDesc (Ryota Ozaki),
Fix memory leak in virNWFilterDefParseXML() (Nehal J Wani),
Fix memory leak in virDomainDefParseXML() (Nehal J Wani),
LXC: Ensure security context is set when mounting images (Daniel P. Berrange),
network: properly update iptables rules during net-update (Laine Stump),
Fix bug in identifying sub-mounts (Daniel P. Berrange),
storage: skip selinux cleanup when fd not available (Eric Blake),
qemu: preserve netdev MAC address during 'domxml-to-native' (Bing Bu Cao),
storage: don't read storage volumes in nonblock mode (Eric Blake),
LXC: don't unmount mounts for shared root (Gao feng),
LXC: fix the problem that libvirt lxc fail to start on latest kernel (Gao feng),
sasl: Fix authentication when using PLAIN mechanism (Christophe Fergeau),
Fix invalid read in virNetSASLSessionClientStep debug log (Christophe Fergeau),
Tie SASL callbacks lifecycle to virNetSessionSASLContext (Christophe Fergeau),
remote: Don't leak priv->tls object on connection failure (Christophe Fergeau),
spec: Don't save/restore running VMs on libvirt-client update (Jiri Denemark),
virsh domxml-from-native to treat SCSI as the bus type for pseries by default (Shivaprasad G Bhat),
Don't start a nested job in qemuMigrationPrepareAny (Ján Tomko),
spec: Don't save/restore running VMs on libvirt-client update (Cole Robinson),
spec: Restrict virt-login-shell usage (Jiri Denemark),
storage: use valid XML for awkward volume names (Eric Blake),
storage: Returns earlier if source adapter of the scsi pool is a HBA (Osier Yang),
libvirt-guests: Run only after libvirtd (Cole Robinson),
Fix off-by-1 in default SELinux MCS range (Daniel P. Berrange),
vbox: fix segfault on virsh dumpxml with the existence of USB filters (Ryota Ozaki),
Add missing 'return 0;' in stub lxcStartFuse() method impl. (Daniel P. Berrange),
Avoid async signal safety problem in glibc's setxid (Daniel P. Berrange),
Don't release spice port twice when no TLS port is available (Ján Tomko),
Properly unref a connection with a close callback (Ján Tomko),
qemu: Call qemuSetupHostdevCGroup later during hotplug (Jiri Denemark),
qemuMonitorIO: Don't use @mon after it's unrefed (Michal Privoznik),
qemuProcessReconnectHelper: Don't create joinable thread (Michal Privoznik),
virDomainEventCallbackListFree: Don't leak @list->callbacks (Michal Privoznik),
networkBuildDhcpDaemonCommandLine: Don't leak @configstr and @configfile (Michal Privoznik),
Disable nwfilter driver when running unprivileged (Ján Tomko),
libxl: Fix Xen 4.4 libxlVmStart logic (Jason Andryuk),
qemu: Check for presence of device and properities when getting CPUID (Peter Krempa),
Fix busy wait loop in LXC container I/O handling (Daniel P. Berrange),
Don't expose 'none' machine type to capabilities (Daniel P. Berrange),
Fix mem leak in virQEMUCapsProbeQMPMachineTypes on OOM (Daniel P. Berrange),
virSecurityLabelDefParseXML: Don't parse label on model='none' (Michal Privoznik),
virsh-domain: Mark --live and --config mutually exclusive in vcpucount (Peter Krempa),
qemu: Fix SCSI hotplug on pseries guests (Vitor de Lima),
pci: properly handle out-of-order SRIOV virtual functions (Laine Stump),
util: use -w flag when calling iptables (Serge Hallyn),
storage: Fix a vol-clone bug on ppc64 (Li Zhang),
qemu: Don't access vm->priv on unlocked domain (Michal Privoznik),
qemu: Avoid double free of VM (Michal Privoznik),
Allow root directory in filesystem source dir schema (Ján Tomko),
qemuMigrationBeginPhase: Check for 'drive-mirror' for NBD (Michal Privoznik),
conf: fix incorrect error log in virCPUDefIsEqual (Chen Hanxiao),
qemuMonitorDispose: Reset lastError (Michal Privoznik),
qemu: clean up migration ports when migration cancelled (Zeng Junliang),
network: fix connections count in case of allocate failure (Laine Stump),
virpcitest: Fix variable arguments using in pci_driver_new (Michal Privoznik),
virpci: Don't error on unbinded devices (Michal Privoznik)
Improvements:
Pull lxcContainerGetSubtree out into shared virfile module (Daniel P. Berrange),
Introduce standard methods for sorting strings with qsort (Daniel P. Berrange),
conf: Export virStorageVolType enum helper functions (Peter Krempa),
sasl: Replace 'restep' label with 'continue' (Christophe Fergeau),
storage: probe qcow2 volumes in gluster pool (Eric Blake),
storage: improve handling of symlinks in gluster (Eric Blake),
storage: improve allocation stats reported on gluster files (Eric Blake),
storage: improve directory support in gluster pool (Eric Blake),
storage: add network-dir as new storage volume type (Eric Blake),
storage: implement rudimentary glusterfs pool refresh (Eric Blake),
storage: initial support for linking with libgfapi (Eric Blake),
storage: expose volume meta-type in XML (Eric Blake),
storage: allow interleave in volume XML (Eric Blake),
maint: next release is 1.2.0 (Eric Blake),
vbox: import vbox_CAPI_v4_3.h from SDK (Ryota Ozaki),
vbox: pull vboxHostDeviceGetXMLDesc out from vboxDomainGetXMLDesc (Ryota Ozaki),
vbox: cleanup vboxAttachUSB (Ryota Ozaki),
lxc: don't do duplicate work when getting pagesize (Chen Hanxiao),
maint: update to latest gnulib (Eric Blake),
python: remove virConnectGetCPUModelNames from globals (Doug Goldstein),
python: remove virConnectGetCPUModelNames from globals (Doug Goldstein),
qemu: Auto-generate controller for hotplugged hostdev (Eric Farman),
qemu: Separate calls based on controller bus type (Eric Farman),
qemu: Rename controller hotplug functions to not be PCI-specific (Eric Farman),
qemu: Add support for virt machine type with virtio-mmio devices on armv7 (Clark Laughlin),
maint: enforce comma style usage (Eric Blake),
maint: fix comma style issues: remaining code (Eric Blake),
maint: fix comma style issues: remaining drivers (Eric Blake),
maint: fix comma style issues: vbox (Eric Blake),
maint: fix comma style issues: python (Eric Blake),
maint: fix comma style issues: util (Eric Blake),
maint: fix comma style issues: tests, tools (Eric Blake),
maint: fix comma style issues: qemu (Eric Blake),
maint: fix comma style issues: xen (Eric Blake),
maint: fix comma style issues: conf (Eric Blake),
maint: fix comma style issues: nwfilter (Eric Blake),
Error out on unterminated arrays and objects in JSON parser (Ján Tomko),
Test if JSON parser fails on invalid input (Ján Tomko),
maint: ship .pl scripts as executables (Eric Blake),
Fix virsh net-info output for consistency (Hao Liu),
Add missing break to switch-case block (Doug Goldstein),
qemumonitorjsontest: Introduce GetNonExistingCPUData test (Michal Privoznik),
Macro for testing the version you are compiling with (Doug Goldstein),
Return -1 in virPortAllocatorAcquire if all ports are used (Ján Tomko),
Add a name to virPortAllocator (Ján Tomko),
storage: fix RNG validation of gluster via netfs (Eric Blake),
virsh-secret: Unify list column alignment (Peter Krempa),
virsh-interface: Unify list column alignment (Peter Krempa),
virsh-nwfilter: Unify list command column alignment (Peter Krempa),
virsh-pool: Unify spacing of listing function (Peter Krempa),
qemu: Change return type of qemuMonitorGetGuestCPU() (Peter Krempa),
virsh-volume: Unify strigification of volume type (Peter Krempa),
virsh-volume: Unify alignment of vol-list output columns (Peter Krempa),
conf: Refactor virDomainDiskSourceDefParse (Peter Krempa),
conf: Rename virDomainDiskHostDefFree to virDomainDiskHostDefClear (Peter Krempa),
conf: Split out code to parse the source of a disk definition (Peter Krempa),
qemuDomainObjStart: Warn on corrupted image (Michal Privoznik),
util: use size_t instead of unsigned int for num_virtual_functions (Laine Stump),
qemu: assign PCI address to primary video card (Vitor de Lima),
qemu: process: Validate specific CPUID flags of a guest (Peter Krempa),
qemu: Add support for paravirtual spinlocks in the guest (Peter Krempa),
conf: Refactor storing and usage of feature flags (Peter Krempa),
cpu: x86: Add internal CPUID features support and KVM feature bits (Peter Krempa),
qemu: Add monitor APIs to fetch CPUID data from QEMU (Jiri Denemark),
cpu_x86: Refactor storage of CPUID data to add support for KVM features (Peter Krempa),
tests: Distribute virpcitestdata (Michal Privoznik),
tests: Fix virtpcitest in VPATH (Jiri Denemark),
conf: Refactor virDomainDiskSourcePoolDefParse (Peter Krempa),
storage: always probe type with buffer (Eric Blake),
storage: refactor backing chain division of labor (Eric Blake),
storage: reduce number of stat calls (Eric Blake),
storage: avoid short reads while chasing backing chain (Eric Blake),
storage: use simpler 'char *' (Eric Blake),
test driver: add support for .connectBaselineCPU (Giuseppe Scrivano),
virpcitest: Introduce testVirPCIDeviceReset (Michal Privoznik),
virt-login-shell: also build virAtomic.h (Guido Günther),
storage: recognize gluster as networked file (Eric Blake),
qemu: don't use deprecated -no-kvm-pit-reinjection (Ján Tomko),
Resolve Coverity issue regarding not checking return value (John Ferlan),
Skip any files which are not mounted on the host (Daniel P. Berrange),
Add flag to lxcBasicMounts to control use in user namespaces (Daniel P. Berrange),
Remove duplicate entries in lxcBasicMounts array (Daniel P. Berrange),
Remove pointless 'srcpath' variable in lxcContainerMountBasicFS (Daniel P. Berrange),
Remove unused 'opts' field from LXC basic mounts struct (Daniel P. Berrange),
Add virFileIsMountPoint function (Daniel P. Berrange),
virpcitest: Introduce check for unbinded devices (Michal Privoznik),
virpcitest: Introduce testVirPCIDeviceReattach (Michal Privoznik),
virpcitest: Test virPCIDeviceDetach (Michal Privoznik),
tests: Introduce virpcitest (Michal Privoznik),
cpu: x86: Parse the CPU feature map only once (Peter Krempa),
cpu: Export few x86-specific APIs (Jiri Denemark),
nodeinfo: Remove libnuma include (Peter Krempa),
numa: Add wrapper of numa_node_to_cpus and use it (Peter Krempa),
numa: Replace NUMA_MAX_N_CPUS macro with virNumaGetMaxCPUs() (Peter Krempa),
nodeinfo: Get rid of nodeGetCellMemory (Peter Krempa),
numa: Introduce virNumaGetNodeMemory and use it instead of numa_node_size64 (Peter Krempa),
numa: Introduce virNumaGetMaxNode and use it instead of numa_max_node (Peter Krempa),
nodeinfo: Avoid forward declarations of static functions (Peter Krempa),
numa: Introduce virNumaIsAvailable and use it instead of numa_available (Peter Krempa)
Cleanups:
Remove obsolete 'tests' makefile target (Daniel P. Berrange),
Mostly revert "python: remove virConnectGetCPUModelNames from globals" (Daniel P. Berrange),
Remove redundant braces (Ján Tomko),
virPCIDeviceBindToStub: Remove unused @oldDriverPath and @oldDriverName (Michal Privoznik)
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
| |
ip is installed into /sbin/ip, but the default path used by libvirt is /bin/ip,
so override IP_PATH in configure.
Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't want to leave build order dictating whether or not we get
sasl support in libvirt so add a PACKAGECONFIG for sasl. I have not
added sasl as a default PACKAGECONFIG since out of the box you would
not normally get sasl being built so this mimics this behavior. I have
listed a RDEPENDS in the PACKAGECONFIG as older Yocto builds for some
reason are not picking up the required runtime dependency.
Signed-off-by: Mark Asselstine <asselsm@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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>
|
|
|
|
|
| |
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|