[Spice-devel] Flatpaking virt-viewer/remote-viewer

Adrian Lucrèce Céleste adrianlucrececeleste at airmail.cc
Wed May 16 02:27:32 UTC 2018


I've hit a bit of a snag with virt-viewer. I've got it compiled, 
running, but whenever I try to connect to a remote instance, I always 
get this:


[alc at xps org.virt_manager.virt-viewer]$ flatpak run 
org.virt_manager.virt-viewer --debug -c 
qemu+ssh://upsquared@192.168.10.192/system
(virt-viewer:2): virt-viewer-DEBUG: 22:21:30.782: connecting ...
(virt-viewer:2): virt-viewer-DEBUG: 22:21:30.783: Opening connection to 
libvirt with URI qemu+ssh://upsquared@192.168.10.192/system
Enter passphrase for key '/home/alc/.ssh/id_rsa':
(virt-viewer:2): virt-viewer-DEBUG: 22:21:38.758: Error: End of file 
while reading data: Ncat: No such file or directory.: Input/output error

Connecting to that URI via virt-manager on the same machine just works. 
I just don't know what I'm doing wrong.


Here is my current flatpak manifest:

https://github.com/AdrianKoshka/flathub/blob/org.virt_manager.virt-viewer/org.virt_manger.virt-viewer.json


On 05/14/2018 05:05 AM, Daniel P. Berrangé wrote:
> On Sun, May 13, 2018 at 05:23:12PM -0400, Adrian Lucrèce Céleste wrote:
>> I thought it'd be polite to notify upstream that I've been working on a
>> flatpak for virt-viewer/remote-viewer.
>> My progress can be found here:
>> https://github.com/adriankoshka/flathub/tree/org.virt_manager.virt-viewer
>>
>> I have most functionality of remote-viewer working, such as:
>>
>> - screenshots
>> - sending keys
>> - connecting to a client (SPICE)
>>
>> Some things I haven't tested:
>>
>> - connecting to a VNC client
>> - WebDAV
>> - SASL
>> - building the flatpak for i386/arm/aarch64
>>
>> Things that seem broken:
>>
>> - USB redirection (this will always be tricky with flatpak though)
>>    - log from flapak of the error:
>> https://gist.github.com/AdrianKoshka/41142cf788136ae32ff64c1e5283c063
>>    - image of the error remote-viewer displays:
>> https://i.imgur.com/ZsQjpYT.png (also attached to the email)
>>
>> I intend to submit a PR to flathub and get this flatplak available on
>> flathub.
> Did this actually build the virt-viewer binary ? You don't seem to
> have built libvirt, so how can virt-viewer be built ?
>
>
> Regards,
> Daniel



More information about the Spice-devel mailing list