proxmox unsupported centos release 8

Posted 07 November, 2019

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 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

 

If you enjoyed this article, please consider buying me a Dr Pepper.
Fuel the beast!

Buy me a Dr PepperBuy me a Dr Pepper



Show Comments (3)
© SvennD