SPICE without having to download a VV file?

tmnr008

Member
Nov 16, 2022
7
1
8
I configured SPICE as the Display on some of my VMs. SPICE seems to work better than noVNC, especially with the ability to copy/paste. In order to use SPICE, I need to click 'Console->SPICE', which downloads a .VV file (virt-viewer file). Opening that file launches the local SPICE client. After ending the session, the .VV file is automatically deleted.

Is there a way to connect using SPICE without having to download a .VV file each time I want to connect?
Are there any security concerns with using SPICE vs noVNC within the browser?
Any other methods to remote into a VM that is better than noVNC & SPICE?
 
Last edited:
In order to use SPICE, I need to click 'Console->SPICE', which downloads a .VV file (virt-viewer file). Opening that file launches the local SPICE client.

Well, I use Librewolf/Firefox. And in my "Settings --> General --> Applications" I have an entry "Virt-Viewer connection file --> Use Remote-Viewer (default)". And it works as intended: when I click Console/Spice a new windows with the expected content opens immediately.

That's the good news, just as a confirmation.

Now the bad news: I can absolutely not remember how I configured it to work this way. Even my extensive (homelab-) documentation does not tell me... :-(
 
Well, I use Librewolf/Firefox. And in my "Settings --> General --> Applications" I have an entry "Virt-Viewer connection file --> Use Remote-Viewer (default)". And it works as intended: when I click Console/Spice a new windows with the expected content opens immediately.

That's the good news, just as a confirmation.

Now the bad news: I can absolutely not remember how I configured it to work this way. Even my extensive (homelab-) documentation does not tell me... :-(
I dont have a problem opening the .VV file, I am looking for a way to not have to click the 'SPICE' button via Proxmox UI. I was hoping for a way similar to RDP, type in the IP address and connect.
 
Last edited:
One way, yes. I've seen the first application doing something like that back in 2017 on the ProxTalks conference, yet haven't seen from it since then. There have been others mentioned over the years in the forums, yet I haven't kept track of them or even tried them. In my experience virt-viewer works absolutely great on Linux, yet any other OS besides Linux does not get very much love. On MacOS, I have a Linux VM running with virt-viewer, which gives a much better experience than just running it on MacOS if you can even get it running. I haven't tried it for years and also not with the aarch64 / M*-based Macs.
 
Regarding your first question, the most thorough discussion of the issue seems to be here: https://forum.proxmox.com/threads/remote-spice-access-without-using-web-manager.16561/

The short answer is "no, but there's a workaround". My understanding is that Proxmox has a SPICE proxy that operates on single-use auth tickets to control access to VMs, which is why you need a new .VV file every time.

The solutions in that thread generally use the Proxmox API to automatically create a new auth ticket and dynamically generate a .VV file, which is then used to launch virt-viewer, etc., with https://github.com/Corsinvest/cv4pve-pepper being one of several options given there.

The posts by Jonas S. on page 6 and 7 are very helpful in setting this up, and I am currently using his Powershell script without issue on Powershell 7.
 
Last edited: