Discussion:
Spice issue with Arch (KDE) in QEMU/KVM
(too old to reply)
Nick Gilmour via arch-general
2017-10-11 15:28:48 UTC
Permalink
Raw Message
Hi all,

I've just installed the latest Arch with KDE as a VM with QEMU/KVM in
Virtual Media Manager. Everything seems to be working fine except
spice, so the resolution and copy/paste do not work. The spice-vdagent
and xf86-video-qxl are installed. There is not something wrong with my
host configuration since I have already two other 2 VMs which work
fine with spice. One with Fedora 26, which worked out of the box and
one with Ubuntu 16.04.3 for which I had only to install spice-vdagent
and now it also works fine.

Any ideas what is going on?

Regards,
Nick
Giancarlo Razzolini
2017-10-11 16:45:24 UTC
Permalink
Raw Message
Post by Nick Gilmour via arch-general
Hi all,
I've just installed the latest Arch with KDE as a VM with QEMU/KVM in
Virtual Media Manager. Everything seems to be working fine except
spice, so the resolution and copy/paste do not work. The spice-vdagent
and xf86-video-qxl are installed. There is not something wrong with my
host configuration since I have already two other 2 VMs which work
fine with spice. One with Fedora 26, which worked out of the box and
one with Ubuntu 16.04.3 for which I had only to install spice-vdagent
and now it also works fine.
Well, it's hard to what your issue might be, given that you didn't provide
any error or logs. Having said that, you need to install *and* start the
spice-vdagentd service. Contrary to fedora and ubuntu, arch does not enable
nor start anything for you.

Regards,
Giancarlo Razzolini
Nick Gilmour via arch-general
2017-10-11 22:29:20 UTC
Permalink
Raw Message
Thanks for the reply and the tip.

Yes, I have found this link:
http://www.linux-kvm.org/page/SPICE

which mentions enabling the spice-vdagentd service and I've done this.
The service is enabled and started but the problem remains (copy&paste
sometimes works sometimes not).

With:
$ xrandr --output Virtual-0 --auto
which for other OS I have tested works, Arch freezes.

All this with the latest kernel. At some point I tried to boot with
the LTS kernel. Again the same but this time the xrandr command works.
The screen resizes normally and I can copy&paste. Using the LTS kernel
instead of the latest kernel and issuing everytime the xrandr command
is not a really a issue to me. What bothers me is that the CPU is at
100% mainly because of the plasmashell and xorg. When I don't run
xrandr CPU is around 4%.

Here are some errors I havefound from journalctl:

Oct 11 22:11:33 arch-sd pulseaudio[464]: XIO: fatal IO error 1
(Operation not permitted) on X server ":0"
Oct 11 22:11:33 arch-sd kdeinit5[423]: The X11 connection broke: I/O
error (code 1)
Oct 11 22:14:59 arch-sd ksmserver[436]: Qt: Session management error:
networkIdsList argument is NULL
Oct 11 22:15:00 arch-sd kdeinit5[417]: org.kde.kcm_keyboard: Failed to
open layout memory xml file for reading
"/home/nick/.local/share/kded5/keyboard/session/layout_memory.xml"
error: 5


Oct 11 22:34:32 arch-sd pulseaudio[474]: XIO: fatal IO error 1
(Operation not permitted) on X server ":0"
Oct 11 22:34:32 arch-sd NetworkManager[241]: <warn> [1507754072.1687]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.protected: Authorization
check failed: Refusing activation, D-Bus is shutting down.
Oct 11 22:34:32 arch-sd NetworkManager[241]: <warn> [1507754072.1688]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.open: Authorization check
failed: Refusing activation, D-Bus is shutting down.
Oct 11 22:34:32 arch-sd kdeinit5[417]: The X11 connection broke: I/O
error (code 1)
Oct 11 22:34:32 arch-sd kernel: traps: ksmserver[436] general
protection ip:7f17d0646e98 sp:7ffe3c48d6d0 error:0 in
libQt5Core.so.5.9.2[7f17d04b2000+4e2000]
Oct 11 22:34:47 arch-sd ksmserver[448]: Qt: Session management error:
networkIdsList argument is NULL
Oct 11 22:34:47 arch-sd kdeinit5[420]: org.kde.kcm_keyboard: Failed to
open layout memory xml file for reading
"/home/nick/.local/share/kded5/keyboard/session/layout_memory.xml"
error: 5


Oct 11 23:07:51 arch-sd kwin_x11[473]: The X11 connection broke: I/O
error (code 1)
Oct 11 23:07:51 arch-sd pulseaudio[485]: XIO: fatal IO error 11
(Resource temporarily unavailable) on X server ":0"
Oct 11 23:07:51 arch-sd sddm[283]: Authentication error: "Process crashed"
Oct 11 23:07:51 arch-sd sddm[283]: Authentication error: "Process crashed"
Oct 11 23:07:51 arch-sd kdeinit5[420]: The X11 connection broke: I/O
error (code 1)
Oct 11 23:07:51 arch-sd NetworkManager[255]: <warn> [1507756071.1663]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.protected: Authorization
check failed: Refusing activation, D-Bus is shutting down.
Oct 11 23:07:51 arch-sd NetworkManager[255]: <warn> [1507756071.1666]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.open: Authorization check
failed: Refusing activation, D-Bus is shutting down.
Oct 11 23:12:48 arch-sd ksmserver[650]: Qt: Session management error:
networkIdsList argument is NULL
Oct 11 23:12:48 arch-sd kdeinit5[626]: org.kde.kcm_keyboard: Failed to
open layout memory xml file for reading
"/home/nick/.local/share/kded5/keyboard/session/layout_memory.xml"
error: 5


Oct 11 23:34:11 arch-sd sddm[478]: Authentication error: "Process crashed"
Oct 11 23:34:11 arch-sd sddm[478]: Authentication error: "Process crashed"
Oct 11 23:34:11 arch-sd baloorunner[788]: The X11 connection broke
(error 1). Did the X11 server die?
Oct 11 23:34:11 arch-sd kdeinit5[626]: The X11 connection broke: I/O
error (code 1)
Oct 11 23:34:11 arch-sd kglobalaccel5[643]: The X11 connection broke
(error 1). Did the X11 server die?
Oct 11 23:34:32 arch-sd ksmserver[439]: Qt: Session management error:
networkIdsList argument is NULL
Oct 11 23:34:32 arch-sd kdeinit5[421]: org.kde.kcm_keyboard: Failed to
open layout memory xml file for reading
"/home/nick/.local/share/kded5/keyboard/session/layout_memory.xml"
error: 5


Oct 11 23:38:36 arch-sd pulseaudio[486]: XIO: fatal IO error 11
(Resource temporarily unavailable) on X server ":0"
Oct 11 23:38:36 arch-sd kdeinit5[421]: The X11 connection broke: I/O
error (code 1)
Oct 11 23:38:36 arch-sd kwin_x11[476]: The X11 connection broke: I/O
error (code 1)
Oct 11 23:38:36 arch-sd kernel: traps: ksmserver[439] general
protection ip:7fcc7c83972c sp:7ffdd4593e70 error:0 in
libQt5Core.so.5.9.2[7fcc7c56d000+4e2000]
Oct 11 23:38:36 arch-sd NetworkManager[276]: <warn> [1507757916.1518]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.protected: Authorization
check failed: Refusing activation, D-Bus is shutting down.
Oct 11 23:38:36 arch-sd NetworkManager[276]: <warn> [1507757916.1518]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.open: Authorization check
failed: Refusing activation, D-Bus is shutting down.
Oct 11 23:39:38 arch-sd ksmserver[645]: Qt: Session management error:
networkIdsList argument is NULL
Oct 11 23:39:38 arch-sd kdeinit5[625]: org.kde.kcm_keyboard: Failed to
open layout memory xml file for reading
"/home/nick/.local/share/kded5/keyboard/session/layout_memory.xml"
error: 5


Oct 11 23:46:27 arch-sd kactivitymanagerd[724]: The X11 connection
broke (error 1). Did the X11 server die?
Oct 11 23:46:27 arch-sd kdeinit5[625]: The X11 connection broke (error
1). Did the X11 server die?
Oct 11 23:46:27 arch-sd NetworkManager[457]: <warn> [1507758387.2581]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.protected: Authorization
check failed: Refusing activation, D-Bus is shutting down.
Oct 11 23:46:27 arch-sd NetworkManager[457]: <warn> [1507758387.2590]
error requesting auth for
org.freedesktop.NetworkManager.wifi.share.open: Authorization check
failed: Refusing activation, D-Bus is shutting down.
Oct 12 00:00:19 arch-sd ksmserver[10680]: Qt: Session management
error: networkIdsList argument is NULL
Oct 12 00:00:21 arch-sd kdeinit5[10261]: org.kde.kcm_keyboard: Failed
to open layout memory xml file for reading
"/home/nick/.local/share/kded5/keyboard/session/layout_memory.xml"
error: 5


Oct 12 00:10:43 arch-sd kwin_x11[11089]: QXcbConnection: XCB error: 3
(BadWindow), sequence: 18361, resource id: 41943083, major code: 18
(ChangeProperty), minor code: 0


What can I do?

Regards,
Nick

On Wed, Oct 11, 2017 at 6:45 PM, Giancarlo Razzolini
Post by Giancarlo Razzolini
Post by Nick Gilmour via arch-general
Hi all,
I've just installed the latest Arch with KDE as a VM with QEMU/KVM in
Virtual Media Manager. Everything seems to be working fine except
spice, so the resolution and copy/paste do not work. The spice-vdagent
and xf86-video-qxl are installed. There is not something wrong with my
host configuration since I have already two other 2 VMs which work
fine with spice. One with Fedora 26, which worked out of the box and
one with Ubuntu 16.04.3 for which I had only to install spice-vdagent
and now it also works fine.
Well, it's hard to what your issue might be, given that you didn't provide
any error or logs. Having said that, you need to install *and* start the
spice-vdagentd service. Contrary to fedora and ubuntu, arch does not enable
nor start anything for you.
Regards,
Giancarlo Razzolini
Giancarlo Razzolini
2017-10-11 23:43:10 UTC
Permalink
Raw Message
Post by Nick Gilmour via arch-general
What can I do?
Well, first of all, stop top posting. Secondly, I think that KDE, by
default, enable desktop effects. It has been a while since I used it,
but I think you need OpenGL (either hardware or software emulated).

From the errors you sent, it's hard to tell. But it might be you don't
have enough memory assigned to your VM. Also you can try using virtio
device instead of QXL and enable OpenGL. Note that this is not the same
driver as xf86-video-qxl.

Regards,
Nick Gilmour via arch-general
2017-10-12 01:32:18 UTC
Permalink
Raw Message
Post by Giancarlo Razzolini
Well, first of all, stop top posting.
Gmail does this by default. I'll try not to do it.

Secondly, I think that KDE, by
Post by Giancarlo Razzolini
Post by Giancarlo Razzolini
default, enable desktop effects. It has been a while since I used it,
but I think you need OpenGL (either hardware or software emulated).
From the errors you sent, it's hard to tell. But it might be you don't
have enough memory assigned to your VM. Also you can try using virtio
device instead of QXL and enable OpenGL. Note that this is not the same
driver as xf86-video-qxl.
I've just tried KDE neon. Resolution works with the xrandr command and CPU
load is normal. But anyway I can't spent more time on it. I'll stick to
Ubuntu as guest.

Thanks

Loading...