question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CloudLinux VM not recognized

See original GitHub issue

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 (mockbuild@buildfarm02.cloudlinux.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Wed Feb 13 08:24:50 EST 2019

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

We may need to add another search strategy to support this type of VM.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
HorlogeSkynetcommented, Feb 8, 2022

So re.search around hostnamectl output, or something like dcar if we want to stop calling binaries directly in the future.

1reaction
adamjstewartcommented, Feb 6, 2022

This version of hostnamectl doesn’t have a --json option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CloudLinux VM not recognized · Issue #240 · python-distro/distro ...
I've encountered a CloudLinux VM that distro is unable to recognize: $ distro Name: Version: Codename: $ python -c ... CloudLinux VM not...
Read more >
Help me, How to login on VMware Images CloudLinux?
cloudlinux as password DOES NOT WORK in Cpanel Vmware or WHM, ... Finally clicking this ovf is recognized by vmware workstation pro.
Read more >
Installation - Documentation - CloudLinux
Replacing the server hardware affects specifications and support for such hardware from CloudLinux OS end. It is most likely that the CloudLinux OS...
Read more >
Administration - Cloudlinux OS Solo Documentation
This section contains information that will be useful for server administrators that want to automatize server configuration or do some unusual things which...
Read more >
CloudLinux OS Shared Pro - Documentation
If slow requests were not detected during the tracing task, the following is displayed. Here, you can also view all requests. X-Ray collects...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found