Megatest

lxd_test_cluster
Login

Setup lxd cluster for megatest

I setup 3 container "boxes" - pablo, ruby, ash

install lxd - loosely followed this

put containers on home LAN- followed this procedure

host# lxc remote add images images.linuxcontainers.org

host# lxc launch images:ubuntu/xenial/amd64 ruby

host# lxc launch images:ubuntu/xenial/amd64 pablo

host# lxc launch images:ubuntu/xenial/amd64 ash

setup shared space across containers, mounted from host fs

mkdir /lxd-shared

chmod 777 /lxd-shared

host# lxc config device add ruby sharedtmp disk path=/lxd-shared source=/lxd-shared

host# lxc config device add ash sharedtmp disk path=/lxd-shared source=/lxd-shared

host# lxc config device add pablo sharedtmp disk path=/lxd-shared source=/lxd-shared

Setup containers

setup ssh host keys across mtuser

host# lxc exec container1 /bin/bash

container1# su - mtuser

% ssh-keygen

pick a container and setup X / vnc

container# apt-install vnc4server xfce4

container# su -c mtuser

% vncpasswd

mtuser% echo "vncserver -geometry 1366x746 -depth 24" > ./vncgo mtuser% chmod +x ./vncgo; ./vncgo

fix consternating issue breaking tab completion working in any term:

start a vnc session (so iup works)

from home network, use vnc client to connect to container:1