Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ learning_objectives:
prerequisites:
- Review [Get started with Oracle Cloud Infrastructure](/learning-paths/servers-and-cloud-computing/csp/oci/)
- Install software that allows you to connect to a running instance over SSH
- Install the Minecraft client on your local laptop, and ensure that you have a Microsoft
or Mojang account to log in (it will help if you know the basics of playing Minecraft too)
- You will need a copy of the [Minecraft Java edition
client](https://www.minecraft.net/en-us/download) installed, and
[a license](https://www.minecraft.net/en-us/store/minecraft-java-bedrock-edition-pc)
for the game.
- After installing the client, you will need to [register for a Microsoft
account](https://www.minecraft.net/en-us/download) - when you start the Minecraft client, you
will be asked to log in to your Microsoft account

Comment thread
dneary marked this conversation as resolved.
author: Dave Neary

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ layout: learningpathall

### Opening the port for the Minecraft server

Before you connect to the Minecraft server, you will change the network policy to allow clients to
connect to the Minecraft server over TCP port number 25565. To do this, you need to modify the
networking settings for your instance in the OCI dashboard.
Before you connect to the Minecraft server, you will change the network policy to allow clients
to connect to the Minecraft server over TCP port number 25565. To do this, you need to modify
the networking settings for your instance in the OCI dashboard.

1. On the OCI Instances page, choose your Minecraft server instance.
2. In the **Networking** tab, click on the subnet name:
Expand All @@ -26,26 +26,23 @@ networking settings for your instance in the OCI dashboard.
connect), and set the **Destination Port Range** field to 25565.
![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")

You will also need to update the instance's local firewall to allow connections to port 25565 on your instance.
Reconnect to your instance with SSH, and run the following commands on Oracle Linux:
You will also need to update the instance's local firewall to allow connections to port 25565 on
your instance. Reconnect to your instance with SSH, and run the following commands:
```
sudo firewall-cmd --permanent --add-port=25565/tcp
sudo firewall-cmd --reload
```
or the following commands on Ubuntu:
```
sudo ufw allow 25565/tcp
sudo ufw reload
```

You should now be able to run your Minecraft server on the OCI instance, then start your client, log in as
usual, and connect to your brand new server!
You should now be able to run your Minecraft server on the OCI instance, then start your client
on your laptop or desktop., You will first be asked to log in with your Microsoft or Mojang account.
Use the credentials you created for your Microsoft account.

### Connecting to the server from the Minecraft client

1. Start your Minecraft client and log in as usual.
2. Choose **Multiplayer** mode - read and click through the warning that third party servers are not operated
by Mojang.
1. Start your Minecraft client and log in with your Microsoft account credentials.
2. Start the "Minecraft Java edition" client from the launcher.
![Minecraft launcher screen](minecraft_launcher.png)
3. Choose **Multiplayer** mode - read and click through the warning that third party servers are not operated by Mojang.
3. To add your server to the menu of available servers, choose **Add server**, name your server
something meaningful ("My OCI server" for example) and put the IP address of your instance into the
**Server Address** field:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@ layout: learningpathall
## Starting an OCI A4 or A1 instance

Once you have [created an OCI account](../csp/oci) and verified that you can start an
instance, you will create an AmpereOne powered A4 instance and connect to it with SSH to
instance, you will create an Ampere powered A1 instance and connect to it with SSH to
install the Minecraft Java server.

1. Log on to [Oracle Cloud](https://cloud.oracle.com)
2. On the OCI dashboard, navigate to Compute -> Instances to start a new instance:
![OCI Console Compute dashboard showing the Instances section#center](oci_compute_dashboard.png "Navigate to Compute -> Instances in the OCI dashboard")
3. Click "Create instance", then:
* Choose one of the availability domains offered to you with A4 instances available
* Select "Change shape", and set the instance type to Ampere VM.Standard.A4.Flex - if the
A4.Flex instance type is not available in your preferred
AD, try another, or choose VM.Standard.A1.Flex:
* Choose one of the availability domains offered to you with A1 instances available
* Select "Change shape", and set the instance type to Ampere VM.Standard.A1.Flex:
![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")
* Beside the instance type, click the small black arrow to open options. Allocate 2 OCPUs
and 12 GB of memory to your instance
Expand All @@ -30,7 +28,7 @@ install the Minecraft Java server.
5. Configure networking as follows:
* When prompted, create a new Virtual Cloud Network (VCN) and public subnet if you do not
have one already, or choose an existing VCN configuration
* Select "Automatically assign public IPv4 address" to to allow you to access the instance
* Select "Automatically assign public IPv4 address" to allow you to access the instance
remotely from your Minecraft server
* Create an SSH key pair if you do not have one (and download both private and public keys),
or upload the public key for an existing key pair so that you can connect to your instance
Expand All @@ -54,7 +52,7 @@ ssh -i <path to private key> opc@<public IP address>

### What you've accomplished

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.
You successfully provisioned an Ampere A1 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.

### Next step

Expand Down
Loading