隐藏VMware虚拟机中“安全删除硬件”图标可以用下面两种方法:
1、To disable the HotPlug capability using vSphere Client:
Connect vSphere Client to ESX or vCenter Server.使用vSphere客户端连接ESX主机或者vCenter.
Power off the virtual machine.关闭要更改的虚拟机.
Right-click the virtual machine and click Edit Settings.鼠标右键选择虚拟机并点击“编辑设置”.
Click the Options tab.选择“选项”标签.
Click General > Configuration Parameters > Add Row.依次点击“常规” > “配置参数” > “添加行”.
Insert a new row with the name devices.hotplug and value false.在新行中名称输入“devices.hotplug”,值输入“false”确定.
Power on the virtual machine.重启虚拟机.
2、To disable the HotPlug capability by editing the .vmx file:
Power off the virtual machine.关闭虚拟机
Access the ESX service console using an SSH client.使用SSH客户端连接到ESX主机
Open the virtual machine configuration file (.vmx) in a text editor. The default location is /vmfs/volumes/
Add the line:添加一行
devices.hotplug = "false"
Note: This setting does not interfere with HotPlug CPU/memory.
Save the file.保存文件
Power on the virtual machine.启动虚拟机.