After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685531 - info: show when running in a container / virtualized
info: show when running in a container / virtualized
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Other Preferences
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-04 21:45 UTC by Matthias Clasen
Modified: 2012-10-17 08:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
info: Detect and display Virtualisation method used (9.16 KB, patch)
2012-10-15 17:40 UTC, Bastien Nocera
none Details | Review
info: Detect and display Virtualisation method used (9.17 KB, patch)
2012-10-16 05:39 UTC, Bastien Nocera
none Details | Review

Description Matthias Clasen 2012-10-04 21:45:50 UTC
This might be nice information to show in the system info tab. Systemd just gained api to query this, see bug 684801 for the details, or see

http://www.freedesktop.org/wiki/Software/systemd/dbus
Comment 1 Bastien Nocera 2012-10-15 17:40:34 UTC
Created attachment 226497 [details] [review]
info: Detect and display Virtualisation method used

Using systemd's "Virtualization" property on the systemd manager
object. We translate the raw names (as detected by systemd-detect-virt)
into (barely) human readable strings.
Comment 2 Bastien Nocera 2012-10-15 17:46:38 UTC
2 questions then:
- do we need to translate the virtualisation technologies' names? Could you please review them for sanity?
- does it work? My systemd is too old, and I don't have virtual machines setup (though I'll try and remedy that).
Comment 3 Lennart Poettering 2012-10-15 23:17:25 UTC
(In reply to comment #2)
> 2 questions then:
> - do we need to translate the virtualisation technologies' names? Could you
> please review them for sanity?

There's an error in the table: one "kvm" should be "qemu".

Also note that there is the special value of "other" which means that virtualization was detected, but it's not known what kind of.

> - does it work? My systemd is too old, and I don't have virtual machines setup
> (though I'll try and remedy that).

It looks alright. I'll upload a new version to F18 tomorrow (I hope at least).
Comment 4 Bastien Nocera 2012-10-16 05:39:39 UTC
Created attachment 226523 [details] [review]
info: Detect and display Virtualisation method used

Using systemd's "Virtualization" property on the systemd manager
object. We translate the raw names (as detected by systemd-detect-virt)
into (barely) human readable strings.
Comment 5 Bastien Nocera 2012-10-17 08:00:28 UTC
commit aecd7c860ded37e14ec27e7dda3122cb6782df00
Author: Bastien Nocera <hadess@hadess.net>
Date:   Mon Oct 15 19:36:50 2012 +0200

    info: Detect and display Virtualisation method used
    
    Using systemd's "Virtualization" property on the systemd manager
    object. We translate the raw names (as detected by systemd-detect-virt)
    into (barely) human readable strings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685531