Megatest

Update of "lxd_test_cluster"
Login
Overview

Artifact ID: 1d85edaefbe36f395d9f8da5327bdace2bc0c815
Page Name:lxd_test_cluster
Date: 2017-03-23 18:57:26
Original User: bjbarcla
Mimetype:text/x-markdown
Next fea6d9cc9319df27edc2128e78a6c9b06d599041
Content

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# mkdir /lxd-shared
host# chown 100000:100000 /lxd-shared
host# chmod 777 /lxd-shared
host# xc 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

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
put following in .vnc/xstartup
 #!/bin/sh

 # Uncomment the following two lines for normal desktop:
 # unset SESSION_MANAGER
 # exec /etc/X11/xinit/xinitrc

 #[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
 #[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
 #xsetroot -solid grey
 #vncconfig -iconic &
 #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
 #x-window-manager &


 #!/bin/sh
 unset SESSION_MANAGER
 unset DBUS_SESSION_BUS_ADDRESS
 startxfce4 &

 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
 xsetroot -solid grey
 vncconfig -iconic &

mtuser% vncserver -geometry 1366x746 -depth 24

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