Ubuntu Server VM not allowing connection to VNC Viewer

Good Afternoon,

Basic info: TrueNAS Ver 25.10.4, no other VMs in use, or apps, its a fresh install.

I would also like to say that I reached out on the discord already and tried a few things, and these are the steps I’ve Tried:

  1. I downloaded X2go client

  2. I have verified the port in the config, 5900 and 5901 for the Desktop VM.

  3. I have tried to connect using so many different host name setups.

  4. I’m sure its something silly that i’m missing, but I’m new to Truenas and have no idea what it is lol.

  5. Verified that my pc can see that ip/port via Powershell.

  6. Verified that Truenas can see it as well using sudo ss -tulnp | grep :5900/5901

  7. I’ve tried both SPICE and X2Go to connect to the VM.

  8. I tried both a ubuntu server and desktop iso, same issue with both.

Any ideas would be apricated.

No idea eh.

Ubuntu Server does not have a GUI. You must use the console (spice display) and then install ssh server.

Ubuntu Desktop does have a GUI, but the default out of the box configuration does NOT have VNC installed and it does have Windows RDP functionality, but it is disabled by default.

2 choices:

-Add the Spice Display in the VM config, so you can simply open a web page with the Ubuntu built-in GUI Console. You can then open the desktop settings and enable RDP if you want. (but it does not support sound!?).

-Install VNC, or, like I used to do before the latest Ubuntu Desktop, I would add, compile xrdp, with support for sound! (you can still do it with a different window manager).

Hmm interesting ok. How do I add a SPICE Display in the VM config?

I’ve already tried to install VNC, well I used Virt-Viewer and X2go.

Do I have to use RealVNC?

Virt-viewer should have worked. Used it time ago. but I believe it requires the spice display in the VM.

Yes, edit VM config and add display, spice type.

You can use Realvnc, just ensure the VM has a vnc display.

I tend to dislike vnc as the mouse can be inexact, plus no audio.

If I must have a Linux Desktop as a TN VM, which I did for a couple years. It must have remote desktop WITH sound. (xrdp + pulseaudio compilation).

I needed to run Opencanary on multiple vlans, wrote and ran a bash monitoring system for Bitcoin machines (up, down, stats) and used the RDP sound as an alert to make noise if a machine was down/idle, plus had an internet radio playing, so I could tell if the VM was up and my RDP from home, was still connected (meaning my Internet was up too etc.).

Once I went to an lxc for Opencanary and implemented pushover alerts, I did not need such setup, but I still keep the Ubuntu Desktop VM around as it was nice to work in it through RDP for bash and python programming.

Latest Ubuntu Desktop moved to pipewire, so RDP sound is not available.

Curious to know why you need an Ubuntu Desktop as a VM?

Thanks truenas-fan! I didn’t realize that the “ADD” button on the top was a way to add a new device when in that context menu!

Spice worked instantly lol. I just had to click the button. Thanks again! =D

1 Like