Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Disabling the HotAdd/HotPlug capability in virtual machines (1012225)

Last Updated: 10/25/2023Categories: How toTotal Views: 70200Language:
Chinese (Simplified)JapaneseEnglish

70 like this article

Subscribe to get an email
newsletter with new updates

70 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Symptoms

NICs and SCSI controllers appear as removable devices.

The Safely Remove Hardware option for the virtual hardware appears in the Windows System Tray.

When using VMware View, you notice that View desktops that have persistent disks are disconnecting.

Purpose

This article provides information on disabling the HotPlug capability on removable devices.

Resolution

You can disable HotPlug capability for devices using the vSphere Client or by editing the .vmx file. This setting does not interfere with CPU/memory HotPlug capabilities.

Note: You can disable HotPlug capability for PCI devices such as e1000 or vmxnet2 NICs.

To disable HotPlug capability follow the relevant steps below.

vSphere Client:

Connect to the ESXi/ESX host or vCenter Server using the vSphere Client.

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 a value of false.

Power on the virtual machine.

vSphere Web Client:

From a web browser, connect to the vSphere Web Client.

Log in with Administrator credentials.

Navigate to the virtual machine you want to modify.

Power off the virtual machine.

Right-click the virtual machine and select Edit Settings.

Click the VM Options tab.

Click Advanced > Edit Configuration.

Either select Add Row, or enter the values directly into the provided fields at the bottom.

Insert a new row with the name devices.hotplug and a value of false.

Power on the virtual machine.

HTML5 Client:

From a web browser, connect to the HTML5 Client.

Log in with Administrator credentials.

Navigate to the virtual machine you want to modify.

Power off the virtual machine.

Right-click the virtual machine and select Edit Settings.

Click the VM Options tab.

Click Advanced > Edit Configuration.

Click Add Configuration Params to enter a new row

In the new row, enter the name devices.hotplug and a value of false.

Power on the virtual machine.

By editing the .vmx file:

Power off the virtual machine.

Access the ESXi/ESX service console using an SSH client.

Open the virtual machine configuration file (.vmx) in a text editor. The default location is:

/vmfs/volumes/datastore_name/vm_name/vm_name.vmx

Add the line:

devices.hotplug = "false"

Note: This setting does not interfere with HotPlug CPU/memory.

Save and close the file.

Power on the virtual machine.

Note: If you are using VMware View, perform one of the preceding procedures for the parent virtual machine first, then perform these steps:

Create a new snapshot of the parent virtual machine:

In the vSphere Client, right-click the parent virtual machine and click Snapshot > Take Snapshot.

Give the snapshot a name and description.

Click OK.

Recompose the affected pools to this new snapshot:

In the View Manager console, select a pool and open it.

Click View Composer > Recompose, and select the newly created snapshot.

Click Next.

Configure the Schedule and Warnings options.

Click Next.

Review the confirmation information.

Click Finish and verify that the recompose operation successfully completes.

Repeat the recompose procedure for all affected pools.

Related Information

For more information on compatibility for the guest OS, see Guest OS Compatibility Guide.
在 ESXi 6.x、5.x 和 ESXi/ESX 4.x 虚拟机中禁用热添加/热插拔功能
ESXi 6.x、5.x および ESXi/ESX 4.x 仮想マシンで HotAdd/HotPlug 機能を無効にする
Windows のグループポリシーを構成すると、データドライブにアクセスできなくなる

Page last reviewed: October 2023
Next review due: December 2023

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware View Manager

VMware View

VMware Horizon View

VMware Horizon

VMware ESX Server

Related Versions:

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vSphere ESXi 5.5

VMware vSphere ESXi 5.1

VMware vSphere ESXi 5.0

VMware View Manager 4.6.x

VMware View Manager 4.5.x

VMware Horizon View 5.1.x

VMware Horizon View 5.0.x

VMware Horizon 8

VMware Horizon 7

VMware Horizon 6

VMware ESX 4.1.x

VMware ESX 4.0.x

view all

Take Our Survey

Support Assistant