18. Create a Virtual Machine with Linux OS - Agnivo102/Database_Architect GitHub Wiki

Introduction: A Virtual Machine in simple words is a separate computer inside a computer. We will create it. Follow the steps for creating a virtual machine.

........................................................................................................................

Step 1: Download virtual box from here. Its an application for creating Virtual Machine. Download Link: https://www.virtualbox.org/wiki/Downloads

Step 2: Select the package according to your Base Operating System. Download it.

Step 3: Then install it. Follow the steps:

Click on Next after accepting the license agreement.

Click on Next.

Click on Next.

Click on Yes.

Click on Yes.

Click on Next.

alt="Screenshot" style="max-width:100%; height: auto;"

<img alt="Screenshot" style="max-width:100%; height: auto; src="https://github.com/user-attachments/assets/3bd276d9-f488-4471-b29d-c0cf04e3da49" />

Click on Install.

Click on Finish and your Virtual Box is installed.

Step 4: This is how it looks like:

Step 5: Click on New.

Step 6: In this step we will start creating the Virtual Machine. First we will need the Operating System for the virtual machine. We will use Linux as its Operating System. Download it from here. https://drive.google.com/file/d/1KPeb8brlnaAYwJ5tEdM5-r9FICNKN7wJ/view

Step 7: Lets start creating the virtual machine. Give a name for the virtual machine.

Step 8: Now Select the folder where the Virtual machine will be placed. Remember you will need at least 4 GB RAM and 60 GB Space.

Step 9: Now Select the file you just downloaded here,

Step 10: Uncheck this one.

Step 11: Click on here.:

Step 12: This is where you will set up how much primary memory and computing power your Virtual Machine will need.

Step 13: Select the base memory to 4000 MB or 4 GB. Do it by dragging the pointer to right direction or left direction.

Step 14: Remember keep the pointer in the green area. My system has only 4 CPU so I can use 1 CPU here to keep it at the green zone.

Step 15: Go to the specific virtual hard disk. Here you will select how much secondary memory your Virtual Machine will use.

Step 16: Select this to 60 GB.

Step 17: Click on Finish. Your Virtual Machine is created.

Step 18: Double click on the machine to start it.

Step 19: The system will boot.

Step 20: After booting this will show. Set the language to English and click on continue.

Step 21: If your cursor can't come outside the virtual machibne click on the ctrl key which is on the right side of the keyboard. Now click on date and time to set them to your location. Click on Done.

Step 22: Click on Software Selection. Click on Server with GUI. Select on all the options available there. Click on Done.

Step 23: It will take some time. Then click on installation destination. Click on the Vbox Hard disk. Click on Done.

Step 24: Click on begin installation.

Step 25: It has begin its installation. Now you have to set a root password and create an user. Go to root password. After setting it go to User creation.

Set a root password.

Warning: Remember the password. If you forget the password there is no way to recover it. The account will be lost.

Now set an user and give a password.

It will take a lot of time for the installation.

Step 26: After the installation it will say to reboot. Click on reboot. It will reboot.

Step 27: After the reboot it will say to accept the license. Click on it. Accept it. Click on done.

Step 28: Click on Finish Configuration.

Step 29: Sign in to the system. With the root user. Click on not listed. Give the username as root. Give on next. Give the root password. Click on Sign in.

Step 30: Click all to next or skip. Then click on start using oracle Linux server.

Step 31: Now click on the devices of virtual box. Then click on shared folders. Then click on Shared folder settings.

Step 32: Then create a folder in your local machine. Then return to the virtual box and click on add a shared folder. Then give the folder path and do the selection as in the image. Click on ok. Click on Ok.

This adds a shared folder. Through this you can bring anything from your local machine to your virtual machine and vice versa.

Step 33: Now click on the devices of virtual box. Click on shared clipboard. Then click on Bidirectional.

Through this you can copy anything from your local machine to your virtual machine and vice versa.

Step 33: Now click on the devices of virtual box. Click on drag and drop. Then click on Bidirectional.

Through this you can drag and drop anything from your local machine to your virtual machine and vice versa.

Step 34: Click on Insert guest additions image from devices. Double Click on the software. Click on Run software. This will solve the mouse problem.

Step 35: Go to the terminal and type init 0. This will shut down the system and the server. To restart the server type init 6. Only root can do that.

Step 29: Again Sign in to the system. With the other user you created. Follow step 30 and you are set for the other user.

Note: This save state will save the machine in its current state. Shut down and power off will shut down the machine

You are all set. Congrats you have created a virtual machine with Linux OS.