<div dir="ltr"><div>As soon as spice-vdagent package is installed, so is the spice-vdagentd daemon and it also starts running. Yet I always need to manually run spice-vdagent command...</div><div><br></div><div>How do I specify an output directory for the agent to file transfer?</div><div><br></div><div>I don't think it's remote-viewer's fault, because I also tested with a Windows guest. With all SPICE stuff properly installed, everything works out of the box: clipboard, resizing, file transfer from host to guest. With "properly installed" I mean: installed SPICE drivers manually from virtio-win ISO by loading them since the Windows installation beforehand, then once booted into Windows downloaded the vdagent ZIP from spice-space website and manually installed the service according to instructions.</div><div><br></div><div>As additional detail, in QEMU I use the option "-display spice-app", which automatically starts remote-viewer; though curiously it doesn't seem to create a virt-viewer directory inside ~/.config unlike when running remote-viewer manually...</div><div><br></div><div>Thanks again.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 14 oct 2022 a las 12:41, Frediano Ziglio (<<a href="mailto:freddy77@gmail.com">freddy77@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il giorno gio 13 ott 2022 alle ore 16:58 Carlos González<br>
<<a href="mailto:piteccelaya@gmail.com" target="_blank">piteccelaya@gmail.com</a>> ha scritto:<br>
><br>
> Hello.<br>
><br>
> I'm trying a virtual machine with a live CD distribution called AntiX Linux, which is directly based on Debian.<br>
><br>
> I'm using direct QEMU commands.<br>
> In the VM configuration I have this for SPICE configuration:<br>
> "-vga qxl -device virtio-serial-pci -spice unix=on,addr=path/to/vm_spice.socket,disable-ticketing=on -chardev spicevmc,id=spicechannel0,name=vdagent -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \"<br>
> Then I boot the live ISO, double check that QXL driver is installed -which normally always is-, and install spice-vdagent package (version 20 here). I'm using remote-viewer (virt-viewer) to visualize the VM.<br>
><br>
> Up to this point, clipboard sharing with host still doesn't work, and trying to drag a file from host to guest results in an error "The agent is not connected".<br>
><br>
<br>
This error is normal if the agent is stopped.<br>
<br>
> So I manually run "spice-vdagent" command, and clipboard sharing now works, but trying to drag file from host to guest gives "File transfer is disabled". Also, automatic resolution change with window resizing doesn't work either.<br>
><br>
<br>
The fact that in this way the clipboard is running indicates that the<br>
agent is now working. You need to specify an output directory to the<br>
agent in order to get file transfer working.<br>
About the resolution change that's weird, I think that feature on<br>
Linux does not even require the agent running. Is it possible that the<br>
client (remove-viewer) is not set up to send resize to the guest<br>
automatically, there are some options on the menu.<br>
<br>
> Certainly, this live distro doesn't come with any spice-related packages installed by default, except for the QXL package.<br>
><br>
> Am I missing something here? Could someone help please?<br>
> Thanks beforehand.<br>
<br>
Frediano<br>
</blockquote></div>