Unable to use regular LXC templates

falves1

Well-Known Member
Jan 11, 2009
99
3
48
Since I upgraded to Promox 8, I cannot install the packages lxc-templates
apt -y install lxc-templates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
lxc-pve : Conflicts: liblxc1
Conflicts: lxc
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

but installing new lxc containers from download is broken, so I cannot create new pure LXC containers.
I don't use proxmox containers, just KVM virtual machines.
Any idea?
 
Since I upgraded to Promox 8, I cannot install the packages lxc-templates
apt -y install lxc-templates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
lxc-pve : Conflicts: liblxc1
Conflicts: lxc
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

but installing new lxc containers from download is broken, so I cannot create new pure LXC containers.
I don't use proxmox containers, just KVM virtual machines.
Any idea?
You don't need this package
lxc-templates
Just run
Code:
pveam update
And then
Code:
pveam available

After that you can download templates from proxmox web-ui
Go to the storage, select CT Templates, and Templates
Screenshot_86.jpg
Or you can download templates from cli
Code:
pveam download <storage> <template>
 
  • Like
Reactions: Dunuin
I did this and the templates are very limited. For instance, no Centos 8 Stream and 7. Many times I need to add those old versions because some apps require them.
 
CentOS7 is too old and doesn't support cgroup2 and isn't supported since PVE7:
https://pve.proxmox.com/wiki/Roadmap#Proxmox_VE_7.0 said:
  • Container:
    • cgroupv2 support by the container’s OS is needed to run in a pure cgroupv2 environment. Containers running systemd version 231 or newer support cgroupv2 [1], as do containers that do not use systemd as init system in the first place (e.g., Alpine Linux or Devuan).
    CentOS 7 and Ubuntu 16.10 are two prominent examples for Linux distributions releases, which have a systemd version that is too old to run in a cgroupv2 environment, for details and possible fixes see: https://pve.proxmox.com/pve-docs/chapter-pct.html#pct_cgroup_compat
 
there is an update that takes systemd to version 234, and that works fine with pve 8. So the template should be there.
Please google the update. it's in epel.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!