LXC 0.7.0

LXC 0.7.0 was released yesterday.  I tried it out on ubuntu maverick, and must say it worked great!  Alright, so there’s a little bug in the config file parser if you start lines with spaces (which is fixed in git) but that was all I found. To create a new lucid container, I did:

cat >> /etc/lxc-basic.conf << EOF
lxc.network.type=veth
lxc.network.link=virbr0
lxc.network.flags=up
EOF

then

lxc-create -n ubuntu1 -f /etc/lxc-basic.conf -t ubuntu

Takes awhile for the first time since it debootstraps the whole system.  When done, you can create more machine (much faster) with

lxc-create -n ubuntu2 -f /etc/lxc-basic.conf -t ubuntu

Start them with

lxc-start -n ubuntu1 -d

and open a console with

lxc-console -n ubuntu1

Root/root is the default user/password.  Worked out of the box.  Terrific!

Advertisements
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

One Response to LXC 0.7.0

  1. Pingback: lxc-clone | S3hh's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s