Virtual Machines in Ubuntu - LXC

24 May 2014


A simple solution for virtual machines in Ubuntu is LXC with virtenv.

Things that need to be installed:

sudo apt-get install -y lxc lxctl uuid btrfs-tools xserver-xephyr bridge-utils openbox

Latest package for virtenv should be downloaded from here.

and installed using:

sudo dpkg -i virtrenv_X.Y.Z_1.deb

virtenv creates a folder .virtenv inside home directory where it creates folders for each virtuasl machine. If you keep your virtual machines elsewhere you can create a symbolic link like so:

ln -s $MACHINES/.virtenv /home/tnick/.virtenv


Tagged with walkthrough

"Any sufficiently advanced troll is indistinguishable from a genuine kook." Alan Morgan