[P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht herge

cmonty14

Well-Known Member
Mar 4, 2014
343
5
58
Hi,

I'm facing a problem using SPICE.
This is independant of the browser (tested with Firefox and Chromium), and independant of the OS in the guest.

The error message on the screen says:
"Verbindung zu libvirt mit URI [keine] konnte nicht hergestellt werden"

To get some more details, I've startet virt-viewer in CLI:
Code:
virt-viewer --debug -v Downloads/Download
(virt-viewer:8070): virt-viewer-DEBUG: Insert window 0 0x822b088
(virt-viewer:8070): virt-viewer-DEBUG: fullscreen display 0: 0
(virt-viewer:8070): virt-viewer-DEBUG: connecting ...
(virt-viewer:8070): virt-viewer-DEBUG: Opening connection to libvirt with URI <null>
Opening connection to libvirt with URI <null>
(virt-viewer:8070): virt-viewer-DEBUG: Add handle 10 1 0x828b7f8
(virt-viewer:8070): virt-viewer-DEBUG: Remove handle 1 10

The file Download/Download has this content:
Code:
cat Downloads/Download
[virt-viewer]
secure-attention=Ctrl+Alt+Ins
ca=-----BEGIN CERTIFICATE-----\nMIIDtzCCAp+gAwIBAgIJANNi9HnliVs9MA0GCSqGSIb3DQEBBQUAMHIxJDAiBgNV\nBAMMG1Byb3htb3ggVmlydHVhbCBFbnZpcm9ubWVudDEpMCcGA1UECwwgYzUzZmQ3\nMTA2ODE4MDRjZGVlMDViM2VlY2ViODM0NTIxHzAdBgNVBAoMFlBWRSBDbHVzdGVy\nIE1hbmFnZXIgQ0EwHhcNMTQxMDExMjEzOTMyWhcNMjQxMDA4MjEzOTMyWjByMSQw\nIgYDVQQDDBtQcm94bW94IFZpcnR1YWwgRW52aXJvbm1lbnQxKTAnBgNVBAsMIGM1\nM2ZkNzEwNjgxODA0Y2RlZTA1YjNlZWNlYjgzNDUyMR8wHQYDVQQKDBZQVkUgQ2x1\nc3RlciBNYW5hZ2VyIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA\nnynu4G+nD7L/bxmM9RNk0xqrM7nrn6spCdVNKiVuWMKbSoEbv925MyTx3Chi1xHR\ntQVAMqhSZ9dYirzJuWs/+/vR3N1ryjFySf05XKJWOW0WHBGgy/AcZoysT2rEH+vz\nMpuE3inNDPLJxJKlcaTfluqZ5fIMpJ786P4+oeXjFKM5vYebv8CJZN/bRQiaDSLO\n2IBCKzX6VdT5OBA4OAC8u28VCjDqMdxhgIaQmsBj7rPxa+AeVkqe6ytXkJI6XbKu\n1nCMiyomPTNP8CbLY1prmaebl+FJv224yDovwE+hPYzkLw8jdP4YLj1IS50L7xfN\nuLIHd1sc0rZd5B3gShP2EQIDAQABo1AwTjAdBgNVHQ4EFgQUgnduD2BQ6Nv0aK5U\ncTrxEZMA3DEwHwYDVR0jBBgwFoAUgnduD2BQ6Nv0aK5UcTrxEZMA3DEwDAYDVR0T\nBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAHWByBXJ/WrSW1k00/PA5AetiQxQS\n/95U1KRqEjzlroKftxYEuLPzeI+3H8aMP2BXh0byXPRqmnMID6tOFdN3K7vyKVJ8\nkBxW2Qqc0tfbv+46ZyY+aFpGpbDbbqpTBGKAQT4XAgbTV3niT3ZYu9c/hKaltHcc\nefXVL/qD+7Ng+NDMDHCCPJSofy1K4zbmKNWUI1HtFkMPTWKT09UkyEM2NMf2yqKP\nBGKU9/Qa6BM7aIkFM0dMtvjcHb8mQxRYqW7coRflD9GnLP8bQou3FXG0KEA6glCl\nDJwJ0fPXuQ2MHO9kNa3USedXyrBxmaGopR1x6vk+K6kbx6uIitBDTtesAQ==\n-----END CERTIFICATE-----\n
delete-this-file=1
host-subject=OU=PVE Cluster Node,O=Proxmox Virtual Environment,CN=pc6-gigabyte.local.de
host=pvespiceproxy:54f6ba17:110:pc6-gigabyte::ac7775718657ef32f28bdea9f499e13a83ba5888
password=b64790cb0d386b4484e9743fe539f97a118ea25e
release-cursor=Ctrl+Alt+R
type=spice
title=VM 110 - lmde-x86
proxy=http://192.168.100.10:3128
tls-port=61001
toggle-fullscreen=Shift+F11

I'm running a recent version of virt-viewer:
Code:
virt-viewer --version
virt-viewer Version 1.00

Why is SPICE failing?

THX
 
Last edited:
Re: [P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht h

The error message on the screen says:
"Verbindung zu libvirt mit URI [keine] konnte nicht hergestellt werden"

I'm running a recent version of virt-viewer:
Code:
virt-viewer --version
virt-viewer Version 1.00

Why is SPICE failing?

THX

Hello c.monty,

I had the same problem with virt-viewer. In my download of virt-viewer, there was a "remote-viewer.exe", which is working in my case...
Best regards,
susanne.
 
Re: [P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht h

I'm running Linux OS.
 
Re: [P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht h

I'm running Linux OS.

Then you should remove ".exe". ;)
(remote-viewer is contained in the package of virt-viewer of e.g. Mint etc.)
 
Last edited:
Re: [P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht h

Then you should remove ".exe". ;)
(remote-viewer is contained in the package of virt-viewer of e.g. Mint etc.)

1. I have installed package virt-viewer from Debian repository
2. I fear you are serious about removing .exe from the executable. I have no intention to follow this recommendation.

Is there anybody who could contribute to the root cause analysis?
I have provided the debug output... what else is required?

THX
 
Re: [P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht h

I think, you didn't get me...

The debian-package (virt-viewer), or the ubuntu-package, or linux-mint-package etc., contains:
Code:
/usr/bin/remote-viewer   <-- !
/usr/bin/virt-viewer 
/usr/share/applications/remote-viewer.desktop   <-- !
/usr/share/doc/virt-viewer/AUTHORS
...and more ...

The man-page for remote-viewer stated:
Code:
NAME
       remote-viewer - a simple remote desktop client

SYNOPSIS
       remote-viewer [OPTIONS] URI

DESCRIPTION
       remote-viewer is a simple remote display client. The supported
       protocols are SPICE and VNC.

In Linux-Mint (which is ubuntu, therefore debian, based) the *remote-viewer* is the default-desktop app for interpreting the file you mentioned, to have a *console/remote desktop*
to a VM regardless, if the VM is using a graphical user interface or a command-line.

Because you mentioned firefox, I thought you are interested in a desktop-app from the virt-viewer package, which could be used for the console->spice menu entry for a vm-entry.

If I'm wrong -> sorry!
 
Re: [P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht h

Hi,
witch version of virt-viewer you are using?

0.5.6 is necessary.
Debian wheezy has only 0.5.3 in repro.
 
Re: [P] Spice connection fails: "Verbindung zu libvirt mit URI [keine] konnte nicht h

Hi,

I have installed virt-viewer from Jessie:
apt-cache policy virt-viewer
virt-viewer:
Installiert: 1.0-1
Installationskandidat: 1.0-1
Versionstabelle:
*** 1.0-1 0
100 /var/lib/dpkg/status

virt-viewer --version
virt-viewer Version 1.00


remote-viewer --version
Remote-Viewer Version 1.00


I'm using exactly the same version on another PC without any issues.

THX