I prefer peaceful and quiet life during vacation,but sometimes I watch football match if my favorite club performs brilliantly in that season. And I love reading, painting and calligraphy, thus I send my friends festival handwriting cards every year.
When disk space is not enough, many VMware users will try to expanding disk on their computers, many of them find the error invalid operation for device 0 when they resize disk.
Error: Invalid operation on device 0 is a common Vmware issue, often resulting from the following:
Incorrect configuration: If the virtual machine is not set up properly, this error may occur.
Snapshot problems: If snapshots are present and not removed, it can lead to this particular error.
To fix this problem, you can try powercli in CMD, and run: Get-HardDisk -vm MyVMName | where {$_.name -eq “Hard disk 1“} | Set-HardDisk -capacityGB 100. Then, you can close window. Just be sure to replace the appropriate VMname, disk name, and capacity when using this command.
Another way is to consolidate disks in VMware. Right-click the VM name in the VMware vSphere client. In the menu, click Snapshots. Lastly, select Consolidate.
The point is when it comes to consolidating VMware disks, there may be a risk of losing data. Please create a backup of the VMware VM by copying all files to a separate folder on a data store before proceeding with the disk consolidation process.
Then the third option is to remove the snapshots in VM. You need to select Inventory and click on Virtual Machine. Next, pick Snapshot, and select Snapshot Manager. Choose a snapshot by clicking it. After these operation, now click Delete. The data is permanently saved and added to the parent data, while simultaneously removing the specific snapshot that was selected.
Click Yes in the confirmation dialog. And click close to exit the Snapshot Manager.
Besides the above selections, the error invalid operation for device '0 may also be solved by starting the management agent on the host console to resolve the communication issue between vCenter and the host; exchange HTML5 and Flash web interfaces; and Check the partition type and convert MBR to GPT.
If you are concerned that your PC confronts random crashes, try you can try AOMEI Partition Assistant Professional for the conversion. This professional disk conversion and management tool can help you convert to GPT without losing data and safely release more disk space. It can be used in VMware and your real OS.
1. Launch AOMEI Partition Assistant Professional and in the main window, you should right-click on the disk that you want to convert and choose the "Convert to GPT" option.
2. Select target disk and click "OK"
3. Select the target MBR disk and click "Convert". Then, click "Apply" to perform the pending operations.
Tip: You can check more details from: Convert MBR to GPT without data loss.
Disk Partition Disk Clone Disk Convert Data Recovery