How to view VM's desktop in a single click from a shortcut on my desktop ?

shodan

Active Member
Sep 1, 2022
159
45
33
Hi,

What is the standard way to have on my workstation's desktop

A shortcut which opens VM 1770's desktop in a window

No questions, no other actions, no open browsers anything else

I click that button, the VM's desktop is shown, every time without fail ?

What is the right way to do that ?

Preferably, I would like one shortcuts which opens in VNC, another which opens in my SPICE client (is there a windows SPICE client other than virt-viewer ?)
 
Well I could install sunshine and use moonlight client.
But I really would prefer to use proxmox's provided vnc or spice viewport, rather than install extra software on top of it all
 
xrdp require some settings depends of your Linux distro but out of the scope of PVE
Really ? Depend on used linux the xrdp package is enabled or disabled after install so just to check by systemctl if it's running now and after a reboot.
Then it still works.
 
Ok, you mean installing software inside the VM to act as an rdp server.

But I'm looking for a way to use VNC/SPICE already present in proxmox, which will work independently of what is going on inside the VM and without having to install extra software in it (except maybe the guest additions)
 
I found these older thread from 10 years ago


These appear to be about what I'm asking.

So what I need is some kind of script, that makes the request to the proxmox API, for some kind of ticket, and then use that to connect a locally running vnc client to pveproxy.

I imagine it would be very similar for use with a SPICE client.

Does such a script currently exist ?
 
  • Like
Reactions: waltar
I have discovered two scripts which try to automate to SPICE to VM connection procedure into something that only takes a few weekends to setup !

https://gitlab.com/pawlakm/pve-spice-connect

https://github.com/Corsinvest/cv4pve-pepper

https://git.proxmox.com/?p=pve-manager.git;a=blob_plain;f=spice-example-sh;hb=HEAD

Unfortunately, I'm on windows so I'll have to re-write them before I can use them, but it's a step in the right direction !

I found these in the following thread


and here is some more thread about SPICE related problems


So to recap, here are my SPICE problem

Mouse captured on focus and hard to release <-- biggest issue
Inaccurate mouse <---- severe issue, unusable
mouse movement "lumpy" or "sticky"
can't find spice vdagent binary for windows
Cannot one-click-connect
No audio
Slow frame rate
Clipboard exchange don't work
folder sharing don't work
SPICE usb passthrough not working
video stream might not be working
virt-viewer has no dark mode and pure white borders
virt-viewer does not respect windowmanager fancyzone & altsnap

Some more resources


https://pve.proxmox.com/wiki/SPICE

 
  • Like
Reactions: waltar and UdoB
I have finally found where windows spice vdagent was hidden !

https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.10.0/

specifically I have installed

https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.10.0/spice-vdagent-x64-0.10.0.msi

Here is the new status

!!! Mouse no longer captured !!!
Mouse is now accurate
Resize virtviewer window, change guest's resolution on the fly
clipboard <-> synchronization with host now works
audio works ->> add audio0: device=ich9-intel-hda,driver=spice

issues remaining, but at least it's usable now !


Cannot one-click-connect
Slow frame rate
folder sharing don't work
SPICE usb passthrough not working
virt-viewer has no dark mode and pure white borders
virt-viewer does not respect windowmanager fancyzone & altsnap
 
  • Like
Reactions: waltar