Avatar of tenover
tenoverFlag for United States of America

asked on 

Can't boot VMWare virtual mchine after resizing disk

Using the instructions provided by VMWare, I increased the size of one of my virtual machines from 100Gb to 120Gb using the command line (Running VMWare server on a Windows 2003 Server host).  I have 4 other VM's running on this server, and I only increased the size on one of them.  The "Growth" ran successfully, but when I go to start the VM now, I get the following error:

Cannot open <myfilename>-00005.vdmk or one of the snapshot disks it depends on. Reason: The parent virtual disk has been modified since the child was created.

So, it looks like it's trying to open the latest snapshot and is having issues.  I thought I removed all the snapshots before running the resize command, but maybe not.  What can I do to fix the issue?
VMware

Avatar of undefined
Last Comment
Luciano Patrão
Avatar of Luciano Patrão
Luciano Patrão
Flag of Portugal image

Hi

How did you increase the size?? Editing the settings and just change the Gb value??

If you have snapshots(and you have) you cannot change that.

Jail
Avatar of tenover
tenover
Flag of United States of America image

ASKER

I used these instructions:

To increase the virtual disk from the command line:

    Open a command prompt. For more information, see Opening a command or shell prompt (1003892).
    Navigate to the product's installation directory. For more information, see Locating a VMware product's installation directory (1003897).
    Type vmware-vdiskmanager -x 100Gb vm.vmdk and press Enter.

    Note: Replace 100Gb with the actual size of virtual disk that you want. You can also specify Kb and Mb.
     
    Follow the steps in Increasing the size of a disk partition (1004071) so the guest operating system is aware of the change in disk size.

I just need to know what I have to do to be able to get this machine up and running again, either with the old or new disk size.
Hi

I think now you need to change the CID to go backup and run the normal vmdk.

Check here how:

http://kb.vmware.com/kb/1007969

Also if not, you need to recreate the descriptor file for disk.

Check here:

http://kb.vmware.com/kb/1004232

Changing the CID I have done this a couple of times, but never need to recreate the file.

Jail
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of tenover
tenover
Flag of United States of America image

ASKER

It appears that there are 4-5 snapshots...Can I somehow boot from a snapshot that was taken before I increased the size of the .vdmk?
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of tenover
tenover
Flag of United States of America image

ASKER

Understood.  And I did make a fresh backup of the entire folder that houses this virtual machine before I increased the disk size.  Maybe that would be the easiest way to get the machine back up and running.....Just restore the .vdmk file that I increased the size on?
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of tenover
tenover
Flag of United States of America image

ASKER

One more thing.....Can I manually(SAFELY) delete all snapshots be just deleting any and all files with .0000x appended to them?
Hi

You should delete the files using the vSphere Client.

Jail
Avatar of tenover
tenover
Flag of United States of America image

ASKER

This is on a VMWare Server (not ESX, ESXi, etc...).
Hi

Upss sorry :)

I think is menu, VM, then Snapshot, inside you have snapshot manager. Inside you can delete all snapshots.

Jail
Avatar of tenover
tenover
Flag of United States of America image

ASKER

Well, this is just great. When trying to restore the files from backup, I'm running into errors. Plan B should be to try and change the CID I suppose?
Avatar of tenover
tenover
Flag of United States of America image

ASKER

Thanks.  All the links you posted looks like they are for Linux/Vi.  I am running VMWare Server on a Windows 2003 machine.  Any idea how to change the CID from within Windows?
Hi

Is the same.

In your files you just edit the vmdk file and change the CID.

If is Linux you can use a WinSCP to edit the files, if is in Windows you can use a normal notepad to edit(I use Notepad++)

Jail
Avatar of tenover
tenover
Flag of United States of America image

ASKER

I'm not following you.  I can see the files in Windows Explorer.  If I right click and "Open With">Notepad, it is just a bunch of gibberish.  
Avatar of tenover
tenover
Flag of United States of America image

ASKER

There we go, WordPad allows me to see the CID.  Sure hope this works.  
Hi

Ahh ok, since I used my Nopead++ I tough that notepad basic will also see the CID.

But yes, when notepad doesn't work, WordPad works.

Jail
Avatar of tenover
tenover
Flag of United States of America image

ASKER

So I have the following files:
<name>.vdmk
<name>-000001.vdmk
<name>-000002.vdmk
<name>-000003.vdmk
<name>-000004.vdmk
<name>-000006.vdmk

Do I need to modify each one of these files or just the one (<name>-000006.vdmk) that throws out the error when trying to boot?

Sorry, this is just REALLY confusing.
Avatar of tenover
tenover
Flag of United States of America image

ASKER

Two of the .vdmk files appear to be too large to open in WordPad.....If I only need to change the latest .vdmk file, I can do that.  This file has the same CID and Parent CID.
Avatar of tenover
tenover
Flag of United States of America image

ASKER

I guess my question is now:

Can I change the parent CID of <filename>-000006.vdmk to match the CID of the base image(<filename>.vdmk)?
Hi

You need to change all CID that is not correct. Parent CID from file 002 must be equal to CID 003. Parent CID from 001 must equal to CID from 002(not parent the CID only).

You need to double check all files and see if parent and CID are correct.

Jail
VMware
VMware

VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo