Red Hat Enterprise Linux 8 Tools安装教程

RHEL8环境配置:

        尽量使用刚安装完的RHEL8的系统环境,尽量不要有任何操作,以防yum源配置不上无法安装RHEL8Tools的安装

        

Red Hat Enterprise Linux 8 Tools安装教程及缓存仓库问题解决方法_运维

         我这里的环境是刚装好的环境(使用root管理员登入)

        然后打开终端(鼠标右键 -> new terminal),输入:

sudo dnf install open-vm-tools open-vm-tools-desktop xorg-x11-drv-vmware -y

        之后会有这种报错:

[root@localhost ~]# sudo dnf install open-vm-tools open-vm-tools-desktop xorg-x11-drv-vmware
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
错误:没有启用的仓库。

解决方法:

       1、首先,将linux安装镜像挂载到虚拟机上(如果没有挂载上的话,会造成缓存仓库错误)

       2、可以使用df -h查看下面的挂载,然后使用mount -o ro /dev/sr0 /media挂载到media目录下

       3、配置yum本地源

[root@localhost etc]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
redhat.repo
[root@localhost yum.repos.d]# vim local.repo

local.repo的文件内容如下:
[BaseOS]
name=BaseOS
enabled=1
baseurl=file:///media/BaseOS
gpgcheck=0
[AppSream]
name=AppSream
enabled=1
baseurl=file:///media/Appstream
gpgcheck=0



        4、配置完yum源,需要执行下面三个命令yum clean all、yum makecache、yum repolist,相当于激活配置吧。

        显示如下是正确的:

[root@localhost ~]# yum clean all
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
0 文件已删除
[root@localhost ~]# yum makecache
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
AppStream                                                                                                    92 MB/s | 5.3 MB     00:00    
BaseOS                                                                                                       91 MB/s | 2.2 MB     00:00    
元数据缓存已建立。
[root@localhost ~]# yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
上次元数据过期检查:0:00:10 前,执行于 2021年06月10日 星期四 10时28分17秒。
仓库标识                                                           仓库名称                                                            状态
AppSream                                                           AppStream                                                           4,672
BaseOS                                                             BaseOS                                                              1,658
[root@localhost ~]#

紧接着第二次输入:

sudo dnf install open-vm-tools open-vm-tools-desktop xorg-x11-drv-vmware -y


注意如果有同步仓库缓存失败:

同步仓库 'AppSream' 缓存失败,忽略这个 repo。

同步仓库 'BaseOS' 缓存失败,忽略这个 repo。

        很多人会出现其中一个问题,或者两个,甚至多个问题,只要是同步仓库的缓存失败的话

        如果是这种问题,首先查看是否挂载上镜像文件。

        很多人都是没挂载上镜像文件就去配置yum源了,注意系统的提示。

        也可能是你的yum源的配置有问题,需要重新配置repo文件了。

拓展资料:

        首屈一指的就是系统的分辨率,可设置为自动适应窗口,设置后ubuntu系统的分辨率可随vmware软件窗口的大小而改变。然后就是可以将windows系统与虚拟机系统中的文件用鼠标拖拽的方式到对方的系统,实现文件复制的功能。双方均可向对方拖拽。