Table of Contents
Creating the lxc virtual machine manager
Give the virtual machine manager a name (optional) and make sure it's mentioned in the hosts file as well:
echo "vm-mgr" > /etc/hostname nano /etc/hosts
Install lxc (and bridge-utils for bridged networking):
apt-get install lxc bridge-utils
(will install bridge-utils libcap2-bin lxc), current version is lxc(0.7.2-1) </code>
nano /etc/default lxc
Change: #RUN=yes to RUN=yes
Put the names of the containers you wish to start upon boot in the 'CONTAINERS' variable (we haven't created any, but you might experiment with 'vm-template')
mkdir /cgroup echo "cgroup /cgroup cgroup defaults 0 0" >> /etc/fstab
Check if everything's ok with:
lxc-checkconfig
Ignore 'Cgroup memory controller: missing' (I did)
If all went well, mount /cgroup:
mount /cgroup
That was easy, wasn't it?
You will probably need 'screen' later on to be able to lxc-start without the '-d' option. Make sure it is installed:
vm-mgr:/mnt/vm# apt-get install screen
Creating the network bridge
Jump forward to how to create a single lxc vm template.
Please leave feedback or questions at the main page.