LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > beachboy2
User Name
Password

Notices


Rate this Entry

Install a Linux distro in VirtualBox

Posted 04-06-2022 at 04:26 AM by beachboy2
Updated 04-06-2022 at 06:30 AM by beachboy2

I am assuming that you have already installed VirtualBox and that your CPU supports virtualization, using either Intel VT-x or AMD-V (SVM) which has been enabled in the BIOS.

The ISO file for the Linux distro (e.g. MX Linux) to be installed in VirtualBox has been downloaded to the userís Downloads directory.

Open VirtualBox and click on New.

1. Enter a descriptive name into the Name box (e.g. MX Linux).
2. Select Linux as the Type.
3. Choose Debian 64bit as the Version (change as necessary).
4. Click Next to continue.

Allocate Memory To The Virtual Machine

The next screen asks you to set how much memory you wish to give to the virtual machine. I gave it 4GB out of the total of 8GB available.

You should not go below the minimum specified and you should also make sure you leave enough memory for the host operating system to keep running.

Create A Virtual Hard Drive


The next three steps are all about allocating disk space to the virtual machine.

1. Select Create a virtual hard drive now.
2. Click Create.
3. You will be asked to select the type of hard drive to create. The default VDI file type is the one native to VirtualBox, so select VDI.
4. Click Next.

When deciding on the way the hard drive is created you can choose to opt for a fixed size hard drive or a dynamically sized hard drive.

NB It is important to note at this point that no partitioning occurs on your actual hard drive. All that happens is that a file is created on your computer which acts as the hard drive.

1. Select your desired hard drive type (Dynamic).
2. Click Next.
3. After specifying the hard drive type and the way the disk is allocated you are asked to specify how much disk space you are going to give over to the MX Linux Virtual Machine. I gave it 70GB out of 250GB.
4. Choose where you wish to save the virtual machine.
5. Specify the disk size (70GB)
6. Click Create.

Click on Settings > Storage > Storage Devices > Empty.

Under Attributes click on the down arrow to the right of the blue optical disk. (See attached screenshot).

Click on Choose a Disk file.

Search the computer for the required (MX Linux) ISO file, which in this case is in Downloads. Highlight the ISO file and click on Open.

Start The Virtual Machine

The Virtual Machine has now been created and you can start it by pressing the green Start arrow on the toolbar.

Proceed to Install MX Linux.


IMPORTANT
:

Before clicking on Restart and Done at the end of the installation, do make sure that the ISO file is removed under Storage Devices.

Simply right-click on the ISO file and then click on Remove attachment.

Failure to do this will result in the whole installation process restarting with a liveuser and not as the New User with a login password.
Attached Images
File Type: png Optical Drive-Blue.png (47.9 KB, 3 views)
Posted in Uncategorized
Views 234 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:24 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration