Install CentOS Stream8 in VirtualBox

What is written in this memo

It's almost the same as installing CentOS8, It may be useful to know that it is almost the same. Kana ww

Installation conditions

Setting items Settings in this memo Remarks
Software selection Server (using GUI) initial value
root password Let's think about a suitable one
General user ID user01
General user password
Installation destination PC VirtualBox virtual machine Introduced VBoxGuestAdditions
Japanese input environment Japanese input environmentを設定
IPv6 Invalidation
virtbr0 Invalidation 仮想ブリッジ、不要ならInvalidation


  1. Start installation With Install CentOS Stream 8-stream selected, press Tab to display the menu Add vga = 773 to the end and press Enter to launch the installer.
  1. Language selection Select the language you want to use. I chose Japanese. CentStream8Inst00009.png

  2. Installation overview Make the following settings before clicking Start Installation.

  1. Select the time and date and select the region I chose Asia / Tokyo CentStream8Inst00011.png

  2. Set the installation disk, partition if necessary I accepted the standard disc selection. CentStream8Inst00012.png

  3. Disable KDUMP Uncheck Enable kdump If you need it, you can accept the standard settings without unchecking it. CentStream8Inst00013.png

  4. Network and host name

  1. Set root password CentStream8Inst00015.png

  2. 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". CentStream8Inst00016.png

  3. Check the installation overview After completing the settings, click ** Start Installation ** to start the installation.

  4. Reboot Wait for the installation to finish before rebooting. CentStream8Inst00018.png

  5. Accept the license CentStream8Inst00019.png

  6. If you can confirm and agree to the license Check I accept the license. CentStream8Inst00020.png

  7. Initial setup completed CentStream8Inst00021.png

  8. Login CentStream8Inst00022.png

  9. Settings for first login 1: Language selection CentStream8Inst00024.png

  10. Setting at first login 2: Input method selection CentStream8Inst00025.png

  11. Settings for first login 3: Privacy settings CentStream8Inst00026.png

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

  13. Settings for first login 5: Completed CentStream8Inst00028.png

VirtualBox Guest Additons installation

[user01@centos8st ~]$ sudo dnf group install -y "Development Tools"
[user01@centos8st ~]$ sudo dnf install -y elfutils-libelf-devel
[user01@centos8st ~]$ sudo dnf clean all
[user01@centos8st ~]$ sudo dnf check-update
[user01@centos8st ~]$ sudo dnf -y upgrade
[user01@centos8st ~]$ shutdown -r now
[user01@centos8st ~] sudo shutdown -r now

IP grant status immediately after installation

When using it as a server that does not use a virtual environment, IPv6 and virbr0 are an obstacle. Disable IPv6 and virbr in the next item.

[user01@centos8st ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:9f:3f:92 brd ff:ff:ff:ff:ff:ff
    inet brd scope global dynamic noprefixroute enp0s3
       valid_lft 13605sec preferred_lft 13605sec
    inet6 240b:11:aae2:6200:5678:5987:aded:cf0f/64 scope global dynamic noprefixroute 
       valid_lft 13973sec preferred_lft 12173sec
    inet6 fe80::4a7c:a888:c035:7231/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:1b:5f:80 brd ff:ff:ff:ff:ff:ff
    inet brd scope global virbr0
       valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:1b:5f:80 brd ff:ff:ff:ff:ff:ff
[user01@centos8st ~]$

IPv6 disabled

Method 1: Disable with Kernel Boot Option (recommended)

[user01@centos8st ~]$ sudo vi /etc/default/grub 
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_CMDLINE_LINUX="resume=/dev/mapper/cs-swap rhgb quiet ipv6.disable=1"
[user01@centos8st ~]$ 
[user01@centos8st ~]$ ls -lh /etc/grub*.cfg
lrwxrwxrwx.1 root root 22 September 9 04:00 /etc/grub2.cfg -> ../boot/grub2/grub.cfg
[user01@centos8st ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
[user01@centos8st ~]$ shutdown -r now

Method 2: Disable with sysctl

[user01@centos8st ~]$ sudo vi /etc/sysctl.d/ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
[user01@centos8st ~]$ sudo sysctl --load /etc/sysctl.d/ipv6.conf
[user01@centos8st ~]$ nmcli connection show enp0s3 |grep ipv6.method
ipv6.method:                            auto
[user01@centos8st ~]$ sudo nmcli connection modify enp0s3 ipv6.method ignore
[user01@centos8st ~]$ nmcli connection show enp0s3 |grep ipv6.method
ipv6.method:                            ignore
[user01@centos8st ~]$

Common setting

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

[user01@centos8st ~]$ sudo vi /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4
##::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
[user01@centos8st ~]$ 
[user01@centos8st ~]$ 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@centos8st ~]$ 

Disable virbr

If you do not build a virtual environment such as KVM, it is unnecessary and will be stopped.

[user01@centos8st ~]$ systemctl disable libvirtd
[user01@centos8st ~]$ sudo shutdown -r now


Recommended Posts

Install CentOS Stream8 in VirtualBox
Install CentOS Stream 8 in Hyper-V environment
Install Apache on CentOS on VirtualBox
Install MariaDB (CentOS 8)
[CentOS] Install apache-loggen
Put java8 in centos7
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
[CentOS7] Install aws cli
Install Vertica 10.0 on CentOS 6.10
Disable IPv6 in CentOS8
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Network install CentOS 8 with Kickstart.
AWS CLI install in Ubuntu 20.04
Install yarn in docker image
Install the plugin in Eclipse
Install OpenFOAM v2006 on CentOS
Java Stream API in 5 minutes
Install Jenkins on Docker's CentOS
Use Redis Stream in Java
Install Ruby 2.7 on CentOS 7 (SCL)
How to install PHP 7.4 and SQL Server drivers in CentOS 7.7
Install tomcat plugin in eclipse
Install Ubuntu Server 20.04 in VirtualBox on Mac and connect with SSH
Put Open Lite Speed in CentOS8.
Try DPDK20 SDK on CentOS7 ①Install
CentOS7 VirtualBOX yum cannot be used
Install Ruby 2.5 on CentOS 7 using SCL
Install a CA certificate in ColdFusion
Install Java Open JDK 8 on CentOS 7
How to install Bootstrap in Ruby
I tried putting Domino11 in CentOS7
How to install MariaDB 10.4 on CentOS 8
Install laravel/Dusk in docker environment (laravel6)
Install apache 2.4.46 from source on CentOS7
Steps to install MySQL 8 on CentOS 8
Error summary in bundle install. memorandum
Steps to install devtoolset-6 on CentOS 7
Install Java 9 on windows 10 and CentOS 7
Do you use Stream in Java?
How to install Swiper in Rails
About virtualBox6.1.16, error resolution of shared folder when updating to CentOS Stream