lxd investigation
read later for usb support: https://github.com/lxc/lxd/issues/1359
mount homedir inside container: http://pastebin.ubuntu.com/15280878/
install lxd:
$ sudo apt install lxd
(below assume that the user is in lxd group)
list images:
$lxc image list
shows no images.
$lxc remote add images images.linuxcontainers.org
$ lxc image list images:
$ lxc init images:ubuntu/xenial/amd64 xenial-test
$ lxc start xenial-test
$ lxc exec xenial-test passwd ubuntu
$ lxc exec xenial-test su - ubuntu
$$ sudo apt update
$$ sudo apt dist-upgrade
$$ sudo apt install x11-apps
To get access to the display, you need:
$ lxc config device add xenial-test dri disk source=/dev/dri path=/dev/dri
$ lxc config device add xenial-test x11tmp disk source=/tmp/.X11-unix path=/tmp/.X11-unix
$$ DISPLAY=:0 xeyes
\o/
$$ sudo apt-install quassel-client &
$$ sudo apt install mesa-utils
$$ DISPLAY=:0 glxgears
for installing i386 packages (wine):
$$ dpkg --add-architecture i386 && apt-get update && apt install wine
remote images:
$ lxc image list images:
I don't know how to copy an image without creating the container, so do it like this:
$ lxc init images:ubuntu/vivid/amd64 vivid-overlay
configure display access
(same as above)
for add-apt-repository:
$# apt add software-properties-common
$# add-apt-repository ppa:ci-train-ppa-service/stable-phone-overlay
$# sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
$# apt update && apt upgrade
$# apt install ubuntu-sdk-dev
$# apt install ubuntu-sdk
$# apt install qt5-default
$# apt install qbzr
uncomment the deb-src in /etc/apt/sources.list.d/*
$# apt-get build-dep ubuntu-ui-toolkit