在mount /dev/cdmnt /mnt挂载虚拟光驱,使用完成后卸载虚拟光驱,umount /dev/cdrom
导致虚拟机hung住一段时间,具体解决方案https://www.cndba.cn/hbhe0316/article/4780https://www.cndba.cn/hbhe0316/article/4780
https://www.cndba.cn/hbhe0316/article/4780
https://www.cndba.cn/hbhe0316/article/4780
Symptoms
When you disconnect the virtual CD/DVD drive without unmounting inside guest OS, you experience these symptoms:
Linux virtual machine stops responding.
Virtual machine does not respond until you answer the question:
The guest operating system has locked the CD-ROM door and is probably using the CD-ROM, which can prevent the guest from recognizing media changes.
If possible, eject the CD-ROM from inside the guest before disconnecting.
Disconnect anyway and override the lock?"
Resolution
This is an expected behavior when a CD/DVD drive is locked by virtual machine.
To work around this issue, use one of these options:
Unmount the CD/DVD drive in the virtual machine before disconnecting.
For example, run this command for Guest OS RHEL7:
eject cdrom
Add these entries to vmx file to answer the question automatically:
To cause disconnection to fail
------------------------------------
cdrom.showIsoLockWarning = "TRUE"
msg.autoanswer = "TRUE"
------------------------------------
To force to disconnect CD/DVD drive regardless of locking drive by virtual machine
------------------------------------
cdrom.showIsoLockWarning = "FALSE"
msg.autoanswer = "TRUE"
------------------------------------
Note: For more information, see Tips for editing a .vmx file (1714).
https://www.cndba.cn/hbhe0316/article/4780
详见官网链接:https://kb.vmware.com/s/article/2144053?lang=en_ushttps://www.cndba.cn/hbhe0316/article/4780
https://www.cndba.cn/hbhe0316/article/4780
https://www.cndba.cn/hbhe0316/article/4780
https://www.cndba.cn/hbhe0316/article/4780
https://www.cndba.cn/hbhe0316/article/4780
版权声明:本文为博主原创文章,未经博主允许不得转载。
linux