title: Automating connecting to lxc container and executing commands inside the container
body: <p>Hi I am trying to automate lxc container creation/starting/stopping and executing commands inside them via script (Bash/Python). I was able to create a container which is a very simple step</p>
  
  <pre><code>lxc-create -t ubuntu -n CONTAINER1
  </code></pre>
  
  <p>Now I want to start this container and login to it using a script. I tried expect to pass the username and password which did not work.</p>
  
  <pre><code>lxc-start -n CONTAINER1
  </code></pre>
  
  <p>Any ideas would be appreciated.</p>