SvennD
November 7, 2019

proxmox unsupported centos release 8

Posted on November 7, 2019  •  1 minutes  • 129 words  •  Suggest Changes

Finally got time to give Centos 8 a spin in a Proxmox Linux container (lxc); I downloaded the template, and started a container only to find its not possible :

extracting archive '/var/lib/vz/template/cache/centos-8-default_20191016_amd64.tar.xz'
Total bytes read: 673566720 (643MiB, 37MiB/s)
Detected container architecture: amd64
TASK ERROR: unable to create CT 100 - unsupported centos release 'CentOS Linux release 8.0.1905 (Core) '

I tried update & upgrade :

apt-get update && apt-get dist-upgrade

To no avail; Luckely Geekshack SecLabs (dead link) and his sed wizardry provided a workaround :

sed -i 's/ < 8) {/ < 9) {/' /usr/share/perl5/PVE/LXC/Setup/CentOS.pm

Then restart the pve daemon :

systemctl restart pveproxy pvedaemon

and bam, container is installed  :

extracting archive '/var/lib/vz/template/cache/centos-8-default_20191016_amd64.tar.xz'
Total bytes read: 673566720 (643MiB, 38MiB/s)
Detected container architecture: amd64
[-cut-]
TASK OK
Support

If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper