[libvirt-users] How can a user process be automatically started after the container is started?
Daniel P. Berrange
berrange at redhat.com
Fri Oct 24 08:08:55 UTC 2014
On Fri, Oct 24, 2014 at 08:03:59AM +0000, WANG Cheng D wrote:
> Dear Daniel,
>
> You said "use a real init system like systemd to spawn off the things", do you mean a full OS distro container?
>
> I installed the container using "yum --installroot=/root/fedora19lxc --releasever=19 install -y openssh, bridge-utils" which is described at https://www.redhat.com/archives/libvirt-users/2013-August/msg00007.html.
>
> I don't know how to make systemd work in my current container.
> And I don't know how to install a full OS distro container
> either. Could you give me more guidance?
If you install a modern Fedora distro in a chroot and use that as the
filesystem for the container, then you have a container that uses
systemd for startup. There is nothing special you should ned todo with
system - it ought to "just work" as systemd is designed to easily cope
with running inside a container. For reference see also this:
https://www.berrange.com/posts/2013/08/12/running-a-full-fedora-os-inside-a-libvirt-lxc-guest/
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvirt-users
mailing list