How to create a New Linux machine in Oracle VM VirtualBox


 Steps to create a Linux machine in Oracle VM VirtualBox .

 

Oracle VM VirtualBox Manager – New Virtual Machine

Creating a new virtual machine in the Oracle VM virtual Box is simple, quick and efficient way to deploy and operate in the operating system.

Here we are going to deploy the centos directly using virtual disk image.

 

Steps to create the virtual machine

1, Open the “Oracle VM VirtualBox Manager” in the windows

# Click Machine > New 

2, Give the basic details of VM which is to be built 

# Name/Location/Memory Size/Hard disk 

  • Name: Mention the name of the server.
  • Machine Folder: Location of the server in which it will store the hard disk and machine related files.
  • Type/Version:  Select the option based on the OS which we are deploying.
  • Memory size: Set the size of the memory based on our use and also you can leave the default option which is recommended by VirtualBox.
  • Hard Disk: Click on the “Use and existing virtual hard disk file” (As I am going to use the already installed centOS disk)

(Download the virtual image disk from the Internet for Lab use, please find the below screenshot for reference).

Select the required image which is needed based on our use (vmware/VirtualBox(VDI).

3, To attach the existing hard disk which was downloaded from the Internet.

# Select use an existing virtual hard disk file > Click Folder > Select Add > Click Choose. 

4, Now all the details are updated to create a virtual machine. 

# Click Create 

(Make sure the hard disk location was pointed correctly inorder to avoid error while creating the machine)

 

Virtual Machine has been created and listed in the Oracle VM VirtualBox manager.

 

5, To Start the VM in the VirtualBox Manager

# Click on the VM name to select and Right Click > Start > Normal Start  

VM will be started and OS will be loaded automatically (As we are using existing hard disk)

6, Select the CentOS stream and load the OS in the VM.

Password for this machine can be retrieved from the website where we downloaded the virtual Image disk (Please check the below image to view the password)

7, To change the hostname for this server, please follow the below steps to set your own server name.

#Type sudo vi /etc/hostname 

  • Enter the root password

8, Update the server name as per your requirement, Now save and exit the vi editor.

#Press Esc and type :wq! 

9, To view the updated server name in the terminal file.

#Type cat /etc/hostname 

10, To change the root password in this server.

#Type sudo passwd root 

Enter the old password and type the new password.

Comments