Application containers with libvirt lxc driver

Registered by Vladik Romanovsky

Existing libvirt lxc driver implementation only supports running a full OS containers.
The aim of this blueprint is to enable the users to run applications in an isolated container,
directly from the host filesystem, without the need of providing an OS image.
Avoiding the need, of having an image, will eliminate the need of copying it between hosts and
will reduce the I/O performance overhead, caused but various layers, which are mounting the image.

Users will be able to provide a set of Glance image properties to enable the above behaviour.

lxc_init_path - Sets the path to an application that would be launched in the container.
                May also be provided with a full OS image to serve as an alternative init
                command.

lxc_root_source_dir - Should be set to true, in order to launch the application from the host fs.

glance image-update \
           --property lxc_init_path=/sbin/sh \
           --property lxc_root_source_dir=true \
           [image]

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Vladik Romanovsky
Direction:
Needs approval
Assignee:
Vladik Romanovsky
Definition:
Drafting
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/libvirt-lxc-application-containers,n,z

Addressed by: https://review.openstack.org/72623
    libvirt: alternative lxc init path

Addressed by: https://review.openstack.org/72624
    libvirt: Allow root directory as lxc source dir

Addressed by: https://review.openstack.org/72625
    libvirt: don't mount an image if lxc source dir is provided
Gerrit topic: https://review.openstack.org/#q,topic:bp/libvirt-lxc-application-containers,n,z

Addressed by: https://review.openstack.org/72623
    libvirt: alternative lxc init path

Addressed by: https://review.openstack.org/72624
    libvirt: Allow root directory as lxc source dir

Addressed by: https://review.openstack.org/72625
    libvirt: don't mount an image if lxc source dir is provided

If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.