Avatar of Harold
Harold
Flag for United States of America asked on

VMware 6, moving VMDK files to new file server.

We have 2003 AD server and have migrated all services DHCP, DNS, FMOS, Schema etc to a new 2012 R2. Now I want to move or attach the existing VMDK files from the old 2003 server to the 2012 R2 folder/machine.

If I go to edit settings of the 2012 VM and add disk, then try to browse the VMDK file location, it never shows any disks.

Can I not do this?
VMwareWindows Server 2003Windows Server 2012

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Harold

ASKER
Ya, 2003 machine exists and on the same LUN. I just need the 2 storage drives, not the 2003 C: drive. I didn't power down the 2003 machine, as I just wanted to see if I could see the VMDK files. I was going to power down when I made the move.

I'm assuming I'll have to create my share mappings again?
I'm hoping all the permissions came over with everything in the migration.
VMDK-FILE01.png
SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Harold

ASKER
"you would not normally see both vmdk files from the datastore view, also the icons are incorrect."  both VMDK? all those are of the 2003 server.

Permissions want come over with any of the migration steps?
So if I recreate the parent shares, I'll be good?
How do you find permissions in 2003 registry to export?

Not sure what the -flat files are and I can delete the .ckt files. There are only 2 I'm concerned with.
SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Harold

ASKER
Nothing was copied, it is a recovered machine, from Veeam.
I  had to restore it a few weeks ago, as AD became corrupt after going to ESXi 6. We had the dreaded CBT problems, that were fixed in a later patch, BUT we had the problems before the patch.

What's wrong with the files?
I know how to take care of ckt files, just not flat files.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

the files do not look like they have been restored or backed up correctly.

other than the logs, non of them do.

compare that restored folder with a normal VM folder, and you will see what I mean.
Harold

ASKER
Hey Andrew, this is a shot of one of my 2012 and 2003 VM's. I do see a mix of the names, is that what you're talking about?

TSN-DUR-FS is the new 2012 machine and is the one I'm migrating the 2003 AD, DNS, DHCP, schema...etc too.  Is that why it's there too?

VMDK-comparison.png--3840-1080--000167.j
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

No really, when we use the vSphere Client datastore browser, it shows icons for the VMX file, and VMDK file, as configuration and disks.

it also shows only a single VMDK file, in the browser view, as your view shows both the flat and vmdk data file.

it just looks like these files are not understood correctly.

this is why you are having difficulties adding another hard disk to a VM, because the client does not seem to understand the files listed.

e.g. if you right  click a VMX file, you should get an option to add to inventory, I'm not sure if you do this, you'll get this message.

see here

Datastore-Browser---000166.jpg
also your client just lists them as files, it does not know they are disks or configuration files, this is the issue.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Harold

ASKER
Andrew, here's a shot of both the 2003 and 2012 arranged. Why are the same NVRAM and couple other files coexisting in 2 different directories?

Ok, I see what you're talking about. The file looks broke, the icon is different and no I can't add it. But why is it in two folders? All I did was push the 2012 machine up from my VM workstation into it's own folder.

My google inbox?  where?  sorry, goofed.
VMDK-comparison-of-2003-and-2012-on-same
Harold

ASKER
Andrew what's my work around?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I altered the image!

I think you need to look at the process of how you are moving files, from VMware Workstation to ESXi.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Harold

ASKER
I just checked all the latest VMs I pushed up from VM workstation and they are all normal and running.. All icons have the correct icons with file, nvram, vmdk etc....

something else happened to this VM.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

You will need to re-import, convert this VM again.

The recommended method is to use VMware Converter, if you have just file/copied.
Harold

ASKER
I use the converter all the time. I never copy.

There is no way to fix these files? Man that's a lot of work to re-import to fix this.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

So these were Converted by VMware Converter ?

You can see the obvious difference between working VMs and these files ?

e.g. it's just not the "view" in the client which incorrect ?
Harold

ASKER
The FILE01 machine, was recovered from Veeam. The 2012 machine, that has files mixed in the same folder, is one I pushed up with the converter from VM workstation. It's not the first, I've pushed up 2008 machine as well.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

do these files appear in the datastore browser correctly as virtual machine recognised files, anf not just file.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Harold

ASKER
Some machines show the correct icons and some don't. I guess my real test would be bring down the 2003 server and see if I can connect the drives to the 2012 box.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

The machines which do not show he correct icons, are these files been imported or foreign ?

So this 2003 server is currently running, but the icons show incorrectly ?

if the files do not show up correctly you will not be able to add them.

It's always recommended to add vmdk disks when they are OFF, you will definaltey not be able to add when on, because they will be locked.
Harold

ASKER
Andrew: down the server and then the files showed correctly, with icons.

Trying to export NTFS permissions. Have you used this command?
E:\>icacls E:\file shares /save ntfsperms.txt /t /c  
 Problem I'm having is it doesn't like E:\file shares. I can use the E:\ root but it is way to much information.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

it works on folders and files, not shares.
Harold

ASKER
So I can't use this to get my NTFS permissions?

http://blogs.technet.com/b/askds/archive/2008/11/24/how-to-back-up-and-restore-ntfs-and-share-permissions.aspx
Backup and Restore of NTFS Permissions...section
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

why do you need to backup and restore them, if you have moved the 2003 virtual disk, (vmdk), the permissions are already on the disk.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Harold

ASKER
The permissions will come with the VMDK file?!?!?

But still need to add the shares from registry correct?  I backed those up the a file, now I just import correct?
SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Harold

ASKER
Ok, I added the VMDK drives to the 2012 machine.

Exported
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
and
Imported to the 2012 server and restarted.  I see the shares in regedit on the 2012 machine, just not mapped like the 2003 machine

But I don't see the Shares if I open Computer on the 2012 machine. What did I do wrong?

What about the login.bat files, to map the users machine when logging in? Need to move those too? I know the preferred is GPO but I need to get this done for today.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

that depends where the login.bat file is, it's usually on a domain controller in the Sysvol.

did you follow this ?

https://support.microsoft.com/en-us/kb/125996

do you see any shares if you map manually.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Harold

ASKER
Have the login.bat file resolved.

I got it!

Helps if you modify  your login.bat file to contain the name of the new server in the pathing!  HA!

Thanks very much Andrew!!
2012-shares.png
Harold

ASKER
You are a great help my friend! When I grow up, I want to be as smart as you!

Have a good day.

Regards
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Many Thanks for your kinds words.

Just keep learning, learning never stops.

all my regards and love.

Andy
Your help has saved me hundreds of hours of internet surfing.
fblack61