遇到这个问题的人不少,Windows7下面的那个安全删除硬件下面一大堆的ATA Channel X,基本上发帖问的都是有强迫症的,也没人放Google找就发帖问,作为严重强迫症用户找到了解决方案,VMware官方文档。
如果你是轻度强迫症用户,只需要按照官方文档说的,编辑VMX配置文件加上一句话就可以了
devices.hotplug = "false"
如果重度强迫症用户,连硬盘都不想看见,就按照这个解决方案,开机用脚本改注册表伺候。
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:
123 :: Disable eject hard disk:: Original value: 6reg.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.
123 :: Disable eject network card:: Original value: 6reg.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