I was directed to this mailing-list by someone on the spice-devel
mailing-list (that exchanged is an attachment in this email).
With their help I've managed to get virt-viewer and remote-viewer
working as a single flatpak. If the user runs
`flatpak run org.virt_manager.virt-viewer`
they get `virt-viewer`, a `.desktop` entry also exists for
`remote-viewer`, which
is how remote-viewer is launched (like any other app on the system).
I started flatpaking virt-viewer and remote-viewer because I use Fedora
Atomic Workstation
(now named SilverBlue I think) and it recommends the use of packages
packaged as flatpaks.
My git repo can be found:
- https://github.com/adriankoshka/flathub/tree/org.virt_manager.virt-viewer
and my PR to flathub (a central repository of flatpak apps which makes
it easier to distribute flatpak apps):
- https://github.com/flathub/flathub/pull/391
I still need to work out some issues like:
- connecting to qemu:///system with virt-viewer (right now
qemu+ssh://user@ip/system works, I need to figure out how to pass the
host libvirt socket to the flatpak sandbox)
- USB redirection (It seems /dev within the flatpak is read-only, I'm
trying to find someone knowledgeable about how /dev is done within
flatpak's sandbox)
Some things I haven't tested:
- connecting to a VNC client
- WebDAV
- SASL
- building the flatpak for i386/arm/aarch64
I hope I've made a useful contribution by attempting to flatpak
virt-viewer and remote-viewer.
--- Begin Message ---
- To: Daniel P. Berrangé <berrange@xxxxxxxxxx>
- Subject: Re: [Spice-devel] Flatpaking virt-viewer/remote-viewer
- From: Adrian Lucrèce Céleste <adrianlucrececeleste@xxxxxxxxxx>
- Date: Wed, 16 May 2018 18:22:30 -0400
- Cc: spice-devel@xxxxxxxxxxxxxxxxxxxxx
- Delivered-to: adrianlucrececeleste@xxxxxxxxxx
- Delivered-to: spice-devel@xxxxxxxxxxxxxxxxxxxxx
- In-reply-to: <20180516090143.GA22413@redhat.com>
- References: <1b108d2c-f87f-e537-a94b-6dd621c7803d@airmail.cc> <20180514090534.GA29495@redhat.com> <f6d08ee2-c397-4da9-8ea0-a17aaa554916@airmail.cc> <20180516090143.GA22413@redhat.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
Thanks for pointing out the prefix thing with libvirt, and pointing me
to the correct mailing-list.
On 05/16/2018 05:01 AM, Daniel P. Berrangé wrote:
On Tue, May 15, 2018 at 10:27:32PM -0400, Adrian Lucrèce Céleste wrote:
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@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
You are not settig the paths for building libvirt, so it will default
to /usr/local, but all the versions built by distros will use
--prefix=/usr --sysconfdir=/etc --localstatedir=/var.
Thus it will be trying to run netcat with the wrong socket path
eg /usr/local/var/run/libvirt/libvirt-sock, instead of
/var/run/libvirt/libvirt-sock
BTW, the mailing list for virt-viewer is actually the virt-tools-list
https://virt-manager.org/communicate/
Regards,
Daniel
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel
--- End Message ---
_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list