A long time ago I wrote this article about resizing an IDE virtual disk. I just ran out of diskspace on my Windows 7 VM and I needed to increase the disk. Unfortunately the Windows 7 VM had and IDE disk and the Web Client didn’t allow me to simply increase the size of the VMDK. So this is what I had to do, and yes I agree it should be easier than this.
- Remove the IDE vmdk from the VM
- Edit the “vmdk” file (can be found under cd /vmfs/volumes/<datastore_name>/<vm_name>/)
- Change ddb.adapterType from “ide” to “lsilogic”
- Add the IDE vmdk to the VM
- Change the size of the disk
- Remove the IDE vmdk from the VM
- Edit the “vmdk” file (can be found under cd /vmfs/volumes/<datastore_name>/<vm_name>/)
- Change ddb.adapterType from “lsilogic” to “ide”
- Add the IDE vmdk to the VM
- Power on the VM and “extend” the partition within Windows 7
There might be an easier way of doing this, and I guess using “vmkfstools -X” would also work, I just preferred to take this route instead as I knew it would work.
** note to self, don’t import W7 VMs with an IDE disk, it sucks **
Hello Duncan,
How can this be done for a boot volume?
Thanks
Vamsi
This was a Windows 7 SYS volume.
Ok. The VM mentioned in point 4 is some other vm,where you attached win7 sys volume?
No same VM
Windows 7 allows you to expand sys volume also from the disk management console. So it doesnt matter you dont have to mount the vmdk to any other VM.
Hope this helps.
Thanks.
I’ve tried to use vmkfstool -X with an IDE disk and that works, but then the disk doesn’t function any more. So using the command-line is out of the question.
My preferred solution (in ESXi) would be to change the storage controller into a SCSI Controller, vSphere 5 will automatically change the disk to use the proper SCSI Controller on power on and then you can increase the disk size without any problems.
Had this problem once, I followed a slightly different path however…
I detached the vmdk, modified it with vi (changed ide to lsilogic) but the, I reattached the lsilogic vmdk to my vm. At first boot… nothing, no boot at all… I found out that sending “Ctrl-Alt-Del’ to the vm, reboots it ant TADA! it worked like a charm. I can’t explain why the vm doesn’t even bother me with the new disk/controller… it booted like it always been like this…
Once tweaked this way, it’s possible to resize the disk on the fly, wich is what I wanted. I use a live linux distro to resize the partitions.
This worked fine for me, and it booted correctly.
Your steps worked perfectly for me using vSphere Client 5.0.0 Build 455964, VMware ESXi 5.0.0 Build 821926 to bump a 10GB XP Pro up to 15GB (used EaseUS Partition Manager 9.2.1 to increase NTFS boot partition in XP).
Thank you!
Worked a treat! Thanks.
I used vmkfstools -X and it worked fine to expand a XP system volume in ESXi 5.1.0.
I used gparted from the systemrescuecd to grow the partition and NTFS.
Thanks,
Tobi