-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
I've encountered a CloudLinux VM that distro is unable to recognize:
$ distro
Name:
Version:
Codename:
$ python -c 'import distro; print(distro.linux_distribution())'
('', '', '')The problem is that none of the normal search strategies work:
$ which lsb_release
/usr/bin/which: no lsb_release in (...)
$ ls /etc/*release
ls: cannot access /etc/*release: No such file or directory
$ ls /etc/*version
ls: cannot access /etc/*version: No such file or directory
$ uname -a
Linux web.illinois.edu 3.10.0-962.3.2.lve1.5.24.9.el7.x86_64 #1 SMP Wed Feb 13 08:24:50 EST 2019 x86_64 x86_64 x86_64 GNU/Linux
$ cat /proc/version
Linux version 3.10.0-962.3.2.lve1.5.24.9.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Wed Feb 13 08:24:50 EST 2019The only strategy that seems to work is:
$ hostnamectl
Static hostname: web.illinois.edu
Icon name: computer-vm
Chassis: vm
Boot ID: 5b5b8c522ccd4974808f192aea001491
Virtualization: kvm
Operating System: CloudLinux 7.6 (Vladimir Lyakhov)
CPE OS Name: cpe:/o:cloudlinux:cloudlinux:7.6:GA:server
Kernel: Linux 3.10.0-962.3.2.lve1.5.24.9.el7.x86_64
Architecture: x86-64We may need to add another search strategy to support this type of VM.