It's almost the same as installing CentOS8, It may be useful to know that it is almost the same. Kana ww
Setting items | Settings in this memo | Remarks |
---|---|---|
Software selection | Server (using GUI) | initial value |
hostname | cent8st.example.co.jp | |
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 |
Language selection Select the language you want to use. I chose Japanese.
Installation overview Make the following settings before clicking Start Installation.
Select the time and date and select the region I chose Asia / Tokyo
Set the installation disk, partition if necessary I accepted the standard disc selection.
Disable KDUMP Uncheck Enable kdump If you need it, you can accept the standard settings without unchecking it.
Network and host name
Set root password
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".
Check the installation overview After completing the settings, click ** Start Installation ** to start the installation.
Reboot Wait for the installation to finish before rebooting.
Accept the license
If you can confirm and agree to the license Check I accept the license.
Initial setup completed
Login
Settings for first login 1: Language selection
Setting at first login 2: Input method selection
Settings for first login 3: Privacy settings
Settings for first login 4: Connecting to an online account (optional, I'm skipping)
Settings for first login 5: Completed
[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
Installing VirtualBox Guest Additions 1 Insert Guest Additions CD Image Select "Insert Guest Addtions CD image"
Installing VirtualBox Guest Additions 2 When the VBox_GAs_XXX screen appears, click Execute.
Installing VirtualBox Guest Additions 3 If you are required to authenticate, please enter your credentials.
Installing VirtualBox Guest Additions 4 When the installation is complete, restart the OS and you're done.
[user01@centos8st ~] sudo shutdown -r now
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 127.0.0.1/8 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 192.168.1.122/24 brd 192.168.1.255 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 192.168.122.1/24 brd 192.168.122.255 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 ~]$
[user01@centos8st ~]$ sudo vi /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=/dev/mapper/cs-swap rd.lvm.lv=cs/root rd.lvm.lv=cs/swap rhgb quiet ipv6.disable=1"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
[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 ...
done
[user01@centos8st ~]$ shutdown -r now
[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 ~]$
This setting is common regardless of whether IPv6 is stopped by either sysctl/kernel boot option.
[user01@centos8st ~]$ sudo vi /etc/hosts
127.0.0.1 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 ~]$
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