View device information for a CD-ROM drive
There are several commands that you can use to view
DMESG command
/proc/sys/dev/cdrom/info file
cat /proc/sys/dev/cdrom/info
LSBLK command
List all block devices
Installing Vm-tools
From the menu, choose virtual Machines, reinstall VMware Tools, enter the CentOS terminal, and perform the above command to view the CD-ROM drive device information.
# 创建挂载目录mkdir /mnt/cdrom# 挂载mount /dev/sr0 /mnt/cdrom# 将光盘中的内容拷贝到主目录下mkdir ~/tmpcp /mnt/cdrom/* ~/tmp/# 解压cd ~/tmptar -xzvf VMwareTools-9.6.1-1378637.tar.gz# 安装cd vmware-tools-distrib./vmware-install.pl
Installation encountered the following error
Need to uninstall Open-vm-tools-desktop
rpm -e open-vm-tools-desktop
Uninstall after the installation, the installation process will have the following interaction, encountered the following two Interactive select No, other cases directly press ENTER
Searching for GCC...The path "" is not valid path to the gcc binary.Would you like to change it? [yes] noSearching for a valid kernel header path...The path "" is not a valid path to the 3.10.0-123.el7.x86_64 kernel headers.Would you like to change it? [yes] no
Configure shared Folders
After setting up the shared directory, you can view the shared directory in CentOS
The default share path for VMware is in /mnt/hgfs
, which is written in the script of VMware Tools /etc/init.d/vmware-tools
.
Reference
- Linux: How to view device information for a dvd/cd-rom drive
- Installing Vm-tools for Linux systems in VMware
- CentOS 7 Settings folder sharing in VMware
CentOS installation Vm-tools in VMware