Rcheleguini (talk | contribs) |
Rcheleguini (talk | contribs) |
||
Line 12: | Line 12: | ||
The 'debootstrap' is necessary in order to build Debian-based containers. | The 'debootstrap' is necessary in order to build Debian-based containers. | ||
<br>The libvirt will provide basic networking management, such us bridge, NAT and DHCP. | <br>The libvirt will provide basic networking management, such us bridge, NAT and DHCP. | ||
== Change default bridge == | |||
Edit the file /etc/lxc/default.conf and change the parameter 'lxc.network.link' from 'lxcbr0' to 'virbr0': | |||
lxc.network.type = veth | |||
lxc.network.link = virbr0 | |||
lxc.network.flags = up | |||
lxc.network.hwaddr = 00:16:3e:xx:xx:xx | |||
== SELinux == |
Revision as of 11:41, 25 August 2015
LXC (Linux Containers) is an operating system–level virtualization method for running multiple isolated Linux systems (containers) on a single control host.
Official project website: https://linuxcontainers.org
Getting started
Installation
$ sudo dnf install lxc lxc-templates lxc-extra debootstrap libvirt
The 'debootstrap' is necessary in order to build Debian-based containers.
The libvirt will provide basic networking management, such us bridge, NAT and DHCP.
Change default bridge
Edit the file /etc/lxc/default.conf and change the parameter 'lxc.network.link' from 'lxcbr0' to 'virbr0':
lxc.network.type = veth lxc.network.link = virbr0 lxc.network.flags = up lxc.network.hwaddr = 00:16:3e:xx:xx:xx