With Teamspeak 3's current default permission set, a regular client is not allowed to mange virtual servers (create, delete, modify max clients). You'll need the ServerQuery administrator account to get all the necessary permissions. Since we're getting a lot of questions about TeamSpeak 3's virtual server management, I decided to post a little tutorial...
1. How to create a new virtual server:
Login to the ServerQuery from within your client (Tools => ServerQuery) and use the "servercreate" command to create a new virtual server.
Code:
TS3
login serveradmin password
error id=0 msg=ok
servercreate virtualserver_name=My\sSecond\sServer virtualserver_port=1337 virtualserver_maxclients=128
sid=2 virtualserver_port=1337 token=ddqCmka21sXaE+0zjnFHFQsqMJ832Boc6SSdECXe
error id=0 msg=ok
As you can see above, the server created a new virtual server with ID 2 and displays the initial administrator token. If virtualserver_port is not specified, the server will detect the next unused port automatically. Per default, subsequently started virtual servers will be running on increasing port numbers. The second on 9998, the third on 9999 etc.
2. How to delete an existing virtual server:
Login to the ServerQuery from within your client (Tools => ServerQuery) and use the "serverdelete" command to delete an existing new virtual server. Please note that the virtual server needs to be stopped before it can be deleted.
Code:
TS3
login serveradmin password
error id=0 msg=ok
serverstop sid=2
error id=0 msg=ok
serverdelete sid=2
error id=0 msg=ok
3. How to modify a virtual servers max clients
Login to the ServerQuery from within your client (Tools => ServerQuery) and use the "serveredit" command to modify the properties of a virtual server.
Code:
TS3
login serveradmin password
error id=0 msg=ok
use 1
error id=0 msg=ok
serveredit virtualserver_maxclients=64
error id=0 msg=ok
4. How to modify a virtual server port
Login to the ServerQuery from within your client (Tools => ServerQuery) and use the "serveredit" command to modify the properties of a virtual server.
Please note, if you want change the port on the virtual server where you are, you have to use an external tool like "Putty" directly on the query port.
Code:
TS3
login serveradmin password
error id=0 msg=ok
use 1
errir od=0 msg=ok
serveredit virtualserver_port=9988
error id=0 msg=ok
serverstop sid=1
error id=0 msg=ok
serverstart sid=1
error id=0 msg=ok
Please check the ServerQuery documentation (ts3_serverquery_manual.pdf) for detailed information on how to use the different commands.
Happy testing!