I'm closing the gnome-control-center side of this issue since I believe that it's gnome-settings-daemon that is responsible for the different behavior in virtual machines.
** Changed in: gnome-control-center (Ubuntu) Status: In Progress => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769372 Title: Prompt the user when the power button is pressed on VirtualBox or QEMU-KVM guest To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1769372/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs