How to create a powerful Minecraft Server for free using Oracle Cloud [UPDATED]
HTML-код
- Опубликовано: 22 июл 2023
- This video shows how to setup a VM for more advanced videos that include a panel as well as how to setup a basic minecraft server that doesn't have a panel to run it from.
My Website -
My Discord - / discord
Use my discord for help as I don't respond to the comments. - Игры
0:00 Introduction
1:01 Making Oracle Cloud account
2:27 Creating a VM instance
7:29 Port forwarding
9:36 Downloading and setting up PuTTY
13:48 PuTTY: Installing Java
15:15 PuTTY: Finishing port forwarding (firewall commands)
17:23 Setting up terminal and downloading Minecraft
20:24 Allowing server to run without having terminal open
22:22 How to access Minecraft console logs
23:08 How to access server files to add mods/plugins (FileZilla)
24:30 How to get root permissions to change/delete server files
No reply and 85 likes? Lemme fix that!
Bros a w
For anyone asking, these are the commands for firewall
ALLOW UDP and TCP
firewall-cmd --permanent --zone=public --add-port=25565/tcp
firewall-cmd --permanent --zone=public --add-port=25565/udp
reload after any change
firewall-cmd --reload
goat
@oankaarsingh btw more tips
When sftp, aply chmod 777 to the server folder ONLY. applying to home won't let you do anything after that
To resume screen after closing and reopen putty, you do sudo -s and then screen resume to regain access to server console
@@nyctophantom hello there, i'm trying to access my own screen rn, server is working fine and all and I can see the logs of what's happening, but i can't execute any commands that would let me to either stop the server, /op myself or whitelist it. Any fixes for that?
@@gamwtizesti hi, to access your screen after reconnecting you should type screen -r, if that doesn't work, type screen -ls instead, it displays all your screens, then you resume it
@@gamwtizesti since that isn't working for you,
Reboot your instance
sudo -s for admin
Screen -S Instance_name to create a screen
Then, go to your server folder
Then type the java command to execute all
After all, you just press ctrl a and d after typing it, and type screen -r to go back
In case anyone is wondering how to skip the "V1 instance" unavaliable thing, just upgrade your account to pay as you go. You won't be charged anything so long as you stay in the always free stuff, but you will have a temporary 100 dollar hold. But you do get to completley skip the queue with very little hassle. Other than that, awesome tutorial!
how long does it take to get a refund?
@@Unknown-jo7sk deoends on where you're getting a server from. Took a couple of hours for me but it might be shorter or longer for you
@@Unknown-jo7sk around 1 week in the worst cases
@@Unknown-jo7skfor me it took a day
Also it's more reliable that way
This was amazing. Last time I did this was 10 years ago, running the server from my own laptop, so I needed all the info again.
No reply and 33 likes?? Lemme fix that!
@@sepitech1391 glazing
TYSM! Java Oracle was being fussy with my account, and I needed a good tutorial. This is the best tutorial for making a server, and you did a great job at explaining everything.
Oracle isn't letting me make an account. Anything you do help? I've messaged support but they literally say they can't help
@@TitanTubs have you tried making an account in incognito?
@@TitanTubs If credit card doesnt work, its a short bug for me it took a week to work
thank you very much for this video, i felt stumped at first but this was very clear and concise :D
Marvellous video! Well explained, thanks for helping me to open the server.
Hoping for more videos like this, salute from the Dominican Republic.
AS OF JUNE 2024, you need to use java 21 instead of 17.
where in the tutorial does it say use java 17?
@@chikalikedis817014:00
@@chikalikedis8170 Dm ?
@@chikalikedis8170about 14:05
@@chikalikedis8170 around 14:07
Thanks for the video, you have really helped me a lot, greetings from Mexico
Dude, you're a legit godsend! Thank you so much!
very good video it says everything you need to know 100/10 and ty so much
oh shit, the master's back
thx for showing me the ways of the craft
thank you for making this guide, i tried this today and what can I say it worked!, i created (within free tier range) a 4 core 24gig vm just like you showed and also used tmux to run the server detached from the putty session and also forwarded a ddns to the public ip, it was purposed for a 20gb absolute beast of a forge (all the mods 9) server which is HEAVY to run, the oracle vm is completely unfazed, also i had to make a temporary payment of 93 euros to add a payment method to upgrade to pay as you go plan because there was no availability on my local server (it milan) which still had me at 0euro cost according to the dashboard. again thanks this is awesome. ♥
Wdym temporarily 100dollars
@@Dostxs oracle charges your credit card with about 100 bucks to verify your added payment method and it gets paid back to you right after (it refunds you the amount), if you use your plan within the limits i specified you will not get charged anything after enabling the pay as you go option (if you dont, it usually says there is no availabilty on oracle's servers to create the instance)
@@terryhedge213 lets say i have credit card with 0 dollars will it try to make me pay 100 and than give it back?
@@Dostxs it wont go through or youll be in debt temporarily
@@terryhedge213 debt?
HE RETURNED
I was literally just wondering if you'd make an updated video yesterday 😭
God bless for making this video, was easy to follow and was able to setup the server within a few hours. Btw for anyone struggling to get a free server just upgrade to a Pay as you go account and you’ll get priority
so it isn't free?
@@whosjozikolnik it still is, just make sure to only use the free resources. Follow the video and you’ll be fine
@@whosjozikolnik it is free; you just need to stick to the free tier limits and not exceed them (basically; not go over 4 cpus and 24 gb of ram) however you will need to have 200 dollars in your credit card because oracle will try to charge you 200 dollars which will be immediately refunded in order to see if you have a real credit card lol
@@Brittlebones Do you get charged for upgrading to a Pay as you go account or no?
@@flyxed2 You get charged 100$ but it gets refunded cause it is just for verification
bros finally back
perfect and the most convenient way
You can acutally make an instance with 4 cores, the warning message is just an indicator for you that you are about to max out your free tier capacity
It should be but for some reason it doesn't let me make a server of I use 4 CPU cores. My account is just a bit glitched for some reason.
I was able to set 15 cores, 90GB. lol.
@@crystian7016 yes and he said that u need to pay for this lol
@@pizzaparty3335 Not in my case. I was able without the upgrade advice.
@@pizzaparty3335 I've tried with 20 cores, got the advice, then i've set to 15. It worked. Maybe i can get a little bit more.
hes back no way
Hi, website is down. Don't see any commands in description :(
25 minutes to create a simple server to play with friends. Amazing.
it’s really powerful, not just simple 24 gigs are enough for a big Server Community
it's not simple buddy 24 gigs is amazing
this worked perfectly! i was wondering if you could do a tutorial about modding these servers as i dont know how to do so
Is it still going?😊
Still working. Managed to do everything using just CLI.
How go make sure that I won't get charged? Is there a setting or something?
Disk space is a bit limited. And creating new block storage isn't free.
HOWEVER, if you create another free-tier VM and then delete it, its boot volume isn't removed, its still there. And its free-tier.
And you can attach it to your other, running, free-tier VM and use it for the Minecraft server...
I think you missed something important. You should use systemctl to enable the firewalld service on boot. Otherwise, the server will be inaccessible after a restart.
this video saved my ass big time. much love
R u still using it
@@Dostxs havent used it for a while but still got my acc
@@emmacat9593 can u give it to me?
IMPORTANT: do not send the command chmod 777 fot the home directory since this will disable ur keys and u wont be able to connect to it
I think I made this mistake, and now I can't connect anymore, how do I fix this?
lmfao normies have to learn the hard way i swear
then send it as what?
@@cookiekesgameplace2508 i did chmod 755 -R /home/ubuntu/server and then i could login to the ftp again
@@OliveiraBr idk.... i just re-did the same thing again from start
Thank youu sooo muchh!!!!
sorry if this is a dumb question but on a fabric server how do you start the server back up after you stopped it?
fr
This worked almost perfectly for me except for one little error that caused a lot of headache. People of the future: DO NOT run the chmod command in the root folder, it needs to be run from the server folder. Running it from the root leads to an error when attempting to connect (something like getopt).
Hey there, are you talking about the commands not working in the server screen? If so, do u have a fix for that?
Me without a credit card
Me too
Me convincing my dad it is a cash money investment
@@Mcneds same lol
But he agreed cuz Tomorrowis my birthday
You dont need credit card you can use debit card too I created 2 accounts with debit cards
Did you make a Company Account or a normal Account? I can only login to Oracel it self. but not to the Cloud website.
You need to create another account for oracle cloud, they are independent of each other
How would i add the geyser plugin amd set it up
thank you
✅ Confirmed, still works July 2024. Super useful, thank you so much for the tutorial!
ur website is unreachable
Can you make a tutorial about how to setup valheim server like this one?
im not sure why but my dashboard looks completely different to this and i cant find the ip address anywhere
I think it would be better to not run the server as root in the ubuntu user’s home directory. That’s why you are having to change permissions on things which makes all this a lot more confusing for non-linux people. This is also less secure.
Y u all not subscribing him!??
i am wondering how much memory size (ROM) is also available with this
I'd like to ask something. Currently I plan on running a minecraft fabric modded server. Should I choose Ubuntu or Linux for it? This tutorial doesn't seem to mention modding. But I don't want a basic vanilla server, I'm planning on using Prominenc 2 RPG as the modpack and using the server files from it, but I don't know if I should use Linux or Ubuntu
Ubuntu is Linux
🤦♂
I didnt need to run that firewall command thing iirc. I set my server up like 2 years ago and just followed the online instructions i think.
Hi I managed to set up the basic server but i wanted to instead install a modpack. So i went through the steps once more up until actually installing minecraft using wget and the link ( 18:13 ). How would i use a curseforge modpack here instead of minecrafts server jar? Im sorry im a complete novice and ive been googling and fiddling but i cannot figure it out. The link says forbidden 403
I figured this out but im not clued up enough to explain it. I followed a video ( luckily enough created by the modpack creator ) on how to do it.
it was for better MC made by sharkie and he has a YT channel if anyone is curious on how to install modpacks. This video ( by hp crafter ) was essential for me and im extremely grateful! Just the modding aspect wasnt touched on very well and thats why im recommending the video i am.
@@KisukeGhoul12how is the server performing? High, moderate, or low lag using that mod pack? Also how many people are usually on at the same time with you?
@@curse4490 its a little laggy now and then with blocks reappearing. There is 3 of us on the server at all times. Id say moderate lag ( only blocks dissappearing and reappearing )
@@KisukeGhoul12 ahh not too bad , I’m about to try setting one up. How much did oracle pull from your card for verification?
@@curse4490 im south african they pulled R19 which i think is $1+-
Can you have 2 instances with the allways free? if you would like to run 2 servers?
Yes if you split it into 2 servers with 2 ocpu and 12gb ram it should work. You could even run 2 servers on the same instance by changing the default port for one server
I can't connect to the mc server, what do I do?
Hey quick question:
Whenever I try to create the VM, I get the error message "Out of capacity for shape VM.Standard.A1.Flex in availability domain (any AD here). Create the instance in a different availability domain or try again later.
I've tried it in all three availability domains, but I get the same message every time
I found this video that helped me:
ruclips.net/video/Xto9zROBwqY/видео.html
Basically a lot of people are wanting to use this service and Oracle is struggling to match demand with their limited amount of domains.
did anyone ever figure this out? im assuming its just at capacity so i might just buy a server...
upgrade ur account for free to pay as you go and it should work, otherwise keep on clicking create instance and hopes the server accepts you
@@iiquoix4967 how long would that take? i’d rather not just sit clicking for hours hoping i get accepted?
As another commenter states ( I can confirm true, i did it myself) : In case anyone is wondering how to skip the "V1 instance" unavaliable thing, just upgrade your account to pay as you go. You won't be charged anything so long as you stay in the always free stuff, but you will have a temporary 100 dollar hold. But you do get to completley skip the queue with very little hassle. Other than that, awesome tutorial!
the estimated cost of the shape is $19.50 per month, i'm using ampere 2 cores 12gb, why is this happening?
does your pc need to be on the entire time your running it? or is the person whos running the vm needed to keep their pc on
No the VM runs on oracle servers. It runs 24/7 even if you turn your pc off
@@TimGmbH1 Why does my server turn off when I close my terminal after I detached
@@jxnus2774 Does it stop instantly? You have to run your Minecraft Server inside the Screen process. Then you have to detach it by pressing Ctrl + a + d
@@TimGmbH1 Thanks, I figured it out. To close the terminal without stopping the server you have to press ctrl + d after detaching from the screen
Im getting an error when trying to create my compute instance that Oracle is "out of capacity for shape VC.Standard.A1.Flex in availability Domain AD-1" (I also get that for AD-2 and AD-3), how often does a spot open up for me to make a domain? Should I just be retrying every few seconds or wait a couple days?
hey im getting the same problem rn since your comment was 5 days ago im wondering did you get it started and how often did you try if you did
@@skkheat3999 So what I did was I upgraded my account to a Pay As You Go account, because apparently that just bypasses the availability issue. It’s completely free, but it does require payment information as it needs to send a charge to your card to verify it’s real. The charge is refunded almost immediately though. I don’t remember exactly how to do it so you’ll have to just go to Google
@@gumblemutt how do i do this
@@vtpanther I honestly don’t remember sorry, I’d just look up how to upgrade to Pay As You Go
Someone know how to migrate a world from other server that I had?
the moment when you need a credit card to use an free service, aha
Thanks! I only have a question, how can I make the server compatible with Fabric mods?
Also I have premium Minecraft but I have a friend who have cracked Minecraft, how can he play in the el server?
he buy's minecraft.
make offline mode off in server properties
you can try whitelisting your friend by going into that putty thingy, typing cd server, screen -r and then /whitelist add
mine is stucjk at preparing level "world"
There is no "Networking" tab.
All these options are now under "Primary VNIC information". Not being a know-it-all Edgelord. Just found it myself!
hey, i get the message "Server refused our key" and "no supported authentication method available" when i try to open load putty
any help with that?
same
@@matle9949 u can do it without use putty
how did you fix it?
Did you ever fix it?
@@matle9949 You ever fix it?
how do i install forge in the server
apt is not worked for me, so I used dnf or yum. And screen is not working
Sounds like you didn’t select the Ubuntu instance towards the beginning.
@@Rawbful Actually I were
comes up with the error "Error: Unable to access jarfile minecraft_server.1.20.2.jar" when i try to run the server what should i do
You're server.jar probably has another name. First lookup your file name with "ls" then change the starting command to the correct name
run a paper server instead
How can i turn the server onlinr after i did /stop in console ?
"screen java ....."
do these stay up 24/7?
Is it possible to create a server for Palworld with this?
Unfortunately not, I tried but ARM cpus are not supported by steamcmd. It may be possible with some work arounds but only if palserver supports ARM.
The site is down so i cant retrace the commands, I tried to install java 11, Says ''openjdk doesnt exist''
[FIXED] Solution: i did: apt install openjdk=11.jdk) The right command was apt install openjdk-11-jdk) feel free to copy
when I go to click create I get this message "Out of capacity for shape VM.Standard.A1.Flex in availability domain AD-1. Create the instance in a different availability domain or try again later. If you specified a fault domain, try creating the instance without specifying a fault domain. If that doesn’t work, please try again later."
I have the same error
same? what's your home region? mumbai?
@@Dave-bc1ep For me, I live in Spain
@@Dave-bc1ep Amsterdam Netherlands
@@sauldcrack See my above reply.
The website doesn't seem to work
is there a way to do forge?
can you add mods to the server?
How to add plugin tho ??
can someone help me? When I click the "Create" button the new window doesn't open but I stay in the menu. Does anyone know what I'm doing wrong?
same issue, did you resolve this?
@@tobiaswestermann1375 nope
Does it say something on the lines of ''out of stock'' if so upgrade to PAYG (stands for Pay As You Go) You wont be chrarged a penny (Only for verification) But if you stick to the ''Always free elegible'' options, your good!
Hey! I created this and it worked perfectly for many months. I want to now delete my current world and start a new one. Is there a way I could do this?
Did u do it?
Easy, just delete the world files. - Has nothing to do with Oracle.
@@Dostxs ^^
Can i crate 2, 3 or maybe 10 mc servers ?
if you have 2, 3 or maybe 10 credit cards with different names, yeah sure, otherwise no.
Can i set up a server on already existing World (modded)?
yes, just substitute the files in the server using Filezilla and start the server again
@@therealemilime7773will this work with the mods too?
website not working?
is it possible to upload a server which is already made?
Yes just transfer the server files and run it
@shoelobster you were able to migrate it? I'm with the same problem
how do i enter the java terminal again to do mc commands?
nvm this tutorial is perfect
isnt work after free trail
Is it completely free? like, without needing to pay something later?
Its free but you need a credit card for validation. Also, you account can be deleted on the future but you can avoid this using the "pay as you go", all you need is make budgets to not allow anything beyond the free tier
It Says That The Ampere Cpu Costs Money Even When I Set It To 4 ocpus and 24 gb ram. What should i do?
do not put it at 24gb of ram. 8gb is the limit for free tier
@@maxgames_nl3829 still costs money
@@mynameismajitelllofficialHe mentions this in the video at 6:55
13:05 I can't give apt update. appears bash: apt: command not found
try with "sudo apt update"
When I type java -Xmx1024M -Xms1024M -jar minecraft_server.1.20.4.jar nogui I get Error: Unable to access jarfile minecraft_server.1.20.4.jar.
same thing happens to me, have you found a solution
@@chikalikedis8170 yes : just put server.jar not minecraft_server ect and then nogui (java -Xmx1024M -Xms1024M -jar server.jar nogui)
@@SonoxStudio thank you mate i was stuck here too!!!!
@@chikalikedis8170 replace minecraft_server.1.20.4.jar by server.jar
is there any way to do this without having to enter credit card details?
no
your web don't work
I try apt and is says command not found
are you sure you used ubuntu as the OS.
preparing spawn area 0%...
Is that free?
i used the command chmod 777 -R and it doesnt allow me to connect to the server by putty/filezilla anymore
i am facing the same issue, i was able to access the Minecraft server until i ran this command. Were you able to resolve it?
You migh have used it in the home directory files, and this will disable the keys making it so that you can't connect to the server and need to recreate another instance.
@@abartakbhattacharya4475 i wrote the answer, if you need further help ask me
how do i use this command then so the keys keep working?@@therealemilime7773
@@therealemilime7773 yep, that's what i had to do :/
can you join with t launcher in this server?
t launcher is a known trojan virus, you can set up whether a cracked launcher can join or not in the settings.
there is no link
thanks so much
Hey, how do I install bedrock server, i dont have java
I think it's the same thing except you download the .jar for a bedrock server and port forward 19132 instead of 25565.
Its 24/7?
It says login as
Me with credit card but still oracle website shits😢
Isn't the port fowarding dangerous?
Not at all, and anyway you are port fowarding in a virtual machine in god who knows where so
Port forwarding opens up outside connections to the network. At your home, on a home network, this could be dangerous. You can create a filter on your router when you portforward to only allow specific IPs access (your friend's IPs) and block all others (aka whitelist). But since this tutorial is on a server created on Oracles datacenter in who knows where, the danger is only exposed to that server. TLDR; you're fine
Insted of using apt in the command i had to use yum insted. When I tried to install java 17 i was met with this: No package java-17-openjdk-devel available.
Error: Nothing to do: So I tried to download it manually and then get the file into putty. But apparently the file didnt exist even tho I was looking at it in my downloads folder. Please help me, I dont know anything about this at all so i started using ChatGPT for help when the apt commands didnt work and whenever i ran into a problem i asked ChatGPT but I ran into a corner when the file apparently didnt exist that i manually downloaded.
this tutorial is gonna be pretty confusing if you don't understand networking/servers/virtual machines. I suggest you try again and follow exactly as he does. The issue you are experiencing is that you need to remotely connect into the server, then download java on the remote server. When you say you see java in your downloads folder, that tells me you downloaded it on your computer, not the server.
Server refused the key, could not find a solution.
dont use a capital on Ubuntu
@@quindrik7149 still doesnt work
Your website is down bro...
yeah i cant access it either
After i crated the key with putty gen and want to connect to the Console it says "no supported authentication methods available (server sent publickey)"
Edit: If your run into the same problem as me you can use windows CMD to connect to your oracle VM
ssh -i "Path to your key(such as C:/)" ubuntu@"your public ip address"