解決辦法:
- 找到該虛擬機(jī)的配置文件(.vmx格式)
- 用記事本打開
- 添加一行
devices.hotplug = "false"
- 保存退出
再次開啟虛擬機(jī)后問題得以解決
原文如下:
遇到這個問題的人不少篓像,Windows7下面的那個安全刪除硬件下面一大堆的ATA Channel X耘婚,基本上發(fā)帖問的都是有強(qiáng)迫癥的,也沒人放Google找就發(fā)帖問戒悠,作為嚴(yán)重強(qiáng)迫癥用戶找到了解決方案轧膘,VMware官方文檔钞螟。
如果你是輕度強(qiáng)迫癥用戶,只需要按照官方文檔說的谎碍,編輯VMX配置文件加上一句話就可以了
devices.hotplug = "false"
如果重度強(qiáng)迫癥用戶鳞滨,連硬盤都不想看見,就按照這個解決方案蟆淀,開機(jī)用腳本改注冊表伺候拯啦。
MAKING AN EJECTABLE DEVICE UN-EJECTABLE
The way to get rid of the option to eject the virtual disk is to make Windows believe that it is not hot-pluggable. This can be achieved by modifying the corresponding device capabilities registry value. That, however, is complicated by the facts that only SYSTEM has write access to the registry key and that Windows re-writes the correct value when booting – re-enabling HotPlug. The solution is to execute a computer startup script via Group Policy. Startup scripts are run in SYSTEM context, and since the script runs every time the system is booted we can be sure the device capabilities value is always configured the way we want it to be.
To implement the solution, create a batch file with the following content and run it as a computer startup script:
Shell
1 :: Disable eject hard disk
2 :: Original value: 6
3 reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_1000&DEV_0054&SUBSYS_197615AD&REV_01\4&1f16fef7&0&00A8" /v Capabilities /t REG_DWORD /d 2 /f
Note: The second command is for disabling network card ejection. This is an alternative to setting “devices.hotplug=false” in the VMX file.
Shell
1 :: Disable eject network card
2 :: Original value: 6
3 reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_8086&DEV_100F&SUBSYS_075015AD&REV_01\4&3ad87e0a&0&0088" /v Capabilities /t REG_DWORD /d 2 /f