![]() ![]() paste (right click) the following info:.In case you don’t know how to use Vim or Nano you can use Vim and issue the following once the editor has loaded the file. I prefer Vim as Nano or newer editors were not yet around when I was working on Unix systems. This will launch the Vim editor so you can edit your fstab file. FSTAB means File System Table, it is just a way of telling Unix or Unix-like operating systems how to mount a specific device (disk volume in our case) to a filesystem path. This is fixed by configuring your /etc/fstab file in your EC2 instance. If you don’t do this, whenever your EC2 instance restarts (stop/start) it will unmount the volume. Once the previous step is successful, proceed to configure your non-boot volume (the additional 8GB EBS volume mounted on /dev/sdb) to automatically mount whenever your EC2 instance starts up.issue a df -h command and you should see your filesystem /dev/xvdb mounted on /app/minecraft.Format the volume (do this only once, and for fresh volumes as it will delete the data in it).Do a manual mount of your volume first:.The reason for that is due to newer Linux kernels mostly using PV (Para Virtualization). You will notice that even though your volume name was /dev/sdb you will not see it in the list, it will show as /dev/xvdb instead.Find the UUID of your EBS volume.Issue a lsblk -f command to list all block devices in your EC2 instance.Issue a sudo apt update command to update your system tools.Make sure you login as as this is an Ubuntu ami and not an Amazon linux ami. Connect to the instance using PuTTy (it is assumed you know how to use the private key in your profile).Step 4: Automount your EBS volume to your EC2 ![]() Go back to your EC2 instance dashboard and startup your EC2 instance.This will be the public IP of your EC2 instance which will host your Minecraft server.Associate the newly created Elastic IP to your EC2 instance.Go back to the Elastic IPs page and under Actions, choose Associate Elastic IP address.Under Network & Security, click on Elastic IPs.So it is important to assign a static IP or in AWS terms it is called an Elastic IP. Step 3 : Assign a Static Public IP to the EC2 instanceĮC2 instances can have public IPs when created but that public IP (dynamic IP) will change every time the instance is restarted (stop/start). Stop the Instance once it has started, it is required for the next step.This is part of the prerequisites section. Launch, after you click Launch, you must choose the key pair you are currently using.Configure Security Group – select an existing security group (choose the one you created earlier).Use default values ( EBS, /dev/sdb, 8GB, gp2).Add a new volume for the application’s filesystem.Configure Instance – Choose the VPC you created earlier for the Network.Instance Type – Choose t2.small (I find t2.micro causes the game to lag).Choose Ubuntu Server 20.04 LTS (HVM),EBS General Purpose (SSD) (64-bit x86).Delete the allow all traffic rule that is included by default.Choose the Security Group attached to the VPC you created earlier.Go back to the VPC services under Security and click on Security Groups.Create a Public subnet with IPv4 CIDR block with /30 (i.e.Choose VPC with a Single Public Subnet. ![]() Choose one that is closest to the end user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |