Flatpak gnome-boxes has no keyboard input inside VM
I have a Windows 7 VM, and when I use the flatpak version of Boxes, I have no keyboard input. I also cannot send CTRL+ALT+DEL through the menu. This is all the readout I get from the terminal:
lyam@deepin-office:~$ flatpak run org.gnome.Boxes
(gnome-boxes:3): Gtk-WARNING **: 17:14:42.251: GtkFlowBox with a model will ignore sort and filter functions
(gnome-boxes:3): Gtk-WARNING **: 17:14:42.252: GtkListBox with a model will ignore sort and filter functions
Tracker-Message: 17:14:42.349: Could not get mtime for 'file:///home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': Error when getting information for file “/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db”: No such file or directory
(gnome-boxes:3): Tracker-WARNING **: 17:14:42.350: Falling back to bus backend, the direct backend failed to initialize: Could not open sqlite3 database:'/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': unable to open database file
(process:17): GLib-GIO-WARNING **: 17:14:42.407: Failed to get the 'connectivity' property
(process:17): GLib-GIO-WARNING **: 17:14:42.408: Failed to get the 'metered' property
(process:17): GLib-GIO-WARNING **: 17:14:42.408: Failed to get the 'available' property
I don't see anything about inputs, and I would guess that if the input was attempted to be sent but had an issue, that it would provide some sort of warning or error. I'm working on building this from source but I also have school so I may not get back to this for a week.
EDIT: I shutdown the VM and tried to open it again, boxes locked up, and now I'll have to reboot:
lyam@deepin-office:~$ flatpak run org.gnome.Boxes
(gnome-boxes:3): Gtk-WARNING **: 17:14:42.251: GtkFlowBox with a model will ignore sort and filter functions
(gnome-boxes:3): Gtk-WARNING **: 17:14:42.252: GtkListBox with a model will ignore sort and filter functions
Tracker-Message: 17:14:42.349: Could not get mtime for 'file:///home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': Error when getting information for file “/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db”: No such file or directory
(gnome-boxes:3): Tracker-WARNING **: 17:14:42.350: Falling back to bus backend, the direct backend failed to initialize: Could not open sqlite3 database:'/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': unable to open database file
(process:17): GLib-GIO-WARNING **: 17:14:42.407: Failed to get the 'connectivity' property
(process:17): GLib-GIO-WARNING **: 17:14:42.408: Failed to get the 'metered' property
(process:17): GLib-GIO-WARNING **: 17:14:42.408: Failed to get the 'available' property
Boxes-Message: 17:50:59.243: machine.vala:220: display Windows 7 disconnected
(gnome-boxes:3): Libvirt.GLib-CRITICAL **: 17:51:34.566: cannot finish stream: this function is not supported by the connection driver: virStreamFinish
(gnome-boxes:3): Boxes-WARNING **: 17:51:58.100: machine.vala:654: Failed to connect to Windows 7: Operation was cancelled
^C
lyam@deepin-office:~$ flatpak run org.gnome.Boxes
(gnome-boxes:3): Gtk-WARNING **: 17:52:40.672: GtkFlowBox with a model will ignore sort and filter functions
(gnome-boxes:3): Gtk-WARNING **: 17:52:40.673: GtkListBox with a model will ignore sort and filter functions
Tracker-Message: 17:52:40.801: Could not get mtime for 'file:///home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': Error when getting information for file “/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db”: No such file or directory
(gnome-boxes:3): Tracker-WARNING **: 17:52:40.803: Falling back to bus backend, the direct backend failed to initialize: Could not open sqlite3 database:'/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': unable to open database file
(process:17): GLib-GIO-WARNING **: 17:52:40.853: Failed to get the 'connectivity' property
(process:17): GLib-GIO-WARNING **: 17:52:40.853: Failed to get the 'metered' property
(process:17): GLib-GIO-WARNING **: 17:52:40.853: Failed to get the 'available' property
Error setting up default broker: Unable to open qemu+unix:///session: Failed to connect socket to '/run/user/1000/libvirt/libvirt-sock': No such file or directory
(gnome-boxes:3): Boxes-WARNING **: 17:52:46.065: (../src/app.vala:451):boxes_app_setup_default_source_co: runtime check failed: (default_connection != null)
^C
I reinstalled the libvirt0 package with apt.
lyam@deepin-office:~$ flatpak run org.gnome.Boxes
(gnome-boxes:3): Gtk-WARNING **: 17:53:41.817: GtkFlowBox with a model will ignore sort and filter functions
(gnome-boxes:3): Gtk-WARNING **: 17:53:41.818: GtkListBox with a model will ignore sort and filter functions
Tracker-Message: 17:53:41.914: Could not get mtime for 'file:///home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': Error when getting information for file “/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db”: No such file or directory
(gnome-boxes:3): Tracker-WARNING **: 17:53:41.914: Falling back to bus backend, the direct backend failed to initialize: Could not open sqlite3 database:'/home/lyam/.var/app/org.gnome.Boxes/cache/tracker/meta.db': unable to open database file
(process:16): GLib-GIO-WARNING **: 17:53:41.968: Failed to get the 'connectivity' property
(process:16): GLib-GIO-WARNING **: 17:53:41.968: Failed to get the 'metered' property
(process:16): GLib-GIO-WARNING **: 17:53:41.968: Failed to get the 'available' property
(gnome-boxes:3): Boxes-WARNING **: 17:53:44.313: machine.vala:636: Failed to start Windows 7: Unable to start domain: internal error: process exited while connecting to monitor: 2018-11-04T23:53:44.284836Z qemu-system-x86_64: -drive file=/home/lyam/.var/app/org.gnome.Boxes/data/gnome-boxes/images/boxes-unknown,format=qcow2,if=none,id=drive-ide0-0-0,cache=writeback: Failed to get "write" lock
Is another process using the image?
^C
I had to kill the process:
lyam@deepin-office:~$ top
top - 18:10:17 up 1 day, 13:31, 1 user, load average: 3.47, 1.53, 1.48
Tasks: 330 total, 9 running, 321 sleeping, 0 stopped, 0 zombie
%Cpu(s): 90.0 us, 9.3 sy, 0.0 ni, 0.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 15935.7 total, 6645.7 free, 3299.0 used, 5991.0 buff/cache
MiB Swap: 11912.0 total, 11868.7 free, 43.2 used. 12119.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5379 lyam 20 0 138568 109152 18496 R 73.1 0.7 0:02.20 cc1
5971 lyam 20 0 75728 46980 18308 R 18.3 0.3 0:00.55 cc1
5905 lyam 20 0 11020 3980 2428 S 7.0 0.0 0:00.21 bash
5929 lyam 20 0 11020 4048 2472 S 7.0 0.0 0:00.21 bash
6013 lyam 20 0 11016 4092 2544 S 7.0 0.0 0:00.21 bash
6034 lyam 20 0 11020 4056 2504 S 7.0 0.0 0:00.21 bash
6057 lyam 20 0 11020 3988 2472 R 7.0 0.0 0:00.21 bash
5992 lyam 20 0 11020 4004 2428 S 6.6 0.0 0:00.20 bash
6076 lyam 20 0 61192 31316 17656 R 4.7 0.2 0:00.14 cc1
21521 lyam 20 0 874528 132832 82484 S 4.7 0.8 30:38.83 dde-file-manage
3792 lyam 20 0 6173872 37492 1460 S 4.0 0.2 128:40.66 qemu-system-x86
3994 lyam 20 0 1565124 124140 48408 S 3.0 0.8 18:19.07 deepin-wm
3758 root 20 0 1044812 122728 86080 S 2.3 0.8 21:48.51 Xorg
6089 lyam 20 0 56628 21672 12932 R 2.0 0.1 0:00.06 cc1
863 lyam 20 0 11580 6980 1848 S 1.7 0.0 0:00.20 make
21847 lyam 20 0 612040 59468 23364 S 1.7 0.4 1:55.83 deepin-terminal
3125 lyam 20 0 910280 157224 66196 S 1.0 1.0 12:27.53 chrome
10414 lyam 20 0 2200428 223376 89972 S 0.7 1.4 2:56.87 Discord
9 root 20 0 0 0 0 S 0.3 0.0 0:01.96 ksoftirqd/0
10 root 20 0 0 0 0 I 0.3 0.0 0:59.51 rcu_sched
445 root 20 0 138828 33724 32164 S 0.3 0.2 1:32.34 systemd-journal
2374 message+ 20 0 49136 5416 3252 S 0.3 0.0 1:01.81 dbus-daemon
2379 deepin_+ 20 0 438380 15164 12428 S 0.3 0.1 0:05.54 deepin-anything
3048 root 20 0 585456 31348 26504 S 0.3 0.2 0:29.96 dde-file-manage
4623 lyam 20 0 4019848 1.2g 48056 S 0.3 7.7 6:20.43 TeamViewer
4816 lyam 20 0 1599520 52036 39808 S 0.3 0.3 0:12.32 dde-osd
5188 lyam 20 0 42796 3988 3092 R 0.3 0.0 0:00.01 top
6097 lyam 20 0 10628 3412 2468 R 0.3 0.0 0:00.01 bash
6423 root 0 -20 0 0 0 I 0.3 0.0 0:01.20 kworker/1:2H-kblockd
13124 root 20 0 0 0 0 I 0.3 0.0 0:00.05 kworker/4:0-events
13353 lyam 20 0 49992 4672 4072 S 0.3 0.0 0:53.95 wget
18358 lyam 20 0 6181324 48312 24436 S 0.3 0.3 0:04.45 qemu-system-x86
lyam@deepin-office:~$ sudo killall qemu-system-x86
[sudo] password for lyam:
qemu-system-x86: no process found
lyam@deepin-office:~$ sudo killall qemu-system-x86_64
qemu-system-x86_64: no process found
lyam@deepin-office:~$ sudo kill 3792
lyam@deepin-office:~$ sudo kill 18358
Now flatpak run org.gnome.Boxes
is working again... but still no keyboard input.