Skip to content

Glances in docker not able to show running VMs #3436

@lubomir-moric

Description

@lubomir-moric

Check the bug
I have searched existing issues and did not find a specific report regarding the missing libvirt dependencies in the Docker images, though it is a common requirement for the libvirt plugin to function.

Describe the bug
The Glances Docker images (both Alpine and Ubuntu versions) lack the necessary libvirt client libraries. Consequently, even when the libvirt socket is correctly mapped from the host to the container, Glances cannot initialize the libvirt plugin, making it impossible to monitor virtual machines from within the official Docker container.

Steps to reproduce the behavior:
Start Glances using Docker: glances/docker-compose/docker-compose.yml
Expected behavior When the libvirt socket is provided to the container, Glances should be able to use the pre-installed libvirt client libraries to display VM statistics.

Screenshots (N/A - Dependency error)

Environment
Operating System: Linux (Docker Host)
Glances & psutil versions: Glances v4.5.0.x
How do you install Glances: glances/docker-compose/docker-compose.yml

Pull Request Link: #3427

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions