[Lxc-users] Squeeze Template fix?

Serge Hallyn serge.hallyn at canonical.com
Tue Feb 21 15:27:32 UTC 2012


Quoting Terry--gmail (terry.kemmerer at gmail.com):
> Debian Squeeze Host
> 
> It appears the template in the sources lxc package is lenny and I
> have solved what needs to be done to get networking working
> correctly with this lenny version, BUT I NEED SQUEEZE in my vm's,
> not lenny.
> 
> I have been searching for how to change to squeeze, but the
> solutions I have found on the web so far end in failures for me. For
> example, the fix I found here ( http://www.jotschi.de/?p=554 ) got
> further than anything else I have found so far, and really had my
> hopes up......but ended like this:
> 
> root at myserver:/usr/lib/lxc/templates# ./lxc-debian squeeze vm103 103

What version of lxc are you using?  The latest unstable version looks
like it should default to squeeze, with a separate lxc-lenny template
existing.

But, note that you should probably be using lxc-create, rather than
using lxc-debian directly.  Like this:

cat > /etc/lxc.conf << EOF
lxc.network.type=veth
lxc.network.link=virbr0
lxc.network.flags=up
EOF

lxc-create -t debian -n vm103 -f /etc/lxc.conf

If your version still gives you lenny, you could try

SUITE=squeeze lxc-create -t debian -n vm103 -f /etc/lxc.conf

> What are you guys using???  And are their detailed step by step
> instructions I can use to do it?

I'm working on a detailed guide for the Ubuntu packages.  I should have
a readable version sometime this week.  Some things will be different
from the Debian version, but it should be a decent starting point.

-serge




More information about the lxc-users mailing list