Re: How can a user process be automatically started after the container is started?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux