LXC简易建构备忘录
$ sudo lxc-create -n pyramid -t ubuntu -- -r precise
$ sudo vim /var/lib/lxc/pyramid/config
lxc.network.ipv4 = 10.0.3.3
lxc.network.ipv4.gateway = 10.0.3.1
$ sudo lxc-start -n pyramid -d
$ ssh ubuntu@10.0.3.3
CentOS 6:
$ cd /usr/share/lxc/templates/
$ wget -O /usr/share/lxc/templates/lxc-centos6-vagrant \
https://github.com/tukiyo/vagrant-lxc_create_box/tree/master/lxc-templates/lxc-centos6-vagrant
$ sudo chmod +x /usr/share/lxc/templates/lxc-centos6-vagrant
$ sudo apt-get install curl yum
$ sudo lxc-create -n gitlab -t centos6-vagrant
如果想运行CentOS5,请将上面的CentOS6替换为CentOS5。
请您参考一下