Forum archive
LXC TurnKey container on debian stretch
I am having trouble installing Turnkey based containers on debian stretch, here's what I did:
Installed debian minimal, installed lxc and bridge utils, set up a simple bridge and changed /etc/lxc/default.conf accordingly, so I can now create containers like the example "lxc-create -n <name> -t debian -- -r stretch" and everythig works just fine.
Then downloaded the turnkey template:
wget -O /usr/share/lxc/templates/lxc-turnkey "https://raw.githubusercontent.com/turnkeylinux-apps/lxc/master/overlay/usr/share/lxc/templates/lxc-turnkey"
Fixed permissions:
chmod 755 /usr/share/lxc/templates/lxc-turnkey
And tried to create a new container based on the turnket documentation:
cat > /root/wp1.conf <<EOF export ROOT_PASS=secretrootpass export DB_PASS=secretmysqlpass export APP_PASS=secretadminwppass export APP_EMAIL=admin@example.com export APP_DOMAIN=www.example.com export HUB_APIKEY=SKIP export SEC_ALERTS=SKIP export SEC_UPDATES=FORCE EOF
Then:
lxc-create -n wp1 -t turnkey -- wordpress -i /root/wp1.conf
Returns this message:
/usr/share/lxc/templates/lxc-turnkey: línea 675: version_resolver: no se encontró la orden
FATAL [lxc-turnkey]: version not specified
lxc-create: lxccontainer.c: create_run_template: 1297 container creation template for wp1 failed
lxc-create: tools/lxc_create.c: main: 318 Error creating container wp1
I have tried:
lxc-create -n wp1 -t turnkey -- wordpress -v 16.0 -i /root/wp1.conf
lxc-create -n wp1 -t turnkey -- wordpress -v 15.3 -i /root/wp1.conf
lxc-create -n wp1 -t turnkey -- wordpress -i /root/wp1.conf -v 16.0
lxc-create -n wp1 -t turnkey -- wordpress -i /root/wp1.conf -v 15.3
With no success, I got the feeling I was just shooting blind here so I installed strace, and run it again:
strace -f lxc-create -n wp1 -t turnkey -- wordpress -i /root/wp1.conf 2>&1 | tee /root/lxc_strace.log
But honestly I coulnd't get much from such log, I don't know enough to notice what is an actuall error or an expected output, also tried get a similar log of the creation of a "normal" container but this last one was over 250000 lines, so, yeah, I'd like to have a life other than reading logs I can't understand...
Maybe someone here can point me in the right direction to get this working?
And while I could in a normal case just install Turnkey LXC, I am dealing with a project using a specific hardware and I can't get any Turnkey to install or even boot on it, not even Turnkey Core, but debian works, so I though this could be a good idea, and an oportunity to learn more about LXC.
Thank you all for your time.
Hmmm, ok, well I have no idea why TurnKey isn't booting?!
It sounds like you are using the "official" Debian ISO, so it seems unlikely to be a driver related issue. We should be supplying the same "free" drivers that the default Debian one does.
If they're older hardware, then as you note, UEFI doesn't seem a likely cause either?!
So in my mind it should "just work"!? My only other thought is how you are preparing the install. I.e. I assume that you are "burning" the ISO to a USB stick? If so, how are you doing that? I've only tested doing it using the Linux commandline tool "dd" (which exactly writes the contents of ISO to the USB at the block level - apparently it has been ported ot Windows too, but I'm not sure). I have heard that some UI tools (IIRC UNetbootin is one that causes issues) won't work. I think Rufus may be a good one?! Although TBH I have no idea really...
In theory, anything that works for Debian, should also work for TurnKey. However, our v15.x (and earlier) used a custom live boot mechanism (we ported it from Ubuntu years ago and have been maintaining it ourselves). So there may be scenarios where TurnKey may not work where Debian does. As of the new v16.0, we've rebased on default Debian tools. So hopefully issues will be less likely.
If you can be bothered, I would still be interested in trying to understand what the issue might be, but I'll answer your other post in the hope of assisting you in your other pathway.