VNC Option Not Available for VM Displays

draiko913

Cadet
Joined
Mar 22, 2023
Messages
2
I upgraded to the Cobra beta a couple days ago. Overall, it's running well, but I was not able to connect to any of my VMs with the realVNC client. It appears that the displays on each of my 3 VMs were converted to SPICE. I was able to open the web browser spice display, but would prefer to use the VNC client. I tried deleting the display, went to add a new one and no longer see the option to choose between spice and VNC. Is VNC no longer offered as an option for VMs?
 

NickF

Guru
Joined
Jun 12, 2014
Messages
763
TLDR; It looks like it was removed? IMO it's a moot point and you shouldn't use it anyway?

Hmmm. Typically I turn off/remove the displays devices after getting SSH or RDP setup because VNC is not particularly secure so I hadn't checked this after I upgraded. Been using SCALE as my hypervisor since the beginning...so this is interesting to me. Thanks for posting. :smile:

As an aside, I wouldn't recommend you use the "DISPLAY" feature in TrueNAS for anything other than debugging or initial setup purposes... SPICE or VNC are by their nature a security risk, you are literally exposing (unnecessary) console-level access to your systems over the network. In your case you are at least using a good VNC client, but unfortunately any bad


This VM has been off a while (since before I upgraded.)
1693361910491.png


It has an existing display device, and it does sees to have been converted to SPICE.
1693361950762.png



For giggle and laughs, I can confirm that I no longer see the VNC/SPICE option menu (when adding a new Display Device after the VM creation Wizard), IIRC that was present before. But for sure, it always defaulted to VNC.

I dug a bit deeper, and unless it was named something other than "novnc" it just seems be gone. I'd assume they chose to support SPICE over VNC and dropped one of them to have to maintain less packages. FWIW I had all sorts of problems with VNC throughout different versions of SCALE that made it unusable for me in the WebUI anyway.

It was a weird and highly inconsistent (but repeatable for those systems affected) problem that I saw crop up here from some other folks as well. I don't think anyone ever figured out exactly why some of the issues happened but they did improve the implementation over time. At one point I couldn't use it at all, and now it works most of the time...and when it doesn't a reboot fixes it. FWIW this only ever affected the WebUI button, using an external client like you are always worked.

My problem recap here is really only to express that I personally never really used an external NoVNC client for anything...other than testing because of my problem. I also prefer to use more secure methods of working on my VMs anyway. I'd bet alot of other folks here would agree with this as being a better workflow.

Obviously I haven't looked back at it since I upgraded last week...so I'm curious if SPICE solved my problem anyway. I never tried it before now. So thank you for the journey down this rabbit hole lol

Code:
root@prod[/]# find / -path /mnt -prune -o -name novnc -print
find: ‘/proc/2164464’: No such file or directory
find: ‘/proc/2164605’: No such file or directory
find: ‘/proc/2164610’: No such file or directory
find: ‘/proc/2164612’: No such file or directory
find: ‘/proc/2164613’: No such file or directory
find: ‘/proc/2164616’: No such file or directory
find: ‘/proc/2164617’: No such file or directory
find: ‘/proc/2164676’: No such file or directory
root@prod[/]#


Sidenote: What's interesting is the tooltip reports as being the bind port for VNC, which may just be a UI artifact that wasn't caught in pre-BETA testing.
1693361874214.png
 
Last edited:

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
On lower powered clients at least, Spice outperforms RDP and VNC. I tried them all for some Windows apps that are heavily graphical. I could watch the screen paint with some heavy use for VNC and RDP, whereas it's like I am using an attached hardware display with spice. You can at least add a password to the display in the VM, in a home environment, security not necessarily as important for VM displays IMHO.

In a business environment, that's a whole other ballgame.
 

draiko913

Cadet
Joined
Mar 22, 2023
Messages
2
Thanks for your replies. I tried using Burp Suite to intercept the post request when adding the display and changed the value from "SPICE" to "VNC" and it's telling me the option is invalid. So it appears that it was truly removed.

I am primarily a macOS user, but I run several windows VMs for testing. I haven't found a lot of options for spice clients, especially on iPad or iPhone. I was able to get a spice client loaded on my MacBook and it's working well enough for now. The apps that claim to support spice in the App Store look to all be paid and the reviews aren't great, so I'm a little hesitant on trying them.
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Does Remmina work on Mac? It has a Spice plugin.
 

Trevor68

Contributor
Joined
Oct 15, 2021
Messages
130
Mmm ok the button is missing, anybody care to run a crash course in "spice" so I can "see" my VM's again?
 

NickF

Guru
Joined
Jun 12, 2014
Messages
763
If you dont have this button:
1695434331484.png


It means you most likely don't have a display device for some reason. Go to devices

1695434354519.png

Press Add in the top right
1695434377909.png


and set it up
1695434412855.png
 

Trevor68

Contributor
Joined
Oct 15, 2021
Messages
130
Mmm both of my VM's still have display devices, just the buttons are missing.
 

Attachments

  • Screenshot 2023-09-23 144335.png
    Screenshot 2023-09-23 144335.png
    21.4 KB · Views: 310
  • Screenshot 2023-09-23 144352.png
    Screenshot 2023-09-23 144352.png
    14.9 KB · Views: 185
  • Screenshot 2023-09-23 144439.png
    Screenshot 2023-09-23 144439.png
    51.8 KB · Views: 196

mgspivey

Cadet
Joined
Dec 3, 2022
Messages
5
I just went and looked and my SPICE displays were not working. I notice they now want a password on the device. I just shut them down, deleted the device, added it back with password and they work again. They were not connecting or prompting for a password after upgrade from Beta to RC-1
 

Trevor68

Contributor
Joined
Oct 15, 2021
Messages
130
I too deleted mine and added a password, but still no button, my vm's use 5900 and 5901 can anybody explain what the web address would be?

Also they both say there is no display port even though i recreated the displays?
 

Attachments

  • Screenshot 2023-09-24 062018.png
    Screenshot 2023-09-24 062018.png
    14.9 KB · Views: 187
  • Screenshot 2023-09-24 062032.png
    Screenshot 2023-09-24 062032.png
    35.1 KB · Views: 165

ABain

Bug Conductor
iXsystems
Joined
Aug 18, 2023
Messages
172
I too deleted mine and added a password, but still no button, my vm's use 5900 and 5901 can anybody explain what the web address would be?

Also they both say there is no display port even though i recreated the displays?
The image suggests the VM is currently not enabled, I assume you have the same issue if you enable the VM?
 

Trevor68

Contributor
Joined
Oct 15, 2021
Messages
130
Absolutely, I started a new thread for spice not working, seeing as it's not really the same thing as VNC being removed
 

essinghigh

Dabbler
Joined
Feb 3, 2023
Messages
19

apl

Dabbler
Joined
Jul 11, 2021
Messages
15
I'm disappointed VNC support was dropped. I've used three different spice clients and the builtin web client on my Mac, but none of them perform like the builtin NoVNC used to, even in my local ethernet. The clients I've tried are:
  • aSpice from app store
  • the ancient RemoteViewer app bundle (this one grew to ~400GB memory consumption before I had to kill it)
  • remote-viewer from homebrew
The builtin NoVNC was usable even over my lousy internet connection, the spice clients are unresponsive even in my local network. They just randomly hang for a couple of seconds, and for example, triple clicking to select a line takes a second to actually show the line selected, whereas with NoVNC it was immediate.
 

gringo1er

Cadet
Joined
Sep 29, 2023
Messages
4
Hmmm removing VNC was a mistake.... No way to obtain a french keyboard through Spice, no way to copy past between VM and TN display.....

Removing VNC was a major regressive act. Now I am trying to find a way to come back to bluefin....
 

crownrai

Dabbler
Joined
Mar 12, 2023
Messages
11
Hmmm removing VNC was a mistake.... No way to obtain a french keyboard through Spice, no way to copy past between VM and TN display.....

Removing VNC was a major regressive act. Now I am trying to find a way to come back to bluefin....

I'm using the "remote-viewer.exe" application from the "virt-viewer" tool set on windows and it's working great so far: https://virt-manager.org/

Really fast screen update and clipboard goes both ways. Seems much faster than VNC ever was.
 

gringo1er

Cadet
Joined
Sep 29, 2023
Messages
4
I didn't know that this tool ever existed on windows. I recognize it when I install some qemu / kvm VM on ubuntu... I'll try this evening

Thank you for it
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Hmmm removing VNC was a mistake.... No way to obtain a french keyboard through Spice, no way to copy past between VM and TN display.....
Well, I am using Spice and I copy and paste all the time. It's definitely faster than vnc. No idea about other keyboards.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I know that there are various options all with different pros and cons for Linux. But why you folks use anything but RDP for Windows I fail to understand.
 
Top