[LINUX] Installation on CentOS8 VirtualBox

What is written in this memo

Installation conditions

Setting items Settings in this memo Remarks
Software selection Server (using GUI) initial value
hostname cent8.example.co.jp
root password
General user ID user01
General user password
Installation destination PC VirtualBox virtual machine Introduced VBoxGuestAdditions
Japanese input environment Japanese input environmentを設定
IPv6 Invalidation


  1. Select Install CentOS Linux 8.0.1905 (Items 1 to 3 are failure examples. Start with Item 4) インストール

  2. Language selection (Items 1 to 3 are examples of failures. Start with Item 4) cent8inst_2.png

  3. Installation overview (Items 1 to 3 are examples of failure. Start from item 4) When I start the installer normally, the screen is cut off like this. cent8inst_3.png

  4. Start installation With Install CentOS Linux 8.0.1905 selected, press Tab to display the menu. Add vga = 773 to the end to start the installer.

  1. Language selection Select the language you want to use. I chose Japanese. cent8inst_5.png

  2. Installation overview Time and date Installation destination (disk and partition if necessary) Disable KDUMP (If you have a home server, even if you get KDUMP, it will not be analyzed, right?) Network and host name (Let's set the host name even with DHCP) cent8inst_6.png

  3. Select the time and date and select the region I chose Asia / Tokyo cent8inst_7.png

  4. Set the installation disk, partition if necessary I accepted the standard disc selection. cent8inst_8.png

  5. Disable KDUMP Uncheck Enable kdump If you need it, you can accept the standard settings without unchecking it. cent8inst_9.png cent8inst_10.png

  6. Network and host name Host name setting Turn Ethernet on cent8inst_12.png

  7. Check the installation overview Click Start Installation cent8inst_13.png

  8. User settings Set the root password and create a general user account. cent8inst_14.png

  9. Set root password cent8inst_15.png

  10. Create user Specify the information of the user to create I'm working with the user I created here by checking "Make this user an administrator". cent8inst_16.png

  11. Reboot Wait for the installation to finish before rebooting. Don't forget to remove the installation media. cent8inst_18.png

  12. Accept the license cent8inst_19.png

  13. If you can confirm and agree to the license Check I accept the license. cent8inst_20.png

  14. Initial setup completed cent8inst_21.png

  15. Login cent8inst_22.png

  16. Settings for first login 1: Language selection cent8inst_23.png

  17. Setting at first login 2: Input method selection cent8inst_24.png

  18. Settings for first login 3: Privacy settings cent8inst_25.png

  19. Settings for first login 4: Connecting to an online account (optional, I'm skipping) cent8inst_26.png

  20. Settings for first login 5: Completed cent8inst_27.png

VirtualBox Guest Additions installation

  1. Add required packages Install the development environment for VirtualBox Guest Additions installation At first, the installation of VBoxGuestAdditions failed, so when I looked at setup.log, it requested the following module, so It is installed together with the development environment. libelf-dev lebelf-devel or elfutils-libelf-devel

    [user01@centos8 ~] sudo dnf group install -y "Development Tools"
    [user01@centos8 ~] sudo dnf install -y  elfutils-libelf-devel
  2. Implementation of update In most cases, there will be a gap between the additionally installed kernel-header and the running kernel. Let's update and match the version of the package.

    [user01@centos8 ~] sudo dnf clean all
    [user01@centos8 ~] sudo dnf check-update
    [user01@centos8 ~] sudo dnf -y upgrade
    [user01@centos8 ~] sudo shutdown -r now
  3. Installing VirtualBox Guest Additions 1 Guest Additions Select Insert CD Image cent8inst_29.png

  4. Install VirtualBox Guest Additions 2 When the VBox_GAs_XXX screen appears, click Execute. cent8inst_28.png If the screen does not appear, execute the installation with the following command.

    [user01@centos8 ~] sudo /run/media/user01/Vbox_GAs_6.0.14/VBoxLinuxAdditions.run
    [user01@centos8 ~] sudo shutdown -r now
  5. Install VirtualBox Guest Additions 3 If you are required to authenticate, please enter your credentials. cent8inst_30.png

  6. Install VirtualBox Guest Additions 4

When the installation is complete, restart the OS and you're done.

IPv6 disabled

Method 1: Disable with sysctl

  1. IPv6 disabling settings in sysctl.conf

    [user01@cent8 ~]$ sudo vi /etc/sysctl.d/ipv6.conf
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    [user01@cent8 ~]$ sudo sysctl --load /etc/sysctl.d/ipv6.conf
  2. IPv6 disable setting in NetworkManager If you are using NetworkManager If you restart the OS or restart nic with a command, IPv6 will be enabled. Configure NetworkManager not to enable IPv6. (Replace enp0s3 with the NIC name of your server)

    [user01@cent8 ~]$ nmcli connection show enp0s3 |grep ipv6.method
    ipv6.method:                            auto
    [user01@cent8 ~]$ sudo nmcli connection modify enp0s3 ipv6.method ignore
    [user01@cent8 ~]$ nmcli connection show enp0s3 |grep ipv6.method
    ipv6.method:                            ignore
    [user01@cent8 ~]$ 

Method 2: Disable with Kernel Boot Option

  1. Add "ipv6.disable = 1" to the end of the GRUB_CMDLINE_LINUX line.

    [user01@cent8 ~]$ sudo vi /etc/default/grub 
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_CMDLINE_LINUX="resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet ipv6.disable=1"
    [user01@cent8 ~]$ 
  2. Reflect Grub settings Execute grub2-mkconfig by specifying the link destination confirmed by ls. If there are two links, also execute grub2-mkconfig twice.

    [user01@cent8 ~]$ ls -lh /etc/grub*.cfg
    lrwxrwxrwx.1 root root 22 October 3 02:01 /etc/grub2.cfg -> ../boot/grub2/grub.cfg
    [user01@cent8 ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    [user01@cent8 ~]$ 

Common setting

This setting is common regardless of whether IPv6 is stopped by either sysctl / kernel boot option.

  1. Remove IPv6 entry from / etc / hosts Delete or comment out the IPv6 entry.

    [user01@cent8 ~]$ cat /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ##::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    [user01@cent8 ~]$ 
  2. Remove the IPv6 entry from / etc / netconfig Suppress error messages. Delete or comment out the udp6 / tcp6 line.

    [user01@cent8 ~]$ sudo vi /etc/netconfig 
    # The network configuration file. This file is currently only used in
    # conjunction with the TI-RPC code in the libtirpc library.
    # Entries consist of:
    #       <network_id> <semantics> <flags> <protofamily> <protoname> \
    #               <device> <nametoaddr_libs>
    # The <device> and <nametoaddr_libs> fields are always empty in this
    # implementation.
    udp        tpi_clts      v     inet     udp     -       -
    tcp        tpi_cots_ord  v     inet     tcp     -       -
    ##udp6       tpi_clts      v     inet6    udp     -       -
    ##tcp6       tpi_cots_ord  v     inet6    tcp     -       -
    rawip      tpi_raw       -     inet      -      -       -
    local      tpi_cots_ord  -     loopback  -      -       -
    unix       tpi_cots_ord  -     loopback  -      -       -
    [user01@cent8 ~]$ 


Recommended Posts

Installation on CentOS8 VirtualBox
Apache installation fails on CentOS 8.2
Steps to install VirtualBox on CentOS
[Linux] I installed CentOS on VirtualBox
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
centOS 7 installation error
Installation of CentOS 8
PHP installation (CentOS 8)
CentOS 7 + ffmpeg installation
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
numba installation on mac
Python 2.7 installation (yum) (CentOS 6.8)
Start CentOS 8 using VirtualBox
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install awscli on centos7
Install Chainer on CentOS 6.7
Python 3.5 installation (yum) (CentOS 6.8)
Torque setup on CentOS 6
python (pyenv + pyenv-virtualenv) + CentOS7 installation
Setting up grub on CentOS 8
CentOS 8 installation procedure (latest version)
Docker Easy Installation Procedure (CentOS)
Until docker-compose up on CentOS7
Anaconda environment construction on CentOS7
Install CentOS7 VirtualBox Guest Additons
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Simple traffic monitor on CentOS
Install Chrome on CentOS 7 series
Install Python 3.8 on CentOS 8 (AppStream)
NTP (Chrony) installation method (CentOS8)
Notes on installing Python on CentOS
Connect to centos6 on virtualbox with ssh connection from Mac
Steps to deploy EMLauncher on CentOS 8
Steps to install MySQL 8.0 on CentOS 8.1
raspberry pi 4 centos7 install on docker
Easy installation of OpenCV on RaspberryPi 3+
Install java (Oracle JDK14) on CentOS7
How to install PyPy on CentOS
Set up Python environment on CentOS
OpenCV installation procedure on Raspberry Pi
How to install TensorFlow on CentOS 7
I tried Cython on Ubuntu on VirtualBox
Install pip on CentOS7. Also iPython.
Create a python environment on centos
Install Python on CentOS using Pyenv
If Python 3.5.0 installation fails on Mac
Teamviewer for Linux installation procedure (CentOS)
How to install Maven on CentOS
Build a python3 environment on CentOS7
Study Note 9_Install Jenkins on CentOS7
Install Python on CentOS using pyenv
Oracle Database 18c installation (Linux CentOS 7 edition)
Install Grub on USB memory (UEFI) ~ grub installation ~
Try using Bash on Windows 10 2 (TensorFlow installation)
Enable sar command on CentOS (install sysstat)
Get Twitter bookmarks on CentOS using Selenium
Connecting from python to MySQL on CentOS 6.4