[Lxc-users] Remedy for centos base installation failing operations on /sys?
Johannes Graumann
johannes_graumann at web.de
Mon Jul 23 08:40:37 UTC 2012
Fajar A. Nugraha wrote:
> On Fri, Jul 20, 2012 at 2:27 AM, Johannes Graumann
> <johannes_graumann at web.de> wrote:
>>> Also, how do you create your container? If you use templates, "yum
>>> --installroot", or similar, then the package should already be
>>> installed.
>> I modified the debian-supplied fedora template (and posted it to this
>> list:
>> http://www.mail-archive.com/lxc-
users at lists.sourceforge.net/msg03761.html)
>> ...
>
> That might explain it. The script installs "yum initscripts passwd
> rsyslog vim-minimal dhclient chkconfig rootfiles policycoreutils". You
> might want to add "basesystem" there (which should install
> "filesystem" as a dependency).
>
> What I usually do is "yum --installroot=/t groupinstall base" plus
> "yum --installroot=/t install dhclient"
>
> Anyway, an easy workaround is to stop your container and "yum
> --installroot=/var/lib/lxc/... filesystem" from the host.
Thanks for your hints ... I have investigated this some more and the problem
is that "filesystem" actually get's installed via the host, but once the
guest is running it is missing the yum data base on what is installed and
what not, so any installation afterwards that has the dependency
"filesystem" is reinstalling it (among many other things). Is it possible to
transplant the yum state information to the guest - rsyncing the
corresponding /var/cache directory to the guest does not seem to do the
trick ...
Thank you for your help.
Sincerely, Joh
More information about the lxc-users
mailing list