-
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-viewer
with a pve-spice.vv file downloaded from proxmox web interfaceremote-viewer pve-spice.vv
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.
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.
-
Launch
Automator
and select Application from the dropdown list, when prompted. -
Search for
shell
and drag to the right. The contents:/usr/local/bin/remote-viewer "$@"
Make sure to select
as arguments
for passing the input. Save as~/Applications/pve-spice-launcher.app
. -
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
Enjoy!
Hi @Mrdindon ,
I just tested with Chrome and Firefox and I am getting
.vv
files extensions with Chrome and files without extensions from Firefox. I use Firefox primarily, and it all works correctly, so I'm guessing this should work with Safari too.Its been a long time, so I can't exactly remember how I got firefox functioning like this.. but it somehow knows to automatically open these files using the Automator script, just like Chrome for me, so perhaps Safari strips the
.vv
extension and just "knows" to open default program associated with.vv
files defined in your OS.Try manually associating a
.vv
file with the Automator script. I need to update the gist with better instructions but tryright clicking - > get info -> Open With -> Change All -> select the .app you just created
The
pve-spice.sh
script is pretty ancient (from old proxmox forums, and not even sure if it still works, lol) and is used for testing/debugging SPICE connections via CLI instead of web browser. It is not used to configure Proxmox or anything like that. a spice proxy is built into proxmox, just need to enable it on the VM and install the necessary drivers inside the VM