tpokorra / lxc-scripts

scripts useful for running a server with several lxc containers. DEPRECATED. Please use https://github.com/tpokorra/lxd-scripts!
31 stars 8 forks source link

problems installing fedora container on CentOS #28

Open tpokorra opened 7 years ago

tpokorra commented 7 years ago

the image from https://jenkins.linuxcontainers.org/view/LXC/view/LXC%20templates/job/lxc-template-fedora/ does not have the network installed, no yum.conf, etc

the squashfs img cannot be downloaded. use the latest https://github.com/lxc/lxc/blob/master/templates/lxc-fedora.in, put it in /usr/share/lxc/templates/lxc-fedora, replace the following lines:

local_state_dir="/var"
lxc_path="/var/lib/lxc"
lxc_template_config="/usr/share/lxc/config"
lxc_default_conf="/etc/lxc/default.conf"

this still gives an error:

Downloading 'https://mirror.netcologne.de/fedora/linux/releases/25/Everything/x86_64/os//Packages/f/fedora-repos-25-1.noarch.rpm ... 
warning: /fedora-release-25-1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fdb19c98: NOKEY
warning: Unable to get systemd shutdown inhibition lock
Preparing...                          ################################# [100%]
Updating / installing...
   1:fedora-repos-25-1                ################################# [ 50%]
   2:fedora-release-25-1              ################################# [100%]
Error: Failed to synchronize cache for repo 'fedora'
Error: Build of bootstrap environment failed.
Keeping directory /var/cache/lxc/fedora/bootstrap_VaRCix for your investigation.
Error: Fedora Bootstrap setup failed
Error: Failed to download Fedora 26 (x86_64)
Error: Failed to create Fedora container
tpokorra commented 6 years ago

same on Ubuntu host, with Fedora 27 guest