How to start and connect to Minecraft Java Edition Server for Ubuntu
1. To start the server, you just need to start the VM through Azure Portal.
2. For the connection to the server you should know the IP address of the VM. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line of “Public IP Address”).
3. Run your client to play the Minecraft Java Edition.
4. Click “Multiplayer” in the main menu.
5. Click “Add Server”.
6. In the appeared window, in the “Server Name” field name the server as you like.
7. In the “Server Address” field enter the IP address of the VM and click “Done”.
8. In the server list, select the previously added server and click “Join Server”.
Changing the amount of allotted RAM for the server
1. Download and run Putty, then in the “Host Name” field, enter the address of the VM. Then click “Open” to connect.
2. In the opened console you will need to enter the login and password specified while you created VM.
3. Type sudo nano /Minecraft_Server/start.sh in the console and press Enter.
4. A script file will open to start the server. The following fields require the amount of RAM allocated for the server.
‘-Xms1G‘ > Sets minimum allocated memory limit.
‘-Xmx1G‘ > Sets MAXIMUM allowable memory limit.
5. After changing the startup parameters, you must restart the server. To do this, enter the following commands:
> sudo systemctl stop minejava
> sudo systemctl start minejava