SPICE connection not working, HTTP proxy connection failed

headcase

New Member
Jul 7, 2019
10
0
1
39
I'm receiving an error when attempting to connect to a SPICE enabled machine. I'm not sure how to debug this issue, the port appears to be open and connectable, but connections from remote-viewer fails. Here is the debug information that is spit out when I try to connect.

Code:
xxx@xxx~$ remote-viewer --verbose --debug download
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:06.657: Opening display to download
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:06.660: Guest (null) has a spice display
Guest (null) has a spice display
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:06.692: ignoring [ovirt] section content as URL, VM GUID are missing from the .vv file
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:06.694: After open connection callback fd=-1
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:06.694: Opening connection to display at download
Opening connection to display at download
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:06.707: New spice channel 0x5b5d0207cdd0 SpiceMainChannel 0
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:06.707: notebook show status 0x5b5d01eae2d0
xkbcommon: ERROR: Key "<CAPS>" added to modifier map for multiple modifiers; Using Mod3, ignoring Lock
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:07.150: main channel: failed to connect HTTP proxy connection failed: 401
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:07.152: Destroy SPICE channel SpiceMainChannel 0
(remote-viewer:13929): virt-viewer-DEBUG: 15:37:07.152: zap main channel

The spice file provided by Proxmox looks like this

Code:
[virt-viewer]                                                                
password=xxx                
tls-port=61000
ca=xxx                            
secure-attention=Ctrl+Alt+Ins                                                        
proxy=http://xxx.xxx.xxx3128                                                      
title=VM 200 - kali                                                                  
type=spice                                                                           
host-subject=CN=xxx.xxx.xxx                                                       
toggle-fullscreen=Shift+F11                                                          
host=pvespiceproxy:5d28c608:200:vm::b41de9ad648bcbfe49084cc6e4c79763c089d2bb         
delete-this-file=1                                                                   
release-cursor=Ctrl+Alt+R

I do have an nginx proxy sitting in front of the management interface for Proxmox, if that would have some affect, although the SPICE port is just exposed.
 
What operating system is on your client? What is 'pveversion -v' on your host?

Did you follow the steps described in the wiki or have you edited something manually?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!