Build a CentOS 8 virtual environment on your Mac with VirtualBox
Overview
- Build a CentOS 8 virtual environment on your Mac
- Use VirtualBox to build the environment
Purpose
- Learning OS (Linux) for servers
Premise
procedure
- Install VirtualBox
- Download CentOS 8
- Building a virtual environment
- Addictive points
1. Install VirtualBox
- Access the VirtualBox site
- Click the "Download VirtualBox x.y" button to move to the Download Page
- Click the "OS X hosts" link under "VirtualBox x.y.z platform packages" under "VirtualBox binaries" to download the .dmg file.
- After downloading the file, open the file and double-click "VirtualBox.pkg" in 1.
- Follow the steps to complete the installation
2. Download CentOS 8
- Access the CentOS site
- Click "Download" in the header to move to the Download Page
- Click the link where the ISO of "8 (2004)" of "CentOS Linux" is "x86_64", and click one of the links under the message "The following mirrors ..." (* You can choose any of them. )
- Click the .iso file containing the "dvd" string in the list to download
3. Building a virtual environment
3.1 Creating a virtual environment
- Start VirtualBox
- Click "New (N)"
- On the "Name and Operating System" screen, enter as shown in the table below * and click "Continue".
- You can leave the default "Memory size" (1024MB). Click "Continue"
- Leave the default "Hard Disk" (create a virtual hard disk). Click "Create"
- You can leave the default "Hard Disk File Type" (VDI (VirtualBox Disk Image)). Click "Continue"
- Leave the default (variable size) for "Storage on physical hard disk". Click "Continue"
- For "File location and size", leave the default location. Keep the default size (8.00GB) or change it to any size. Click "Create"
item |
input |
name |
* Optional (with "CentOS 8" etc.) |
Machine folder |
* The default is OK |
type |
Linux |
version |
Red Hat(64-bit) |
3.2 Setting up a virtual environment
- Select the created virtual environment and click "Start (T)"
- The boot disk selection screen will appear, so select the downloaded CentOS 8 .iso file. Click "start"
- A black screen will appear, so select "Install CentOS Linux 8.y.z" and return.
- The language setting screen will appear. Select "Japanese" and click "Continue (C)".
- The "Installation Overview" screen will appear. Check / set the contents of 6 to 8 below.
- "Time and Date (T)": Change to "Asia"> "Tokyo"
- "Software selection (S)": * The default is OK (server (using GUI))
- "Installation destination": * The default is OK
- After completing 6-8, click "Start Installation"
- The installation will start, so set the "root password (R)" and "create user (U)" until the installation is completed (* When "create user (U)", select "this user" Check "Make an administrator (M)")
- After the installation is complete, click "Restart"
- Complete when the login screen appears
4. Addictive points
4.1 Small screen size
If you keep the default, the screen size is small and it is difficult to operate, so increase the screen size by the following procedure.
- Click "Settings"
- Click "Display"
- Increase the magnification of "Display magnification" of "Screen" (to about 200%)
4.2 Installation loop
If you keep the default, you will get into a CentOS installation loop (3.2 work loop), so change the setting according to the following procedure to avoid the loop.
- Click "Settings"
- Click "System"
- Change "Startup Order" from "Hard Disk" to "Optical"