Proxmox - SPICE client setup for MacOS
Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.
brew tap jeffreywildman/homebrew-virt-manager brew install virt-viewer
Once that's installed should be able make a call
remote-viewerwith a pve-spice.vv file downloaded from proxmox web interface
Check out this useful script for debugging. There are also several other cli tools like this one on GitHub that can be used to test the same sort of thing.
Improving Quality of Life
We want remote-viewer to automatically start and open the session when we double click the VM entry in proxmox. To do that we need to first create a small helper application.
Automatorand select Application from the dropdown list, when prompted.
shelland drag to the right. The contents:
Make sure to select
as argumentsfor passing the input. Save as
Locate a pve-spice.vv file and right click, and go to
Get Info -> Open With -> Change All, look for the .app file you just made.
In Chrome, click on the small arrow on the list of downloads at the bottom, and select "Always open files of this type"
If everything is set up correctly you should be able to double-click on the VM in the left pane of Proxmox and remote-viewer should start up and take care of the rest.
Note: the pve-spice.vv files will be automatically deleted by remote-viewer
@tomdaley92 Thanks, but I don't understand what's going on. It worked for a while and stopped for some reason.
I think the issue is with Mac OS. Now I have a warning when I try to associate the files with the script :
It complains that it does not have enough information to complete the association. If I proceed with it, it would associate the script only for that current file, but not the other files without extension...
EDIT : nevermind, I messed up with the script : I managed to get it work, at least in Firefox, not Mac OS