cammelspit Posted December 23, 2018 Share Posted December 23, 2018 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! Quote Link to comment
itimpi Posted December 23, 2018 Share Posted December 23, 2018 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. Quote Link to comment
cammelspit Posted December 23, 2018 Author Share Posted December 23, 2018 Yeah, that's my problem. I am either doing something wrong or that method doesn't work. Can you be a bit more specific for me so I can maybe see where I am messing it up? I set auto port to no, set the WebSocket and port to the desired port number, execution error when starting the VM. Quote Link to comment
cammelspit Posted December 23, 2018 Author Share Posted December 23, 2018 Oh, never mind, I figured it out. I just can't have the WebSocket port the same, so the info I read was totally inaccurate. Working fine now. Thanks! Quote Link to comment
Recommended Posts
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.