Bug #19692
closedOpening a libvirt VM console fails with fog-libvirt 0.4.0
Description
Works with 0.3.0, but with 0.4.0:
Failed to set console: Call to virDomainUpdateDeviceFlags failed: Operation not supported: cannot change keymap setting on vnc graphics
Files
Updated by Anonymous over 7 years ago
- Related to Refactor #19579: require fog-libvirt 0.4.0 added
Updated by Anonymous over 7 years ago
- Related to Bug #1644: Changing VNC keymap on a Libvirt VM (via virt-manager or virsh) causes web-based console to choke added
Updated by Santiago Ruiz over 7 years ago
This also affects version 1.15.1.
attached error log
Updated by Carlos Villanueva about 7 years ago
Santiago Ruiz wrote:
This also affects version 1.15.1.
attached error log
I can confirm that this issue is present on 1.15.2. I followed all the instructions on setting up NoVNC on Foreman 1.15.2. My Qemu/KVM server is running Centos 7 and I have SELINUX and IPTABLES disabled. My Foreman instance is running on Ubuntu 16.04. I can manage my KVM server from Foreman using the FQDN of the server and qemu+ssh, but whenever I launch the console I get:
Error: Failed to set console: Call to virDomainUpdateDeviceFlags failed: Operation not supported: cannot change keymap setting on vnc graphics
The instance I am trying to console into has en-us set as the keymap, there is no password, vnc is set up to listen on all interfaces and I have auto set up for the VNC port (5903).
If I manually set the VNC port to any port between 5910-5930 I get:
Error: Failed to set console: Call to virDomainUpdateDeviceFlags failed: Operation not supported: cannot change port settings on vnc graphics
In either case, I do not see websockify.py under processes, nor do I see anything significant in the production.log (with debug enabled). Every time I click on the console button, the only thing that pops up in the log is:
2017-07-17T11:03:25 f7a77f80 [app] [I] Current user: admin (administrator) 2017-07-17T11:03:25 f7a77f80 [app] [D] Setting current user thread-local variable to admin 2017-07-17T11:03:25 f7a77f80 [app] [I] Rendered compute_resources_vms/show/_libvirt.html.erb (28.5ms) 2017-07-17T11:03:25 f7a77f80 [app] [I] Rendered compute_resources_vms/show.html.erb within layouts/application (34.2ms) 2017-07-17T11:03:25 f7a77f80 [app] [I] Rendered layouts/_application_content.html.erb (0.4ms) 2017-07-17T11:03:25 f7a77f80 [app] [I] Rendered home/_user_dropdown.html.erb (3.7ms) 2017-07-17T11:03:25 f7a77f80 [app] [I] Read fragment views/tabs_and_title_records-3 (0.5ms) 2017-07-17T11:03:25 f7a77f80 [app] [I] Rendered home/_topbar.html.erb (5.9ms) 2017-07-17T11:03:25 f7a77f80 [app] [I] Rendered layouts/base.html.erb (8.8ms) 2017-07-17T11:03:25 f7a77f80 [app] [I] Completed 200 OK in 86ms (Views: 46.5ms | ActiveRecord: 2.0ms) 2017-07-17T11:03:25 686ab86a [app] [I] Started GET "/notification_recipients" for 198.51.100.51 at 2017-07-17 11:03:25 -0500
At this point, I think I've exhausted all possible options (to include updating the config settings in Firefox). I would really like to get this working if possible.
Cheers,
Carlos
Updated by Santiago Ruiz about 7 years ago
Also reported on the fog-libvirt project at:
https://github.com/fog/fog-libvirt/issues/42
Updated by Anonymous about 7 years ago
- Status changed from New to Assigned
- Assignee set to Anonymous
possible fix in https://github.com/fog/fog-libvirt/pull/43
Updated by The Foreman Bot about 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4784 added
Updated by Anonymous about 7 years ago
- Translation missing: en.field_release set to 240
Updated by Anonymous about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 9b960ab65719dddad390f2c56dc464070ee5df2c.