Thanks
]]>In case I get the qxl-driver to work without crashing my arch-guest, I'm going to report here how, And in that case I'm going to mark the topic as solved. Give me a couple of days.
]]>virsh qemu-agent-command archvm '{"execute":"guest-info"}'
gives me
{"return":{"version":"4.1.0","supported_commands":[{"enabled":true,"name":"guest-get-osinfo","success-response":true},{"enabled":true,"name":"guest-get-timezone","success-response":true},{"enabled":true,"name":"guest-get-users","success-response":true},{"enabled":true,"name":"guest-get-host-name","success-response":true},{"enabled":true,"name":"guest-exec","success-response":true},{"enabled":true,"name":"guest-exec-status","success-response":true},{"enabled":true,"name":"guest-get-memory-block-info","success-response":true},{"enabled":true,"name":"guest-set-memory-blocks","success-response":true},{"enabled":true,"name":"guest-get-memory-blocks","success-response":true},{"enabled":true,"name":"guest-set-user-password","success-response":true},{"enabled":true,"name":"guest-get-fsinfo","success-response":true},{"enabled":true,"name":"guest-set-vcpus","success-response":true},{"enabled":true,"name":"guest-get-vcpus","success-response":true},{"enabled":true,"name":"guest-network-get-interfaces","success-response":true},{"enabled":true,"name":"guest-suspend-hybrid","success-response":false},{"enabled":true,"name":"guest-suspend-ram","success-response":false},{"enabled":true,"name":"guest-suspend-disk","success-response":false},{"enabled":true,"name":"guest-fstrim","success-response":true},{"enabled":true,"name":"guest-fsfreeze-thaw","success-response":true},{"enabled":true,"name":"guest-fsfreeze-freeze-list","success-response":true},{"enabled":true,"name":"guest-fsfreeze-freeze","success-response":true},{"enabled":true,"name":"guest-fsfreeze-status","success-response":true},{"enabled":true,"name":"guest-file-flush","success-response":true},{"enabled":true,"name":"guest-file-seek","success-response":true},{"enabled":true,"name":"guest-file-write","success-response":true},{"enabled":true,"name":"guest-file-read","success-response":true},{"enabled":true,"name":"guest-file-close","success-response":true},{"enabled":true,"name":"guest-file-open","success-response":true},{"enabled":true,"name":"guest-shutdown","success-response":false},{"enabled":true,"name":"guest-info","success-response":true},{"enabled":true,"name":"guest-set-time","success-response":true},{"enabled":true,"name":"guest-get-time","success-response":true},{"enabled":true,"name":"guest-ping","success-response":true},{"enabled":true,"name":"guest-sync","success-response":true},{"enabled":true,"name":"guest-sync-delimited","success-response":true}]}}
but not as the normal user who is member of the group libvirt, then it says
Error: retrieval of domain 'archvm' failed
/usr/bin/qemu-system-x86_64 is running as nobody ps tells me.
]]>Moving to NC...
]]>Host setup
uname -a
------ 4.19.71-1-lts #1 SMP Fri Sep 6 ------ 2019 x86_64 GNU/Linux
pacman -Q virt-manager qemu qemu-arch-extra spice spice-gtk spice-protocol libvirt
virt-manager 2.2.0-2
qemu 4.1.0-1
qemu-arch-extra 4.1.0-1
spice 0.14.2-1
spice-gtk 0.37-1
spice-protocol 0.14.0-1
libvirt 5.5.0-1
Guest setup
uname -a
------ 5.2.13-arch1-1-ARCH #1 SMP PREEMPT Fri Sep 6 ------ 2019 x86_64 GNU/Linux
pacman -Q qemu-guest-agent spice-vdagent spice-protocol xf86-video-qxl
qemu-guest-agent 4.1.01
spice-vdagent 0.19.0-1
spice-protocol 0.14.0-1
xf86-video-qxl 0.1.5-7
On the guest
1) qemu-ga.service is enabled, loaded and running
2) spice-vdagentd.socket is loaded and listening
3) spice-vdagentd.service can not be enabled (no installation config), but is has been started manually by me, is loaded and running
4) the guest agent socket exists
ls -al /run/spice-vdagentd/spice-vdagent-sock
srw-rw-rw- 1 root root 0 11 Sep 11:02 /run/spice-vdagentd/spice-vdagent-sock
libvirt/virsh/virt-manager settings stored in /etc/libvirt/qemu/archvm.xml
5) at the moment I'm using virtio-video, because qxl-video keeps on crashing the guest a few seconds after Xserver/LightDM has started
6) display spice ist set to <listen type="none"/>, otherwise qemu-system-x86_64 says "SPICE GL support is local-only for now and incompatible with -spice port/tls-port"
7) settings of virtio-video and qxl-video look like follows, respectively, without using the later because as said before qxl crashes the guest
<video>
<model type="virtio" heads="1" primary="yes">
<acceleration accel3d="yes"/>
</model>
<address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
</video>
<video>
<model type="qxl" ram="131072" vram="131072" vgamem="131072" heads="1" primary="yes"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
</video>
8) settings of channel qemu-ga and channel spice display look as follows
<channel type="unix">
<source mode="bind" path="/var/lib/libvirt/qemu/channel/target/domain-24-archvm/org.qemu.guest_agent.0"/>
<target type="virtio" name="org.qemu.guest_agent.0" state="connected"/>
<alias name="channel0"/>
<address type="virtio-serial" controller="0" bus="0" port="1"/>
</channel>
<channel type="spicevmc">
<target type="virtio" name="com.redhat.spice.0" state="disconnected"/>
<alias name="channel1"/>
<address type="virtio-serial" controller="0" bus="0" port="2"/>
</channel>
On the host
9) the guest agent socket exists
ls -al /var/lib/libvirt/qemu/channel/target/domain-24-archvm
srwxrwxr-x 1 nobody kvm 0 11. Sep 08:33 org.qemu.guest_agent.0
10) tail/less/nano /var/log/libvirst/qemu/archvm.log hasn't been helpful so far
What am I missing? I'm happy to provide logs, if someone is able to suggest where to look.
Just in case... of course I've read https://wiki.archlinux.org/index.php/QEMU.
]]>