https://wiki.ubuntu.com/SergeHallyn_libvirtlxc
apt-get install -y libvirt-bin lxc
lxc-create -t ubuntu -n o1
wget http://people.canonical.com/~serge/o1.xml
virsh -c lxc:// define o1.xml
virsh -c lxc:// start o1
virsh -c lxc:// console o1| <domain type='lxc'> | |
| <name>geotools</name> | |
| <memory>2097152</memory> | |
| <os> | |
| <type>exe</type> | |
| <init>/sbin/init</init> | |
| </os> | |
| <vcpu>1</vcpu> | |
| <clock offset="utc"/> | |
| <on_poweroff>destroy</on_poweroff> | |
| <on_reboot>restart</on_reboot> | |
| <on_crash>destroy</on_crash> | |
| <devices> | |
| <emulator>/usr/lib/libvirt/libvirt_lxc</emulator> | |
| <filesystem type="mount"> | |
| <source dir="/var/lib/lxc/geotools/rootfs"/> | |
| <target dir="/"/> | |
| </filesystem> | |
| <interface type="bridge"> | |
| <source bridge="br0"/> | |
| </interface> | |
| <console type="pty" /> | |
| </devices> | |
| </domain> |
https://wiki.ubuntu.com/SergeHallyn_libvirtlxc
apt-get install -y libvirt-bin lxc
lxc-create -t ubuntu -n o1
wget http://people.canonical.com/~serge/o1.xml
virsh -c lxc:// define o1.xml
virsh -c lxc:// start o1
virsh -c lxc:// console o1