2. Creating and Configuring the Virtual Machine
Open the VirtualBox Manager and click New to set up your virtual machine.
2.1. Setting Basic Information
- Name: Assign an easy-to-identify name, such as Rocky9_Server.
- Type: Linux
- Version: Red Hat (64-bit) (We choose this as Rocky Linux is a RHEL clone.)
- Memory Size: Allocate at least 2048 MB (2 GB).
2.2. Hard Disk Configuration
When creating the disk, select VDI (VirtualBox Disk Image) and choose Dynamically allocated for efficient use of disk space. The recommended size is 20 GB.
2.3. Adjusting Critical VM Settings
Select the VM and go to Settings to adjust the following:
- System > Processor: Set CPU cores to 2 or more.
- Storage: Select the CD icon (Controller: IDE) and mount the Rocky Linux 9 ISO file downloaded in Step 1 in the attributes panel on the right.
- Network (Optional): For development environments, setting Adapter 1 to Bridged Adapter is most common for direct external access. (Basic NAT setting allows internet access.)