Jump to content

Manual assignment of VNC port, Docker


Recommended Posts

How would I go about manually assigning a port for a VM to use? Unraid seems to always have this set to auto so sometimes two different Vms will have different ports than they did last time. For example, I want my Windows VM to always have a VNC port of 5901 and my Linux Mint VM to always have a port of 5902 regardless of whichever one was started first or if only one was started at all. Seems to me there is no GUI way to do it and the one suggestion I found on Reddit didn't work and broke the VM from starting at all.

 

Hopefully, this will be a quick one, Thanks in advance!

Link to comment

You are right in that there is no GUI support for this.  You can do this manually by editing the XML for the VM and change the autoport setting on the graphics node from yes to no and then setting the port you want to use.  However if you go back to form view on the VM settings this will be reset to the auto setting.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...