If I start up a virtual machine and then "open" from Virtual Machine manager how can I send F10 to it? When I press F10 the File menu option is selected on the VM Viewer.
The "Send Key" appears to be a hardcoded list of key combinations and the Print key, doesn't appear to be an option to tailor or provide an alternative?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[SOLVED] QEMU/KVM send F10
-
- Global Moderator
- Posts: 2709
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 201 times
Re: QEMU/KVM send F10
The GUI can't, use 'virsh send-key'
on second thought, you must be hitting F10 while the vm is not in focus, but the host viewer is. You don't need to 'send key'. F10 works fine in VM's
on second thought, you must be hitting F10 while the vm is not in focus, but the host viewer is. You don't need to 'send key'. F10 works fine in VM's
Re: QEMU/KVM send F10
so can I use that command if the VM has been started via Virtual Machine Manager?The GUI can't, use 'virsh send-key'
the help says the syntax is
Code: Select all
send-key domain [--codeset codeset] [--holdtime holdtime] keycode...
erm... it does have focus .. but I do get different behaviour depending on which VM I start.on second thought, you must be hitting F10 while the vm is not in focus, but the host viewer is. You don't need to 'send key'. F10 works fine in VM's
If I start a terminal, then start mc
on a VM running LMDE2 the F10 launches the terminal file menu aok.
But on a VM running Debian 9 the F10 results in the VM File menu being selected?
-
- Global Moderator
- Posts: 2709
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 201 times
Re: QEMU/KVM send F10
Focus is confused - pay close attention to mouse location -k829king wrote: But on a VM running Debian 9 the F10 results in the VM File menu being selected?
The only variation to focus is locking the kbm in the vm. Without this then a tablet like trigger will follow the host cursor - all context hints from this location - for the F10 to work, mouse needs to be within the window.
The VM has a Tablet device or not. Of course you need a viewer window!
If you are sending the keystroke to a running domain without a viewer...?
The domain is the name of the vm.
[SOLVED-ISH] Re: QEMU/KVM send F10
The mouse is within the boundaries of the terminal running mc, and besides other Function keys work on mc as expected, it is only the F10 that is not.Focus is confused - pay close attention to mouse location -
The only variation to focus is locking the kbm in the vm. Without this then a tablet like trigger will follow the host cursor - all context hints from this location - for the F10 to work, mouse needs to be within the window.
I don't understand this... there is no Tablet involved ... and I am viewing it via whatever "Open" on the Virtual Machine Manager provides.The VM has a Tablet device or not. Of course you need a viewer window!
If you are sending the keystroke to a running domain without a viewer...?
I triedThe domain is the name of the vm.
Code: Select all
$ virsh send-key deb9-vm KEY_F10
Code: Select all
error: failed to get domain 'deb9-vm'
So I have found a solution, though I don't know why it should affect it? The F10 key is passed correctly when the VM Details Display setting is set to SPICE. When it is on VNC the issue with F10 occurs.
-
- Global Moderator
- Posts: 2709
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 201 times
Re: QEMU/KVM send F10
The VM's have devices, 'Tablet' 'Mouse' 'Keyboard'. Tablet (optional) changes the behavior. How VNC differs I don't know, that's a win-centric and maybe wayland thing, I don't use it, the spice must flow.k829king wrote:. there is no Tablet involved
I thought only <CTRL><ALT> was trapped for the host. I've never seen this issue. There are changes recently for 'extra' keys and mouse wheels.
For VM's on the local machines as user add "-c qemu:///system"k829king wrote: deb9-vm is the name of the vm ?
Test as user;
Code: Select all
$ virsh list
$ virsh -c qemu:///system list
Re: [SOLVED] QEMU/KVM send F10
Thankyou
Does return expected deb9-vm
so
does what I need. this seems to work whether using VNC or Spice
and as found with Spice the F10 is honoured anyway.
So that returned an empty list, doh... but in my case$virsh list
Code: Select all
$sudo virsh list
so
Code: Select all
$sudo virsh send-key deb9-vm KEY_F10
and as found with Spice the F10 is honoured anyway.