title: LXC on raspberrypi using raspbian OS
body: <p>Mount a cgroup</p>
  
  <h1>pico /etc/fstab</h1>
  
  <h1>add the line “lxc /sys/fs/cgroup cgroup defaults 0 0”</h1>
  
  <h1>mount -a</h1>
  
  <p>Create a Directory to Store Hosts</p>
  
  <h1>mkdir -p /var/lxc/guests</h1>
  
  <p>Create a File System for the Container</p>
  
  <p>Let’s create a container called “test”.</p>
  
  <p>First, create a filesystem for the container. This may take some time</p>
  
  <h1>apt-get install debootstrap</h1>
  
  <h1>mkdir -p /var/lxc/guests/test</h1>
  
  <h1>debootstrap wheezy /var/lxc/guests/test/fs/ <a href="http://archive.raspbian.org/raspbian" rel="nofollow noreferrer">http://archive.raspbian.org/raspbian</a></h1>
  
  <p>Modify the Container’s File System</p>
  
  <h1>chroot /var/lxc/guests/test/fs/</h1>
  
  <p>Change the root password.</p>
  
  <h1>passwd</h1>
  
  <p>Change the hostname as you wish.</p>
  
  <h1>pico /etc/hostname</h1>
  
  <p>undo chroot</p>
  
  <h1>exit</h1>
  
  <p>Create a Minimal Configuration File</p>
  
  <h1>pico /var/lxc/guests/test/config</h1>
  
  <p>Enter the following:</p>
  
  <p>lxc.utsname = test</p>
  
  <p>lxc.tty = 2</p>
  
  <p>lxc.rootfs = /var/lxc/guests/test/fs</p>
  
  <p>Create the Container</p>
  
  <p>lxc-create -f /var/lxc/guests/test/config -n test</p>
  
  <p>Test the Container</p>
  
  <h1>lxc-start -n test -d</h1>
  
  <p>And this error came up</p>
  
  <p>lxc-start: symbol lookup error: lxc-start: undefined symbol: current_config</p>