Hi everyone, welcome back to our channel
In today's video, we will learn how to install Ubuntu Server 24.04 on VirtualBox step by step
This guide is perfect for the beginners or anyone looking to set up a virtual machine
for development or testing purposes. By the end of this tutorial, you will have a fully functional Ubuntu server running on VirtualBox
Now let's get started. Before we begin, make sure we have the following things in place
VirtualBox installed on your system. If you don't have it yet, then install VirtualBox on your operating system
You need minimum 2GB of RAM, 2GHz dual core processor, 25GB free disk space and internet connectivity
The first step is to download Ubuntu Server 24.04 ISO file. For that, go to Google search, download Ubuntu Server
Click on the first Ubuntu official link. It will take us to this page
Make sure this server tab is selected here and then click on this download button
For the interest of time, I have already downloaded on my system, so I am skipping this download step
Let's move on to creating our VirtualBox virtual machine. Open the VirtualBox
From the machine tab, click on new to create a new virtual machine
Give your VM a name like Ubuntu Server 24.04
Select the ISO file you have just downloaded. Under the downloads folder, select this Ubuntu 24.04 live server AMD64
Once the ISO file is selected, it will automatically detect the type as Linux and version as Ubuntu
64 bit. Click on this skip unattended installation and then click next
Allocate at least 2GB of RAM and 2 CPUs. Click on next
Allocate at least 40GB of disk space. Then click next. Click on finish
Now select this virtual machine and then click on the settings. Go to the network tab
Make sure the LAN card of this virtual machine is attached to the bridge adapter
So in my case, bridge adapter would be Wi-Fi device. And why we are attaching the LAN card to the bridge adapter, because I want my server to
be accessed from the outside or over the network. So click on OK
Now start the virtual machine. Once the virtual machine boots up, you will get this screen
Choose the first option, try or install Ubuntu Server, hit enter
Select the language that suits your installation. You can use up and down arrow keys to select the language
And hit enter. In this window, you need to select the keyboard layout
I am going with the default English US layout. Choose done and hit enter
In this window, you need to choose the type of installation. How you want to install Ubuntu Server
So I am going with the first option Ubuntu Server, which will install all the required
packages to set up the Ubuntu Server. Second option is you can go ahead and install this Ubuntu Server with minimized options
it will install the minimal packages. If you want to install third party drivers as well during the installation, then you
choose the third option. So I am going with the first option, choose done and hit enter
In this network configuration tab, it will detect the interface which is attached to
the server and it will try to assign the IP address. In our case, we have already mapped this interface to the bridge adapter, which is connected
to my modem, so it will get the IP from the DHCP server
Choose done and hit enter. If your system needs proxy server to connect to the internet, then specify the proxy details
here, else you can skip. In this tab, the mirror location is being tested
What it will do in the backend, it will try to run apt update command
If the mirror tests are passed, then you are good to proceed
Select done and hit enter. In this step, we need to define how the storage will be configured for our server
So there are two options. First one is use entire disk. What it will do, it will create the partitions automatically for us along with the logical
volume group. The second option is custom storage layout. It will give us the option to create the manual partitions
So I am going with the first option, use an entire disk, choose done and then hit enter
This window is displaying the file system summary that what exact partitions will be created
As you can see, we have two partitions, slash and slash board
Installer has created ubuntu-vg as a volume group of around 38 GB, out of which 19 GB
is free. We can use this later whenever it is required. Choose done and hit enter
Choose continue to write changes to the disk. Fill in the user details along with the server name
Choose down arrow key, select done and hit enter. In this step, you need to select whether you want to go with the Ubuntu Pro or you want
to skip. So I am going with the skip, so I will select the second option and then choose continue
hit enter. If you want to access your Ubuntu server from the outside or over the network, then
you must install the OpenSSS server. So choose this option using the spacebar and then use down arrow key, choose done and hit enter
If you want to install additional applications during the installation, then choose this
application that suits your installation. And then choose done and hit enter
As you can see, installation has started. It will take 5 to 10 minutes depending upon your system resources
Once the installation is completed, installer will prompt us to reboot the system and remove
the installation media. As you can see, installation is completed. Choose reboot now, hit enter
Press enter to remove the installation media, in our case it's ISO file
After the reboot, we will get this login screen. Use the same username and password that we have created during the installation
In my case, it was linuxtechy
Once we are logged in, we will see these details like the system load, IP address assigned
to the interface. So in our case, enp0s3 is the interface and 192.168.1.16 is the IP address assigned to
this interface. We can also verify this IP address using the command ip space add space show
The IP is 192.168.1.16. Ok try to access this server from the outside
In my case, I will be using mobile Xtrem to access this server
Start the local terminal there and type ssh username is linuxtechy at the rate IP address
of your ubuntu server. 192.168.1.16. Specify the password, click on yes
We are logged in into our server. Now run the command tf space hyphen caps th
It will show us the file system which are created. So we can see it has created two partitions
One is slash which is mounted on slash mount point. Another one is boot partition which is mounted on slash boot
If you type cat space etc os release, you will see the os details
This confirms that we have successfully installed the ubuntu server 24.04. That's all from this video tutorial
I hope you have found it useful and informative. Do not forget to like the video, subscribe to our channel for more tech tutorials like this
See you in the next video. Bye.