Commit Graph

2020 Commits

Author SHA1 Message Date
Bogdan Purcareata
73809e88a2 lxc: Update LXC recipe to include config examples in main package
The patch configures the LXC recipe to include configuration examples
or containers in the default package - lxc, not in the documentation
one - lxc-doc.

By default, bitbake will split a specific package into multiple sections,
based on meaning - binaries, libraries, documentation, configs, etc. The
sections will then be assembled into individual packages, such as e.g lxc,
lxc-doc, lxc-dbg and so on. The packages are mutually exclusive with
respect to the sections they contain.

LXC installation provides several example configuration files for various
usage scenarios. The twist is that LXC build scripts place these config
examples in a relative path that is identified by bitbake as belonging to
documentation. This patch places these configuration files in the main
package, where they normally belong.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-11 13:07:27 -07:00
Bogdan Purcareata
6f1446097d lxc: Add disable udhcp patch to LXC recipe
The provided patch makes a modification to the LXC busybox template (the
template that creates a minimal container with Busybox).

This type of container will start the udhcpc service - the DHCP client - on
init. For an embedded Linux image, we might assume that the majority of
containers will have manual / static networking configuration on start.
Considering this, starting the udhcpc service by default is useless, since
the service will then has to be killed. The containers that use DHCP for
networking can start udhcpc after container boot, or alter the busybox
template locally to do so by default.

The patch deactivates the default start of the DHCP client on a Busybox
container init.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-11 13:07:22 -07:00
Bogdan Purcareata
4c111373fc lxc: Add LXC 0.9.0 recipe
Introducing the LXC 0.9.0 recipe.

Maintainer log for intermediate versions since LXC 0.8.0. This only contains
the major differences between versions. You may find the complete log on the
SourceForge LXC devel mailing list [1].

0.9.0.alpha1:
- Introduction of the new liblxc API
- Python bindings
- New tools:
   - lxc-device
   - lxc-start-ephemeral
   - python version of lxc-ls
- lxc.autodev support
- oracle template
- reworked lxc-attach
- /etc/lxc/lxc.conf configuration
- Switch to new docbook
- A lot of other improvements, new features and bugfixes

0.9.0.alpha2: bug fix for issue with 0.9.0.alpha1 - no significant changes

0.9.0.alpha3:
- Android support
- New lua binding
- User namespace support
- Oracle template
- Manpage updates
- POSIX shell support for most scripts
- Improved systemd support
- Various API improvements
- Logging improvements

0.9.0.rc1:
- Addition of -P option to all executables (to specify lxcpath)
- Rework of the cgroup handling code
- Rework of lxc-attach for userns
- Updates to the alpine, archlinux, opensuse, oracle and ubuntu
templates. Removal of the lenny template.
- Introduction of a new lxc.stopsignal option
- Introduction of a new lxc.kmsg option
- Various userns improvements
- New --host option in lxc-ps
- Introduction of a few examples lxc hooks
- Support for nested containers in lxc-ls
- Introduction of get_version in the C API.
- And a variety of bugfixes

0.9.0:
Feature changes include:
 - Support for ephemeral containers in lxc-clone
 - --clear-env/--keep-env support in lxc-attach
 - -n option to lxc-start-ephemeral
Everything else is bugfixes on top of rc1.
Tests done by maintainers:
 - Test build on my machine (up to date Ubuntu 13.04)
 - Test build on Launchpad (Ubuntu 12.04, 12.10 and 13.04)
 - Test build on an armhf board running Ubuntu 13.04
 - Test build for Android cross-compiling on my laptop
 - Ran our test suite on the x86 binaries
 - Ran a quick test (start/stop/info/wait) on Android
 - Tested the API and tools on ARM
 - Rebuilt all my local templates (~20 containers) on a variety of
   architectures (i386, amd64, armel and armhf)

[1] https://lists.sourceforge.net/lists/listinfo/lxc-develIntroducing the LXC 0.9.0 recipe.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-11 13:07:17 -07:00
Ting Liu
f46d6cbc4e libvirt: package .debug and .a files in lock-driver
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>
2013-04-06 21:00:41 -07:00
Bruce Ashfield
aef07c424d libvirt: add dtrace pkgconfig option
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>
2013-04-05 08:18:12 -07:00
Olivia Yin
e8b062e8f3 libvirt: upgrade to 1.0.3
Signed-off-by: Olivia Yin <hong-hua.yin@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-03-18 07:11:59 -07:00
Bruce Ashfield
5a16027bf0 docs: create initial documentation subdirectory structure
As the number of meta-virtualization users grows, the need to document
various parts of the layer grows as well. Rather than rely only on
wiki and online docs, we'll create a layer-local holding tank for relevant
bits of documentation.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-03-18 07:08:33 -07:00
Bruce Ashfield
43b438f068 meta-virtualization: add irqbalance
Depending on the requirements of a system, interrupt balancing may
be desireable.

This commit adds irqbalance to provide a daemon to balance interrupts
across multiple CPUs, which can lead to better performance and IO
balance on SMP systems.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-03-18 06:24:45 -07:00
Lei Yang
0afb6647c1 openvswtich: start openvswitch at the boot time
When I define the bridge, I get below error

root@intel_5500_server:~# ovs-vsctl add-br ovsbr0
Jan 25 17:34:07|00002|stream_unix|ERR|/tmp/stream-unix.1487.0: connection to /var/run/openvswitch/db.sock
failed: No such file or directory
........
........

