Forum archive
TurnKey LXC
I am unable to connect my containers to the network, please note that this are my first steps with LXC and I may have ommited something, so please feel free to point it out if you find it (in fact, please do it).
I have downloaded the turnkey-lxc-15.1-stretch-amd64.ova (several times actually, in several computers) and imported it to Virtualbox (for Windows, Versión 6.0.18 r136238 (Qt5.6.2), for freebsd 12.1 virtualbox version 5.2.34) and ESXI 5.5 and 6.7, in all cases using bridged network, the results are the same, as follows...
After initial configuracion (password, email, install updates (which proves conection to the network), reboot, get to the configuration console (LXC appliance services, shows ip address and various ports for ssh, web, webmin, etc) at this point I ssh in to the system, always using putty (recent enough or last version available) and run the commands in the web "Example (Bridge):
cat <<EOF > /root/wp1.conf 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
I've tried changing the aproppiate fields fot passwords, mail and www and as is, with the values unchanged, then I run the next command:
lxc-create -n wp1 -f /etc/lxc/bridge.conf -t turnkey -- wordpress -i /root/wp1.conf
I've tried with wordpress, openvpn, nextcloud and others I don't remember now, in all cases I follow with:
lxc-start -n wp1 -d (or whatever name I used instead of wp1)
tand I get:
Container ncloud not connected:
then:
lxc-attach -n wp1 (or whatever name I used instead of wp1)
and:
ip address
to which I get:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
8: eth0@if9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 2a:5b:8e:8a:38:73 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::285b:8eff:fe8a:3873/64 scope link
valid_lft forever preferred_lft forever
So I went and followed this instructions /forum/support/sun-20200202-2107/turnkey-lxc-containers-not-connected-solved to no avail.
So I turned to the source, deleted the VM, imported it clean and started again (several times actually) password, email, install updates, reboot and followed the networking section of https://wiki.debian.org/LXC#Installation including the "Minimal changes networking in “stretch”" section.
After that (and a reboot just in case) results are just the same, so I MUST be doing something stupidly wrong, cause at this point I can not get to connect any container for the life of me.
So I place myself in the wiser hands and expertise of the internet people who have guided me in my journey here for the past 20 years.
Thank you all for your time.
Please note that after I downloaded and installed minimal debian stretch, and after following installation and network instructions in https://wiki.debian.org/LXC#Installation, containers DO get an ip address:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:8e:b9:62 brd ff:ff:ff:ff:ff:ff
inet 192.168.9.76/24 brd 192.168.9.255 scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe8e:b962/64 scope link
valid_lft forever preferred_lft forever
Altough, this is not ideal for me, since I was trying to take advantage of the preconfigured turnkey appliances, and not having to make all from scratch... So if you can find what I should do differently, I'll test it inmediately.