[Lxc-users] lxc-centos/lxc-rhel?

Dwight Engen dwight.engen at oracle.com
Tue Oct 1 15:48:22 UTC 2013


On Mon, 30 Sep 2013 16:41:15 -0400
"Michael H. Warfield" <mhw at WittsEnd.com> wrote:

> On Mon, 2013-09-30 at 12:14 -0400, Dwight Engen wrote: 
> > On Sat, 28 Sep 2013 09:52:15 +0700
> > "Fajar A. Nugraha" <list at fajar.net> wrote:
> > 
> > > On Sat, Sep 28, 2013 at 3:03 AM, Michael H. Warfield
> > > <mhw at wittsend.com>wrote:
> > > 
> > > > On Fri, 2013-09-27 at 10:38 +0700, Fajar A. Nugraha wrote:
> > > > > In particular, it solves the problem of mismatched rpmdb
> > > > > version (i.e. when installing centos5 on latest ubuntu) by
> > > > > doing "yum install" twice.
> > > >
> > > > I accomplished that with an "rpm --rebuilddb" sortly after
> > > > installing the minimal packages.
> > > >
> > > >
> > > 
> > > Unfortunatey using JUST that didn't work last time I tested
> > > installing Centos 5 from Ubuntu 12.04. So what I did was:
> > > - move rpmdb location to the correct place (Ubuntu put this in
> > > $HOME/.rpmdb)
> > > - try rpm --rebulddb
> > > - test with yum
> > > - if yum still complains, then reinstall a new environment using
> > > yum/rpm from the temporary environment.
> 
> > Hi guys, just wanted to mention in case it helps is that the way I
> > solved the db version mismatch in the oracle linux template was to
> > use db_dump | db_load.
> 
> Nice.  Found it in the Oracle template and I'm going to blatantly
> plagerize the code I need for the Fedora template.  I found just the
> right spot too, where I'm in the bootstrap code that may be of one
> version having just built a container of a differing version.  That'll
> delay my patch for a couple more days while I integrate that and test
> it out but that's a great catch.

Sure thing, yeah I pretty regularly use the Oracle template from both
Fedora and Ubuntu hosts (and obviously from Oracle hosts), creating
OL 4.x, 5.x, and 6.x containers. Have not tried it on other hosts
though, I'd expect there are probably issues, as you know its a takes a
bit of tweaking to make work across different hosts.

> Many thanks!

Glad it was helpful.
 
> Regards,
> Mike




More information about the lxc-users mailing list