Change port for vmserver

Hello.

I need to change the port that vmserver uses, because I have another application that needs it.

How can I change it?

I tried to launch hivetool but I got an error:


$ hivetool /thinlinc/vmserver/admin_email
Traceback (most recent call last):
  File "/opt/thinlinc/bin/hivetool", line 605, in <module>
    main()
  File "/opt/thinlinc/bin/hivetool", line 587, in main
    errors += handle_param(hive, param)
  File "/opt/thinlinc/bin/hivetool", line 56, in handle_param
    method = getattr(hive, "get_%s" % paramtype)
AttributeError: 'NoneType' object has no attribute 'get_string'

Hi Akronix, welcome to the community! :waving_hand:

I tried to launch hivetool but I got an error

It’s not you, it’s us! The Hiveconf part of our documentation is slightly outdated, and we would recommend you to check out the chapter about tl-config instead.

It works about the same, to see the admin_email parameter you would run:

tl-config /vsmserver/admin_email

In your case, to change the port that vsmserver uses you should have sudo configured correctly, then run the following command (change 9000 to the port of your choice):

sudo tl-config /vsmserver/listen_port=9000
sudo tl-config /vsm/vsm_server_port=9000

Hope that helps!