挂载ISO镜像弹出Answer Question后未回答导致虚拟机Suspend

在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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值