Repository navigation
CloudLinux VM not recognized #240
Description
Activity
Hey @adamjstewart, do you know where the CPE is provisioned in such an environment ?
Thanks, bye 👋What is a CPE?
Common Platform Enumeration, look at
hostnamectloutput.
I'll do some research on my own soon.Hostnamectl output is attached above. Is there something else you need from me?
So we are looking for
OperatingSystemPrettyNameandOperatingSystemCPENameD-Bus attributes (see sources).If we can manage to fetch them without reading from the bus (maybe they are provisioned on the file system too ?), we could then implement a trivial CPE parser and extract information from there.
I recursively grepped the entire OS for those strings but didn't find anything useful. Maybe it would be easier to build a
hostnamectlparser?Thanks for trying this.
hostnamectl --json=shortcould make this straightforward.Maybe we are missing something, and others got a better idea ?
Another way would be to read from D-Bus directly... A Python dependency is required though.
See you 👋This version of
hostnamectldoesn't have a--jsonoption.Reacted by Samuel FORESTIERSo
re.searcharoundhostnamectloutput, or something like dcar if we want to stop calling binaries directly in the future.Reacted by Adam J. StewartComing to join the conversation here as my issue #368 was basically a duplicate.
Happy to help test any potential solutions on my GoDaddy CloudLinux 8 server. As discussed in my issue
hostnamectlis not available in that environment.Reacted by Samuel FORESTIERHello again @NebularNerd !
We can start by checking whether the above "D-Bus way" works in your environment too.
bustctlis another systemd binary but if you have it, could you run :busctl get-property org.freedesktop.hostname1 /org/freedesktop/hostname1 org.freedesktop.hostname1 OperatingSystemPrettyName?
If it isn't, could you give a try todbus-send --system --print-reply --dest=org.freedesktop.hostname1 /org/freedesktop/hostname1 org.freedesktop.DBus.Properties.Get string:org.freedesktop.hostname1 string:OperatingSystemPrettyName?Thanks ! Bye 👋
Hello again @NebularNerd !
We can start by checking whether the above "D-Bus way" works in your environment too.
bustctlis another systemd binary but if you have it, could you run :busctl get-property org.freedesktop.hostname1 /org/freedesktop/hostname1 org.freedesktop.hostname1 OperatingSystemPrettyName? If it isn't, could you give a try todbus-send --system --print-reply --dest=org.freedesktop.hostname1 /org/freedesktop/hostname1 org.freedesktop.DBus.Properties.Get string:org.freedesktop.hostname1 string:OperatingSystemPrettyName?Thanks ! Bye 👋
Hi @HorlogeSkynet 🙂
bustctlanddbus-sendare a bust, both are not available- This looks to affect Cloud Linux 7 as well Incorrect platform for CloudLinux OS prisma/orm#13977 (comment)
- From this page it implies that beyond the
unameoutput not much else exists for this platform.
What a shame... I wonder whether we should opt for a simpler approach like checking for
/usr/sbin/cloudlinux-selectorpresence, and hope for upstream to properly include an os-release (or any other indicative) file. What do you think ? 🙄Note : this wouldn't give us the version, nor the "pretty name".
EDIT : if we wanna stick to the D-Bus way (and if we cannot manage to directly retrieve what D-Bus queries), we have to come up with a first Python script to dialog with D-Bus if you don't have any system tool to do so 🤡
9 remaining items
Hello @NebularNerd ! Could you please take a look/give a try to #369 RFC ? 🙂
Thanks bye 👋Tested #369 on the GoDaddy 🥔 server and we have a winner 🎉
{ "codename": "", "id": "cloudlinux", "like": "", "version": "8", "version_parts": { "build_number": "", "major": "8", "minor": "" } }Awesome, we only have to wait for @python-distro/maintainers to properly review #369 then 🙂
Many thanks for your time and resources Andy, see you 👋Reacted by Andy- added a commit that references this issue
on Dec 30, 2024 - added 5 commits that reference this issue
on Nov 1, 2025 CloudLinux VM 6 is dead, long live CloudLinux VM 9: https://cloudlinux.zendesk.com/hc/en-us/articles/5743930542620-CloudLinux-OS-life-cycle
@HorlogeSkynet I think it would be wise to adopt an official policy of only fixing bugs for versions of OSes that are still supported. That can easily end a lot of debates.
Reacted by Samuel FORESTIERI think it would be wise to adopt an official policy of only fixing bugs for versions of OSes that are still supported. That can easily end a lot of debates.
I second that.
- prefer redirecting to upstream distributions patches, to honor existing datasources and their format
- downstream (simple) patches for non-EOL distributions
For reference, this issues was partially related to #262.
Reacted by Adam J. Stewart- added a commit that references this issue
on Aug 28, 2026
I've encountered a CloudLinux VM that
distrois unable to recognize:The problem is that none of the normal search strategies work:
The only strategy that seems to work is:
We may need to add another search strategy to support this type of VM.