Closed ensc closed 9 years ago
Isn't remounting everything as private going to cause problems for systemd? I assume it is using shared mounts for a reason.
So on a RHEL7 based host, which parts are working? Do you have to use the systemd generator in order to run guests, or do the regular vserver commands work?
Filesystem is remounted private in our new namespace only; it does not affect the mountpoints seen by systemd. I do not know why systemd remounts everything as shared, but this breaks vserver horribly.
I am building and running RHEL7 guests (with minit, not systemd and with external pkgmgmt) on RHEL7 hosts (kernel 3.14) now. The generator and related units replace the old sysv scripts. You can still start vservers manually (which get stopped on shutdown by the util-vserver.service
). Things might be improved by adding a dedicated util-vserver-stop.service
and adding preinit@mark targets, but complicated situations; e.g.:
startup:
shutdown:
are still unsolved (note the order of "DNS vserver" and remotefs.service
).
To solve all ordering issues on shutdown, vserver foo start
should become systemd aware (e.g. do systemctl start vserver@foo.service
). But for now, I can live with shutting down unregistered vservers in util-vserver.service
.
Okay, sounds promising. I'll see if I can give this a try fairly soon.
beside some minor buildsystem cleanups, commits: