Skip to content

Commit 4e9fcf9

Browse files
committed
Initial tech review of Minecraft on OCI
1 parent 33b4edf commit 4e9fcf9

9 files changed

Lines changed: 80 additions & 45 deletions

File tree

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Run a Minecraft server on OCI A1 Arm64 instances
33

4+
description: Provision an Arm64 instance on Oracle Cloud Infrastructure, install the Java runtime, and deploy a persistent Minecraft server for multiplayer gameplay.
5+
46
draft: true
57
cascade:
68
draft: true
Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: Connecting the Minecraft client to the server
2+
title: Connect the Minecraft client
3+
description: Configure security lists and OS-level firewalls to open port 25565, and connect to the Minecraft server.
34
weight: 4
45

56
### FIXED, DO NOT MODIFY
@@ -10,22 +11,22 @@ layout: learningpathall
1011

1112
### Opening the port for the Minecraft server
1213

13-
Before we connect to the Minecraft server, we will change the network policy to allow clients to
14-
connect to the Minecraft server over TCP port number 25565. To do this, we need to modify the
15-
networking settings for our instance in the OCI dashboard.
14+
Before you connect to the Minecraft server, you will change the network policy to allow clients to
15+
connect to the Minecraft server over TCP port number 25565. To do this, you need to modify the
16+
networking settings for your instance in the OCI dashboard.
1617

1718
1. On the OCI Instances page, choose your Minecraft server instance.
18-
2. In the Networking tab, click on the subnet name:
19-
![OCI instance networking](OCI_instance_networking.png)
20-
3. On the Security tab of the subnet page, choose the security list which is active for the instance
19+
2. In the **Networking** tab, click on the subnet name:
20+
![OCI Networking panel displaying instance subnet configurations#center](oci_instance_networking.png "Open the networking panel in OCI")
21+
3. On the **Security** tab of the subnet page, choose the security list which is active for the instance
2122
(by default, this is called "Default Security List for vcn-xxxxxxxx")
22-
![Default Security List for subnet](subnet_security_list.png)
23-
4. Under "Security rules", add a new Ingress rule (this means the rule applies to incoming traffic
24-
from outside the instance). Set "Source CIDR" to "0.0.0.0/0" (this means all IP addresses can
25-
connect), and set the "Destination Port Range" field to 25565.
26-
![Open port 25565 for Minecraft server](open_minecraft_port.png)
23+
![OCI Subnet Details page highlighting the Default Security List#center](subnet_security_list.png "Select the Default Security List on the Subnet Details page")
24+
4. Under **Security rules**, add a new Ingress rule (this means the rule applies to incoming traffic
25+
from outside the instance). Set **Source CIDR** to "0.0.0.0/0" (this means all IP addresses can
26+
connect), and set the **Destination Port Range** field to 25565.
27+
![OCI Ingress Rules dialog with source CIDR 0.0.0.0/0 and destination port 25565#center](open_minecraft_port.png "Configure an Ingress rule to open port 25565")
2728

28-
You will also need to update your local firewall to allow connections to port 25565 on your instance.
29+
You will also need to update the instance's local firewall to allow connections to port 25565 on your instance.
2930
Reconnect to your instance with SSH, and run the following commands on Oracle Linux:
3031
```
3132
sudo firewall-cmd --permanent --add-port=25565/tcp
@@ -43,17 +44,28 @@ usual, and connect to your brand new server!
4344
### Connecting to the server from the Minecraft client
4445

4546
1. Start your Minecraft client and log in as usual.
46-
2. Choose "Multiplayer" mode - read and click through the warning that third party servers are not operated
47+
2. Choose **Multiplayer** mode - read and click through the warning that third party servers are not operated
4748
by Mojang.
48-
3. To add your server to the menu of available servers, choose "Add server", name your server
49+
3. To add your server to the menu of available servers, choose **Add server**, name your server
4950
something meaningful ("My OCI server" for example) and put the IP address of your instance into the
50-
"Server Address" field:
51-
![Configuring new server](configuring_new_minecraft_server.png)
51+
**Server Address** field:
52+
![Minecraft multiplayer server dialog showing Server Name and Server Address fields filled in#center](configuring_new_minecraft_server.png "Add your OCI instance public IP address to the Server Address field")
5253

53-
You can now join the server and start building!
54-
![Connecting to your new server running on OCI](connecting_to_server.png)
54+
You can now join the server and start building!
5555

56-
You can also share the address with your friends to start building a shared world. Have fun!
56+
![Minecraft game client showing successful connection to the custom multiplayer server#center](connecting_to_server.png "Connect to the custom Minecraft server")
57+
58+
### What you've accomplished
59+
60+
In this guide, you successfully:
61+
- Provisioned an Arm-based VM instance on Oracle Cloud Infrastructure.
62+
- Installed Java and deployed the Minecraft server software.
63+
- Configured OCI security ingress rules and server-side firewalls to expose the port.
64+
- Added and connected to the server using the Minecraft client application.
65+
66+
### Next steps
67+
68+
Now that your server is running, you can share the IP address with friends for multiplayer play. You can also explore automated startup scripts to ensure the server automatically recovers from reboots.
5769

5870

5971

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/minecraft-server-install.md

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: Installing the Minecraft server
2+
title: Install the Minecraft server
3+
description: Install the Java Runtime Environment, download the Minecraft server files, and launch the server application.
34
weight: 3
45

56
### FIXED, DO NOT MODIFY
@@ -10,19 +11,23 @@ layout: learningpathall
1011

1112
### Installing the Java Runtime Environment
1213

13-
Before we install the Minecraft server, we need to make sure that there are some prerequisites
14-
installed. For the Minecraft 26 server or earlier, we will need Java 25.
14+
Before you install the Minecraft server, you need to make sure that there are some prerequisites
15+
installed. For the Minecraft 26 server or earlier, you will need Java 25.
1516

16-
Connect to your instance using SSH as described in the previous step. We can install Java 25 on
17+
Connect to your instance using SSH as described in the previous step. You can install Java 25 on
1718
Oracle Linux with:
19+
20+
```console
21+
sudo dnf install java-25-openjdk -y
1822
```
19-
sudo dnf install java-25-openjdk
20-
```
23+
2124
and on Ubuntu or similar distributions, with
25+
26+
```console
27+
sudo apt install openjdk-25-jre -y
2228
```
23-
sudo apt install openjdk-25-jre
24-
```
25-
Since the Minecraft server starts on the command line, you may also want to install the `screen` or
29+
30+
Since the Minecraft server starts on the command line, you might also want to install the `screen` or
2631
`tmux` utilities which allows commands to keep running after you disconnect from the server.
2732
These commands are not strictly necessary, but you will need them to be running if you want to keep
2833
the server running when you disconnect from your SSH session.
@@ -35,16 +40,22 @@ not be covered in this learning path.
3540
You can find the link for the latest version of the Minecraft server
3641
[on the Minecraft website](https://www.minecraft.net/en-us/download/server). Copy the link to
3742
`server.jar` from this page, and run the following command on your OCI instance to download it:
38-
```
43+
44+
```console
3945
wget <paste URL to server.jar here>
4046
```
4147

42-
This will download server.jar from the Mojang website, and we will have a server.jar file on our OCI
43-
instance. To make it easier to keep track of different server versions, rename the server.jar file
44-
with a more meaningful name: `mv server.jar minecraft_server.26.2.jar`
48+
This will download `server.jar` from the Mojang website, and you will have a `server.jar` file on your OCI
49+
instance. To make it easier to keep track of different server versions, rename the `server.jar` file
50+
with a more meaningful name:
4551

46-
To start the Minecraft server, run the command:
52+
```console
53+
mv server.jar minecraft_server.26.2.jar
4754
```
55+
56+
To start the Minecraft server, run the command:
57+
58+
```console
4859
java -Xmx8G -Xms8G -jar minecraft_server.26.2.jar nogui
4960
```
5061

@@ -79,6 +90,12 @@ that the process has completed successfully (timestamps will be different at the
7990
[00:41:04] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
8091
```
8192

82-
Your Minecraft server is now running - you can connect to it with the Minecraft client. Congratulations!
93+
### What you've accomplished
94+
95+
You installed the open-source Java Runtime Environment on your instance, downloaded the Minecraft server files, accepted the End User License Agreement, and started the game server.
96+
97+
### Next step
98+
99+
With the server successfully running in the cloud, you will now open the necessary network ports to allow the Minecraft client to connect to your instance.
83100

84101

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/oci-instance-start.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: Starting an OCI A1 or A4 instance on OCI
2+
title: Start an OCI VM instance
3+
description: Create and configure an Arm-based virtual machine instance on Oracle Cloud Infrastructure.
34
weight: 2
45

56
### FIXED, DO NOT MODIFY
@@ -9,18 +10,18 @@ layout: learningpathall
910
## Starting an OCI A4 or A1 instance
1011

1112
Once you have [created an OCI account](../csp/oci) and verified that you can start an
12-
instance, we will create an AmpereOne powered A4 instance and connect to it with SSH to
13+
instance, you will create an AmpereOne powered A4 instance and connect to it with SSH to
1314
install the Minecraft Java server.
1415

1516
1. Log on to [Oracle Cloud](https://cloud.oracle.com)
16-
2. On the$ OCI dashboard, navigate to Compute -> Instances to start a new instance:
17-
![Instances on OCI Compute](OCI_compute_dashboard.png)
17+
2. On the OCI dashboard, navigate to Compute -> Instances to start a new instance:
18+
![OCI Console Compute dashboard showing the Instances section#center](oci_compute_dashboard.png "Navigate to Compute -> Instances in the OCI dashboard")
1819
3. Click "Create instance", then:
1920
* Choose one of the availability domains offered to you with A4 instances available
2021
* Select "Change shape", and set the instance type to Ampere VM.Standard.A4.Flex - if the
2122
A4.Flex instance type is not available in your preferred
2223
AD, try another, or choose VM.Standard.A1.Flex:
23-
![Change shape](OCI_change_shape.png)
24+
![OCI instance creation shape settings panel with VM.Standard.A4.Flex selected#center](oci_change_shape.png "Configure the VM instance shape to VM.Standard.A4.Flex")
2425
* Beside the instance type, click the small black arrow to open options. Allocate 2 OCPUs
2526
and 12 GB of memory to your instance
2627
* Choose "Oracle Linux 9" or one of the other available images of your choice under "Change
@@ -37,21 +38,24 @@ install the Minecraft Java server.
3738
5. Use default Storage options
3839
6. After verifying that the instance is correctly configured, choose "Create" to provision a new
3940
instance
40-
7. It can take up to 2 minutes for your instance to be created. Once created, we need to ensure
41+
7. It can take up to 2 minutes for your instance to be created. Once created, you need to ensure
4142
that there is a public IP address to connect to by going to the "Networking" tab for the instance:
42-
![Instance networking]{OCI_instance_networking.png)
43+
![Instance details page with the Networking tab selected to show public IP details#center](oci_instance_networking.png "Select the Networking tab on your VM details page")
4344
8. Scroll down and click on the VNIC name - `instance-yyyymmdd-HHmm` by default - then on the IP
4445
administration tab, and click on the three dots on the primary IP row to edit the IP address type
4546
associated with the instance to set its type to "Ephemeral public IP":
46-
![IP administration for instances](OCI_network_IP_management.png)
47+
![OCI IP management page showing primary private IP and ephemeral public IP configurations#center](oci_network_ip_management.png "Edit IP Address to set type to Ephemeral public IP")
4748

4849
Take note of the IP address under "Public IP address". You should now be able to SSH into your
4950
instance with the command
5051
```
5152
ssh -i <path to private key> opc@<public IP address>
5253
```
5354

54-
Congratulations - you are connected to your OCI instance. Next we will install some prerequisites and
55-
download and start the Minecraft server.
55+
### What you've accomplished
5656

57+
You successfully provisioned an Ampere A1 or A4 virtual machine instance on Oracle Cloud Infrastructure, configured its virtual network to assign a public IP address, and connected to the server securely over SSH.
5758

59+
### Next step
60+
61+
Now that your VM is running and accessible, you will proceed to install Java and download the Minecraft server software.

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/OCI_change_shape.png renamed to content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/oci_change_shape.png

File renamed without changes.

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/OCI_compute_dashboard.png renamed to content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/oci_compute_dashboard.png

File renamed without changes.

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/OCI_compute_dashboard_orig.png renamed to content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/oci_compute_dashboard_orig.png

File renamed without changes.

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/OCI_instance_networking.png renamed to content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/oci_instance_networking.png

File renamed without changes.

content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/OCI_network_IP_management.png renamed to content/learning-paths/servers-and-cloud-computing/minecraft-on-oci/oci_network_ip_management.png

File renamed without changes.

0 commit comments

Comments
 (0)