Description
RPM packages for the LXC/LXD 3.1 release.
This repository won't receive more updates. For the latest LXC/LXD versions see the ganto-lxc4 COPR. Packaging LXD for EPEL won't be continued.
Spec file sources
Installation Instructions
Steps to run LXC 3.1:
-
Enable this COPR repository:
# dnf copr enable ganto/lxc3 -
Install LXC:
# dnf install lxc -
If you already have LXC installed from the Fedora repository run:
# dnf update lxc
IMPORTANT
This will replace your
lxc
packages in case you had previously installed them from the official Fedora repositories. However, the release numbers of the COPR packages are chosen in way, that the officiallxc
packages should again replace the COPR packages once provided by Fedora.
-
Install LXD:
# dnf install lxd
Getting Started - LXC
If you already have a network bridge (e.g. through libvirt) that you want to use with your containers, define it in /etc/lxc/default.cfg
:
lxc.net.0.link = virbr0
If you want LXC to handle the bridge for the containers follow the instructions from the Fedora wiki.
Start the LXC service which will setup the bridge and dnsmasq
(if enabled) and later start the containers on host restart:
# systemctl enable --now lxc.service
Create container from a download image:
# lxc-create -n mycontainer -t download -- --dist fedora --release 27 --arch amd64
# lxc-start -n mycontainer
# lxc-attach -n mycontainer
Create container from an OCI image (requires COPR: ganto/umoci) :
# dnf install skopeo umoci jq
# lxc-create myalpine -t oci -- --url docker://alpine
Getting Started - LXD
Add management user account to lxd
group:
# usermod -a -G lxd <user>
Set sub{u,g}id range for containerized root user. For more information see man (5) subuid.
# echo "root:1000000:65536" >> /etc/subuid
# echo "root:1000000:65536" >> /etc/subgid
Enable and start lxd:
# systemctl enable lxd && systemctl start lxd
To properly work with SELinux the default unix socket for LXD is redefined via LXD_SOCKET environment variable. It is automatically set when logging in, therefore you have to re-login or sourcing the profile before you can access lxd
:
# source /etc/profile
# lxd init
List available default images:
$ lxc image list images:
Start your first container:
$ lxc launch images:fedora/29
Active Releases
The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).
Release | Architectures | Repo Download |
---|---|---|
EPEL 7 | x86_64 [modified] (3164)* | EPEL 7 (1496 downloads) |
EPEL 8 | x86_64 (928)* | EPEL 8 (1097 downloads) |
* Total number of downloaded packages.