Thursday, May 13, 2021

Failed to Reconfigure Virtual Machine VMware

Sometimes we have required to change the configuration of our virtual machine. It can be our processor setting or it can be a hard disk setting or anything else related to a virtual machine. But we can't modify our virtual machine hardware settings. It say's "Failed to reconfigure virtual machine <VM Name>. Invalid operation for device <device number>". Just like below:-


Here <VM Name> is representing the VM Machine Name and <device number> is representing the hardware serial number. 

And the error message will be as like as below:- 

Failed to reconfigure virtual machine Internal DNS. Invalid operation for device 1

In this error message, the "Internal DNS" is representing as the Virtual Machine Name and the "device 1" is representing as the device serial number.

One screenshot is given below for this error message.


As this screenshot, the machine name is "CentOS7 2019".

Now we will work to troubleshoot this issue.

Using both platform vCenter and ESXi, we can't modify the hardware settings. In this tutorial, we will discuss how to overcome this issue.

The resolution of this problem is simple. Just check whether if there are any snapshots available for this virtual machine. If so then you have to delete that. Because of that snapshot, VMware can't modify the VM hardware settings.

After deleting the snapshot, you can change the hardware settings for the virtual machine. Still now if you can't do that then use the VMware PowerCLI method to modify the hardware settings. Execute the below command using the below command:-

Get-HardDisk -vm MyVMName | where {$_.name -eq "Hard disk 1"} | Set-HardDisk -capacityGB 100

[Replace "MyVMName" with your virtual machine name, replace "Hard disk 1" with your virtual hard disk name, replace "100" with your hard disk size.]

Hope you will succeed now.


No comments:

Post a Comment