Lxc: diferència entre les revisions
Salta a la navegació
Salta a la cerca
Línia 25: | Línia 25: | ||
lxc-create -n centos1 -t centos | lxc-create -n centos1 -t centos | ||
lxc-start -n centos1 | lxc-start -n centos1 | ||
Login to Container: The root password is set in the lxc | Login to Container: The root password is set in the lxc template. | ||
lxc-start -n <container_name> | |||
lxc-attach -n <container_name> | |||
===Other info=== | ===Other info=== |
Revisió del 15:15, 25 feb 2016
CentOS
Add EPEL repository
http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
## RHEL/CentOS 7 64-Bit ## wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm rpm -ivh epel-release-7-5.noarch.rpm
Install LXC
yum install lxc lxc-templates
Other install
yum install bridge-utils
yum install -y libvirt systemctl start libvirtd brctl show
bridge name bridge id STP enabled interfaces virbr0 8000.fea2866efadb yes veth7ATCJK
Image creation
lxc-create -n centos1 -t centos lxc-start -n centos1
Login to Container: The root password is set in the lxc template.
lxc-start -n <container_name> lxc-attach -n <container_name>
Other info
Migrate/convert existing full CentOS 6 server to LXC container: http://blog.a2o.si/2015/10/11/migrate-convert-existing-full-centos-6-server-to-lxc-container/
Linux, Apache, MySQL, PHP in an LXC Container: https://zyisrad.com/linux-apache-mysql-php-in-an-lxc-container/
Pacman roseta https://wiki.archlinux.org/index.php/Pacman/Rosetta