The following documents might be useful additional references:
SSH to firstname.lastname@example.org or email@example.com. Password is the usual, adapted to this year. Email me if you don’t know it.
Once on the host, the following commands may be useful:
lxc-ls --fancyto list all the containers, pc1 through pc40
lxc-attach --name pcXto attach to a container (virtual console)
lxc-start --name pcXto start a container
lxc-stop --name pcXto stop a container
lxc-stop --name pcX -r/--rebootto reboot a container
lxc-stop --name pcX -k/--killto kill (force shutdown) a container
lxc-destroy --name pcXto completely delete a container (irreversibly)
lxc-copy --name pcX --newname pcYto clone an existing container with a new name
lxc-autostartto start all the containers
lxc-autostart -s/--shutdownto shutdown all the containers cleanly
lxc-autostart -r/--rebootto reboot all the containers cleanly
lxc-autostart -k/--killto kill (force shutdown) all the containers
I’ve assigned hostnames to each container by editing
/etc/hostname, and IP addresses by editing
You’ll need to redo that if you destroy and re-clone a container (otherwise you’ll have an IP address conflict).
The guests are all unprivileged containers, running under the
inst user and not
you shouldn’t ever need to use
sudo with any of the commands above. If you do, you’ll be
creating or trying to run privileged containers under the
root user, of which there currently
aren’t any. So if you think that all your containers have disappeared, check whether you’re using
sudo on your
lxc commands by mistake.
The guests all have IP addresses in the 184.108.40.206-140 range, where pcX = 196.200.219.(X + 100). External routing for the 220.127.116.11/24 subnet is available now, but SSH is blocked, so you’ll need to wait until you’re onsite, or login via the host (sse-nuc1.mtg.afnog.org).
The guests all have a user called
afnog, with a predictable password, and the root password is the same, as usual.
sudo and an
ssh server are installed, and not much else. There is a passwordless SSH key on the NUC, so you
can ssh afnog@pcX.sse.ws.afnog.org without a password (or to root@) to install additional SSH keys, etc.
If you completely lose access to a guest and want to poke around in its filesystem, you can find it at
~inst/.local/share/lxc/pcX/rootfs. The files will all be owned by strange UIDs starting from 200000 (e.g.
root = 200000), and if they’re changed to host UIDs then the guest won’t be able to access or modify them,
so try not to do that.