This is because openvswitch damon isn't running,so we'd better start it at
the boot time.  The split-package ${PN}-switch ${PN}-controller provide us
to start necessary daemon with update-rc.d so we add them to the RDEPENDS.

Since openvswitch depends on openvswtich kernel module, so auto load the
kernel module too.

Signed-off-by: Lei Yang <lei.yang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-02-01 09:08:07 -05:00
Mihai Prica
176a8d2ed8 Created new target: kvm-image-minimal
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-29 15:56:39 +01:00
Mihai Prica
15e6ea1dbb linux-yocto: added kernel configuration for KVM
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-01-29 09:19:24 -05:00
Mihai Prica
0ed10afde2 iptables: Sync bbappend version with oe-core
Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-01-29 15:09:35 +01:00
Lei Yang
28067e1012 multipath-tools: add multipath-tools recipe
This package provides:
- multipath: scans the system for multipathed devices, assembles
- multipathd: waits for maps events then execs multipath
- kpartx: maps linear devmaps to device partitions, which makes
  multipath maps partionable
......

Now,It can be used for kvm disk img partion mounting for me.

Signed-off-by: Lei Yang <lei.yang@windriver.com>
2013-01-23 10:16:56 +01:00
David Nyström
e00b223262 Fixed build breakage in iasl-native
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-22 13:40:03 +01:00
David Nyström
da3865d5fb Moved bbappend to match updated master branch in oe-core
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-18 15:02:55 +01:00
David Nyström
3c558b2fdb Removed ebtables, since it now recides in meta-networking
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-18 14:48:57 +01:00
David Nyström
838981f477 Removed openbsd-netcat since it now recides in meta-networking
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-18 14:48:05 +01:00
David Nyström
ab5557bd66 Changed libvirt dependency to netcat-openbsd to match meta-networking
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-18 14:47:04 +01:00
David Nyström
94b55541c9 Added meta-networking dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
2013-01-18 14:45:59 +01:00
Mihai Prica
523ac72ed2 ebtables: Fixed typo in RRECOMMENDS
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
2013-01-16 13:26:57 +01:00
Bruce Ashfield
46bfa67bd2 README: cosmetic: reference meta-virtualization vs meta-xen
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: David Nyström <david.nystrom@enea.com>
2012-12-20 12:50:06 +01:00
David Nyström
7a62620ea0 Added LxC recipe from meta-fsl-ppc, curtesy of Matthew McClintock, Stuart Yoder
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 16:06:51 +01:00
David Nyström
c83fd72a86 Removed old version of libvirt
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
1c75f19747 Updated libvirt to 1.0.0, added more details to packageconfig
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
20b24d5695 Added kernel configuration for LxC and in kernel OpenvSwitch
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
e2a26a7824 Added some details in README, and made the description common
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
26348cc9a0 Added template cloud-* images
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
591945c8ee Changed David Nyströms email in README
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
74a7a61d53 Added .gitignore file
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
5ac786971c Added openvswitch recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
43c6da9f1b Added openflow recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
5ed3b6bdc2 Added openbsd-netcat recipe, libvirt dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
9f60c7d889 Added netcf recipe, libvirt dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:31 +01:00
David Nyström
02e4046656 Added CRIU recipe
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:30 +01:00
David Nyström
fec87b0598 Added protobuf criu dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:30 +01:00
David Nyström
0d31f84484 Added protobuf-c criu dependency
Signed-off-by: David Nyström <david.nystrom@enea.com>
Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2012-12-07 15:32:30 +01:00
Raymond Danks
3e273b5815 Rename meta-xen layer to meta-virtualization.
Updates to README and layer.conf for new name and maintainers.

Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-30 11:53:48 -07:00
Mihai Prica
0d80b8bc3b busybox: updated bbappend for 1.20.2
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:22:02 -07:00
Mihai Prica
5bd8b0cded xen: Fixed some build problems
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:16 -07:00
Mihai Prica
aef04ffe25 xen: Added target include dirs for python bindings
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:16 -07:00
Mihai Prica
d697439211 xen: Added fix to work on all architectures
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:16 -07:00
Mihai Prica
9f5da47100 ebtables: Added new runtime dependency
The ebtables-save script uses perl so it's been added to the recipe.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:16 -07:00
Mihai Prica
189ed64416 xen: fixed wrong name for xen-hg packet
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:16 -07:00
Mihai Prica
34660d3781 ebtables: Updated license
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:16 -07:00
Mihai Prica
14bf4ce9a0 libvirt: fixed virsh network problem
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>
2012-11-26 16:21:16 -07:00
Mihai Prica
93a8aadc0d libvirt: updated to work for other hypervisors
* 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>
2012-11-26 16:21:16 -07:00
Mihai Prica
572043f25b libvirt: upgrade to 0.10.2
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:15 -07:00
Mihai Prica
bf7a0aa055 linux-yocto: added kernel configs for iptables modules iptables: loaded necessary kernel modules
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:15 -07:00
Mihai Prica
6777842470 ebtables: added necessary kernel modules linux-yocto: added kernel configs for ebtables modules
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:15 -07:00
Mihai Prica
e71f63a6b8 xen-image-minimal: Changed from task-core-boot to package-core-boot
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:15 -07:00