Shrink guest on hosted platform: Difference between revisions
added a note to look at the vmdk file ownership after shrinking via the command line.
(Added a few more words to indicate that these commands are to be run from within the VM) |
(added a note to look at the vmdk file ownership after shrinking via the command line.) |
||
Line 122: | Line 122: | ||
Note that vmware-vdiskmanager is probably not in your search path, so you might have to prepend the vmware-vdiskmanager command with the actual path with the command is located. | Note that vmware-vdiskmanager is probably not in your search path, so you might have to prepend the vmware-vdiskmanager command with the actual path with the command is located. | ||
If you need to use "sudo" in order to be able to run the above then beware that the ownership of the .vmdk files might get changed to root. | |||
You will have to change the ownership back to your own user, eg: | |||
sudo chown username: *.vmdk | |||
If you don't change the ownership back you might see errors like: | |||
"Unable to open file .../Virtual Disk.vmdk: Insufficient permission to access file". | |||
== Shrink using vmware tools == | == Shrink using vmware tools == |