VMware Cloud Community
whuber97
Enthusiast
Enthusiast
Jump to solution

adding virtual disks to existing virtual machines

Hi All -

This morning I deployed a virtual machine from a template. Now, I want to add a 2nd virtual disk to this new virtual machine. When I add the disk, I select the option to "store with virtual machine."

The problem I'm having is that the disk file creates itself in the TEMPLATE's folder, NOT the new virtual machine's folder. AND, it names the vmdk file the same name as the original vmdk, so I can't move it to the right folder. As you all know I can't re-name it either.

Has anyone ever seen this?

vExpert 2012, 2013 | VCDX #81 | @huberw
0 Kudos
1 Solution

Accepted Solutions
java_cat33
Virtuoso
Virtuoso
Jump to solution

It sounds like when you deployed the VM from template you ticked the box to "edit hardware" - the "experimental feature" that VMware does note.

If you did edit the hardware before starting the actual deploy from template...... what you've experienced is EXACTLY what happens. It sure is a bug. Another work colleague of mine has had the same problem.

View solution in original post

0 Kudos
13 Replies
Chamon
Commander
Commander
Jump to solution

You can rename a vmdk file with the

vmkfstools -E /vmfs/volumes/datastore/servername.vmdk newname.vmdk

this will chang the name of the vmdk the flat and update the metadata.

0 Kudos
whuber97
Enthusiast
Enthusiast
Jump to solution

Thanks.

I'd still like to understand why esx seems tot hink that the template directory is where my virtual machine is. Something must not be right...

vExpert 2012, 2013 | VCDX #81 | @huberw
0 Kudos
Chamon
Commander
Commander
Jump to solution

So you now have both the template directory and the new VM directory? Then you edit the settings of the new VM and add a disk. It then creates the new vmdk in the template directory. That is very strange.

Can you give any other information that might be relevant?

0 Kudos
whuber97
Enthusiast
Enthusiast
Jump to solution

Those are exactly the symptoms. I thought it was strange too... I've never had this problem before...

vExpert 2012, 2013 | VCDX #81 | @huberw
0 Kudos
Chamon
Commander
Commander
Jump to solution

Have you powered on the new VM yet? Have you tried to add the disk while the VM is running?

0 Kudos
whuber97
Enthusiast
Enthusiast
Jump to solution

Been there done that. Still not working Smiley Sad

vExpert 2012, 2013 | VCDX #81 | @huberw
0 Kudos
SuryaVMware
Expert
Expert
Jump to solution

Could be a bug we can verify if you post the .vmx file from the VM and the .vmtx file from the template. May be you can file a bug with VMware too..

-Surya

0 Kudos
Chamon
Commander
Commander
Jump to solution

If you rename it and move it does it still work? You would have to add it back to the vm after renaming it though

0 Kudos
fmateo
Hot Shot
Hot Shot
Jump to solution

Is it possible you add the disk in the template, not into deployed virtual machine? Review both configurations in VI and then like Surya said both vmx/vmtx files.

Regards

0 Kudos
Texiwill
Leadership
Leadership
Jump to solution

Hello,

Sounds like a bug to me, I would contact your VMware Support Representative. Either that or when you deployed the VM, something did not change that should. Look at the settings for the VM and where its default directory is. CHange that to be the proper location. Then disk creations should occur normally.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

SearchVMware Blog: http://itknowledgeexchange.techtarget.com/virtualization-pro/

Blue Gears Blogs - http://www.itworld.com/ and http://www.networkworld.com/community/haletky

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
java_cat33
Virtuoso
Virtuoso
Jump to solution

It sounds like when you deployed the VM from template you ticked the box to "edit hardware" - the "experimental feature" that VMware does note.

If you did edit the hardware before starting the actual deploy from template...... what you've experienced is EXACTLY what happens. It sure is a bug. Another work colleague of mine has had the same problem.

0 Kudos
whuber97
Enthusiast
Enthusiast
Jump to solution

java_cat33 -

You're exactly right! I did check that box when deploying the machine. Thanks!

Have you reported this to VMware yet?

vExpert 2012, 2013 | VCDX #81 | @huberw
0 Kudos
java_cat33
Virtuoso
Virtuoso
Jump to solution

No I haven't reported it - I've never experienced it first hand - I've only seen it.

It's a pretty crazy experimental feature!

0 Kudos