--提前网络配置 [root@redhatos network-scripts]# more ifcfg-enp0s8 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no NAME=enp0s8 UUID=1b7fb098-6a93-49f9-ab5c-1a8bc3728073 DEVICE=enp0s8 IPADDR=192.168.56.131 GATEWAY=192.168.56.1 ONBOOT=yes [root@redhatos network-scripts]# mkdir -p /media/os mount -o loop /dev/cdrom /media/os cd /etc/yum.repos.d/ tar -cvf `hostname`.bk.tar . mv `hostname`.bk.tar ../ cd echo "[ora8.6] name=ora8.6 baseurl=file:///media/os/AppStream enabled=1 gpgcheck=0 [orabase8.6] name=orabase8.6 baseurl=file:///media/os/BaseOS enabled=1 gpgcheck=0" > /etc/yum.repos.d/cdbase.repo yum clean all yum update
其他yum源收集
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
安装工具,使用更加简单
[root@redhatos os]# ./VBoxLinuxAdditions.run Verifying archive integrity... 100% MD5 checksums are OK. All good. Uncompressing VirtualBox 7.2.2 Guest Additions for Linux 100% VirtualBox Guest Additions installer VirtualBox Guest Additions: Starting. VirtualBox Guest Additions: Setting up modules VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while. VirtualBox Guest Additions: To build modules for other installed kernels, run VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version> VirtualBox Guest Additions: or VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all VirtualBox Guest Additions: Building the modules for kernel 4.18.0-372.9.1.el8.x86_64. VirtualBox Guest Additions: reloading kernel modules and services VirtualBox Guest Additions: kernel modules and services 7.2.2 r170484 reloaded VirtualBox Guest Additions: NOTE: you may still consider to re-login if some user session specific services (Shared Clipboard, Drag and Drop, Seamless or Guest Screen Resize) were not restarted automatically [root@redhatos os]# [root@redhatos os]# [root@redhatos os]# [root@redhatos os]# reboot
积累中
浙公网安备 33010602011771号