Start CentOS 8 using VirtualBox

Overview

A beginner of the program was studying according to "Linux Standard Textbook" to learn Linux commands. There was a description on the curriculum to install CentOS, but there was no description about CentOS 8, so I checked it myself. The download page of CentOS has changed quite a bit, so I hope you find it helpful.

environment

macOS Catalina MacBook Air (without optical drive)

What to do

When you read the textbook, you should install linux. Do you download it from the site? I understood that, but when I think about it, I realize that it cannot be installed normally because it is OS software. As a result of investigation, I found that CentOS can be virtually run on MacOS by using virtualization software called VirtualBox.

reference

I tried installing CentOS 7 using VirtualBox on Mac Most of it is written here, so I wonder if there is no problem if CentOS 8 can be downloaded safely.

[Clogged up when installing VirtualBox on Mac and building CentOS 8] (https://qiita.com/blackpeach7/items/bc181a6115bbb8cf97ba)

Install VirtualBox

There is a download link in Official, so just download it normally from there. スクリーンショット 2020-11-09 20.25.02.png You can download the dmg file from the link "OS X hosts", so open it and install it.

Download CentOS

Download from Official. There are various versions and I am at a loss, but I chose "CentOS Linux" here. スクリーンショット 2020-11-09 20.30.01.png

Next, select "x86_64" in the ISO file. スクリーンショット 2020-11-09 20.32.03.png

You will be taken to a page where you can choose which type to download. It seems OK wherever it says The following mirrors in your region, but I'mhttp://ftp.iij.ad.jp/pub/linux/centos/8.2.2004/isos/x86_64/ I downloaded it from where it says. (I selected the one that says riken, but the download didn't progress so much, so I changed it to iij.) スクリーンショット 2020-11-09 20.33.16.png This downloaded data is in ISO format and seems to be a file containing the CentOS 8 installer. After this, start VirtualBox and install CentOS 8 on that virtual machine.

Install CentOS on VirtualBox virtual machine

The procedure from here is basically the same as Reference URL, so please refer to that. If you proceed according to the captured image, CentOS will start without any problem. What I got stuck in was the network connection.

I made it here Refer to the article and connected by NAT. I was able to build the network settings by setting guest OS (CentOS) → VirtualBox (role of router) → host OS (macOS).

Summary

After that, I wanted to operate CentOS with CLI instead of GUI, so I tried to install the OS again, but I was able to proceed with learning Linux safely. Regarding the network connection part, after the Linux standard textbook, "[Network & Server Construction from AWS Basics](https://www.amazon.co.jp/Amazon-Web-Services-%E5%9F%BA%] E7% A4% 8E% E3% 81% 8B% E3% 82% 89% E3% 81% AE% E3% 83% 8D% E3% 83% 83% E3% 83% 88% E3% 83% AF% E3% 83% BC% E3% 82% AF-% E3% 82% B5% E3% 83% BC% E3% 83% 90% E3% 83% BC% E6% A7% 8B% E7% AF% 89 / dp / 4822237443 ) ”, And I understood how to write NAT and IP address, so I can understand what I was doing when I was writing this article.

Recommended Posts

Start CentOS 8 using VirtualBox
Start using Python
Installation on CentOS8 VirtualBox
[CentOS7] Install anaconda using pyenv
Install CentOS7 VirtualBox Guest Additons
[Centos8] logrotate does not start properly
[Linux] I installed CentOS on VirtualBox
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Install Python on CentOS using Pyenv
Using Chainer with CentOS7 [Environment construction]
Install Python on CentOS using pyenv
Get Twitter bookmarks on CentOS using Selenium