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 688759 - support key to tell desktop whether or not to behave differently if virtualization is detected
support key to tell desktop whether or not to behave differently if virtualiz...
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: power
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on: 684801
Blocks:
 
 
Reported: 2012-11-20 22:45 UTC by Colin Walters
Modified: 2013-01-14 14:22 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
power: Allow overriding the VM detection (2.47 KB, patch)
2013-01-14 09:22 UTC, Bastien Nocera
committed Details | Review

Description Colin Walters 2012-11-20 22:45:03 UTC
+++ This bug was initially created as a clone of Bug #684801 +++

1) I plan to use VMs as a testing tool, and having the system behave
differently makes it more likely that bugs will make it to people who actually
run GNOME on bare metal.  Especially bugs in subsystems like this.

2) Some people want to deploy GNOME in VMs by default, where the host is just a
thin hypervisor.  In this scenario, they often want behaviors that make the
system feel like a "real" host.

Anyways, If we go this way, I'd really like a GNOME-global switch to disable
any special behaviors when run as a VM.  Maybe gnome-settings-daemon should
have a gsettings key "enable-virtualization-customization"?  It could default
to true.
Comment 1 Matthias Clasen 2012-11-21 10:25:21 UTC
What do you consider customization ?
Is showing 'running kvm' in the info panel already out ?
Comment 2 Colin Walters 2012-11-21 11:04:27 UTC
(In reply to comment #1)
> What do you consider customization ?
> Is showing 'running kvm' in the info panel already out ?

That's fine - it's not a functional change.
Comment 3 Bastien Nocera 2012-12-18 16:57:51 UTC
I would implement this through a kernel command-line option (as we do to override the fallback mode for example). It survives session changes and can be changed globally with minimum fuss.
Comment 4 Bastien Nocera 2013-01-02 13:19:49 UTC
I'll close this as we don't want a key in GSettings.

This should get documented in the sysadmin guide (and/or the release notes) along with the kernel command-line options used by gnome-session.
Comment 5 Bastien Nocera 2013-01-14 09:22:09 UTC
Created attachment 233423 [details] [review]
power: Allow overriding the VM detection

In some cases we want the power plugin running in a virtual machine
to behave as it would on bare metal. The gnome.is_vm=[01] kernel
command-line argument allows us to override the detection that
would be done through systemd.
Comment 6 Bastien Nocera 2013-01-14 14:21:58 UTC
Attachment 233423 [details] pushed as 6dde03d - power: Allow overriding the VM detection