VMware Cloud Community
McHenry
Contributor
Contributor

Increase VM disk in 6.7 web client

I wish to increase a VM disk size. Is this possible in the 6.7 web client?

I have searched but been unable to find how to do this.

Thanks in advance.

Reply
0 Kudos
20 Replies
IRIX201110141
Champion
Champion

Sure it is. Just select the "VM Settings" from the Action Button or Right Click on the selected VM. Choose the vDisk which you wanna to increase and type into the new size into the field. You can to it while the VM is up and running

If the Field is greyed out

- VM have a Snapshot

- VM use IDE Controller/Disks

- The vDisk is already over 2TB (VM needs to shutdown to increase the size)

Regards,

Joerg

Reply
0 Kudos
a_p_
Leadership
Leadership

That's certainly possible, and works as before. Edit the VM's settings, and enter the new disk size.

Please note that the size may be grayed out, it the VM has active snapshots. In order to be able to resize a virtual disk, it must not have active snapshots.


André

Reply
0 Kudos
McHenry
Contributor
Contributor

Still not getting it sorry.

When I go into settings both disks are listed as 32GB. If I have any value here other than zero I get an error when I try to save.

1st disk is 200MB and 2nd is 50GB

I wish to increase the size of the 2nd to 150GB

When I try to enter 150GB and click save I receive an error as attached.

Reply
0 Kudos
a_p_
Leadership
Leadership

Which version/build of the ESXi, and Embedded Host Client (Web Client) do you use?

You can find out the versions/builds from "Help" -> "About".

André

Reply
0 Kudos
McHenry
Contributor
Contributor

Client version:

1.25.0

Client build number:

7872652

ESXi version:

6.7.0

ESXi build number:

8169922

1.25.0

7872652

6.7.0

8169922

Reply
0 Kudos
IRIX201110141
Champion
Champion

Looks more like a problem in the Host Client rather than in the WebClient (vCenter).

Regards,

Joerg

Reply
0 Kudos
a_p_
Leadership
Leadership

The client version should not case the issue in this case.

Please post the output of the command

ls -lisa

from the folder in which the C.vmdk file is stored.

Can you confirm that this VM is the only one, which has this virtual disk attached to it?

André

Reply
0 Kudos
McHenry
Contributor
Contributor

Thanks André,

In the web client, where can I enter this command?

Reply
0 Kudos
IRIX201110141
Champion
Champion

You have to type in the  command on the command line in the directory of your VM. Console or ssh (for the later one you have to enable SSH in the Security Options).

cd /vmfs/volumes/<datastore>/<vm>/

If you create a new VM with all the Default to you have the same Problem?

Regards,

Joerg

Reply
0 Kudos
McHenry
Contributor
Contributor

I can confirm this is not a problem on a new VM. Only VMs we have transferred over from another hypervisor.

Reply
0 Kudos
emvic86
Contributor
Contributor

Hi McHenry,

When I noticed the screenshots I was wondering whether you changed the value for Hard disk 1 from 32 GB to 200 MB? Because screenshots 1 and 2 shows that both the disk are 32 GB and in screenshot 3 , hard disk 1 is changed to 200 MB and Hard disk 2 to 150 GB.

Don't make any changes to hard disk 1 and change only the hard disk 2 value to 150 GB and check if its working.

Reply
0 Kudos
McHenry
Contributor
Contributor

Interesting you ask that...

When I first migrated the disks, one 200mb and one 50GB they would both appear as 32GB in the edit properties screen, as if vmware was unable to correctly read the disk size.

I resolved this by copying the disks and using the copied versions. Now they appear in the edit properties window showing the correct size. Disk 2 is shown as being 49.678... and is in a red frame (if that indicates anything) I am still unable to resize disk 2.

Still trying to work out how to get to the CLI in the browser window

Reply
0 Kudos
emvic86
Contributor
Contributor

Can you try to do a host vMotion and then do a Storage vMotion as well. Once completed try to increase disk 2 and provide the screenshot of the error message.

Reply
0 Kudos
McHenry
Contributor
Contributor

Thanks again.

I am not sure this functionality is available to me as I am using the free version.

Reply
0 Kudos
emvic86
Contributor
Contributor

Yes you atleast require a standard edition license to perform these...

Reply
0 Kudos
emvic86
Contributor
Contributor

Reply
0 Kudos
McHenry
Contributor
Contributor

Thanks, everyone for all the help.

Solved with:

https://kb.vmware.com/s/article/1004047 vmkfstools -X 150G -d eagerzeroedthick C.vmdk

https://kb.vmware.com/s/article/1004047 vmkfstools -X 150G -d eagerzeroedthick C.vmdk

Reply
0 Kudos
emvic86
Contributor
Contributor

Great that it helped!

Reply
0 Kudos
McHenry
Contributor
Contributor

When I copied C.mdvk over to a new datastore the result was two files:

-rw-------    1 root     root     322132001280 Jan 11 10:28 C-flat.vmdk

-rw-------    1 root     root           466 Jan 11 10:28 C.vmdk

Who do I now have two files?

Reply
0 Kudos