You are not logged in.

#1 2017-07-13 01:23:42

eric.boutet
Member
Registered: 2016-09-25
Posts: 13

Virt-Manager + Super key

Hello,

I'm facing a problem. I'm using virt-manager with qemu to run vm (arch or ubuntu) but I can't get super key pass through the vm. Even when I am full screen, if I hit the super key, I get the gnome menu of the host instead of the OS in VM.

any solution ?

Thanks a lot.

Offline

#2 2017-07-16 17:09:08

eric.boutet
Member
Registered: 2016-09-25
Posts: 13

Re: Virt-Manager + Super key

nobody ?

Offline

#3 2017-07-16 17:23:00

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Virt-Manager + Super key

eric.boutet wrote:

nobody ?

please don't do that

Offline

#4 2017-07-16 19:20:17

eric.boutet
Member
Registered: 2016-09-25
Posts: 13

Re: Virt-Manager + Super key

Sorry, I had not seen this rule. I'll be patient ! :-)

Offline

#5 2017-07-16 19:29:46

demaio
Member
From: Germany
Registered: 2012-09-02
Posts: 101
Website

Re: Virt-Manager + Super key

I cannot reproduce the behaviour you are seeing. I also use Gnome and virt-manager and the super/windows key opens the start menu of the guest VM (Win2012r2), if the mouse is inside the guest VM window.

Offline

#6 2017-07-16 19:51:23

eric.boutet
Member
Registered: 2016-09-25
Posts: 13

Re: Virt-Manager + Super key

Could it be related to specific computer ? I'm using Lenovo T420.

Should I install specific package ?

When I install virt-manager I did those steps below, am I missing something ?


1- Installing virt-manager
    # sudo pacman -Sy virt-manager

2- Enable NAT/DHCP networking
    # sudo pacman -Sy ebtables dnsmasq
   
3- Enable deamon at power-up
    # sudo systemctl enable libvirtd
   
4- Create KVM group to allow user to use virt-manager without prompting password.
    # sudo groupadd kvm
    # sudo usermod -aG kvm $USER
   
5- To use QEMU
    # sudo pacman -Sy qemu
    To enable it in virt-manager :
        - Open virt-manager
        - File -> Add connection
        - On hypervisor filed, select "QEMU/KVM"
        - Select "Autoreconnect"
       
6- To resolve "could not access KVM kernel module: Permission denied failed to initialize KVM: Permission denied'"   
    # sed -i '/group=/c\group=\"kvm\"' /etc/libvirt/qemu.conf

Offline

#7 2017-07-17 10:35:59

demaio
Member
From: Germany
Registered: 2012-09-02
Posts: 101
Website

Re: Virt-Manager + Super key

eric.boutet wrote:

1- Installing virt-manager
    # sudo pacman -Sy virt-manager

Partial upgrades are unsupported

Maybe some packages are outdated? Try to upgrade your system with

pacman -Syu

I still cannot reproduce your original problem with the super key catched by the host. I even tried switching between SPICE and VNC in the VM configuration, makes no difference...

EDIT: I can reproduce it now: If I use a Gnome wayland session (the "default"), the Super key is not passed through to the VM. If using Gnome on Xorg, the Super key is passed through to the VM. Interesting.

EDIT2: This is the upstream bug report

Last edited by demaio (2017-07-17 10:57:28)

Offline

#8 2017-07-21 00:17:38

eric.boutet
Member
Registered: 2016-09-25
Posts: 13

Re: Virt-Manager + Super key

Hello,

Thanks for helping me. I'll try to do not partially upgrade the system next time !

I'm not very familiar with wayland. I've seen today an upgrade to wayland-protocols 1.9.1 and when I look at the release note, I can see :

Version 1.9 introduced two new unstable protocols:

- Keyboard shortcut inhibitation - a protocol meant for making it possible for
   virtual machine viewers, remote desktop clients etc, to be able to forward
   keyboard combinations such as Alt-Tab etc.

So, as it is unstable, it could not works well, but is there a way to enable this feature ? As gnome comes with wayland by default, I would prefer stay with it.

Offline

#9 2017-09-08 10:38:59

f_fouad
Member
Registered: 2017-09-08
Posts: 8

Re: Virt-Manager + Super key

Hello,

I'm running gnome unstable and I confirm that support for keyboard combination forwarding has been added to the latest versions of gnome-shell and gnome-boxes under Wayland. ( Alt-Tab and Alt-F4 is working like for Xorg version)

Unfortunately, super key still opens shell overview. I don't know if there will be support for it later or this is a design choice.

Offline

Board footer

Powered by FluxBB