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?
LVL 1
HaroldNetwork EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes, you can do this.

You must make sure the other VM is Powered OFF.

You must browse the location of the existing VM Folder.

Does the old 2003 VM still exist, you did not delete it?

post a screen shot of the 2003 VM Folder ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HaroldNetwork EngineerAuthor Commented:
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
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You can either re-create the share mappings, or export the registry from 2003 and import into 2012.
NTFS permissions are part of the file system.

 something does not look correct with those files....

you would not normally see both vmdk files from the datastore view, also the icons are incorrect.

they look corrupt.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

HaroldNetwork EngineerAuthor Commented:
"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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
ctk files are the change tracking files. (normal).

but the folder view of the VMs, is not correct, and your VMDK files are incorrect, this is why you cannot add them to your 2012 VM.

NTFS permissions are stored in the /?file system in the VMDK.

see here for registry shares

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

But I would look at the VMDK files they are not correct.

how were these copied or restored ?
0
HaroldNetwork EngineerAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
HaroldNetwork EngineerAuthor Commented:
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
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
HaroldNetwork EngineerAuthor Commented:
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
0
HaroldNetwork EngineerAuthor Commented:
Andrew what's my work around?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I altered the image!

I think you need to look at the process of how you are moving files, from VMware Workstation to ESXi.
0
HaroldNetwork EngineerAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You will need to re-import, convert this VM again.

The recommended method is to use VMware Converter, if you have just file/copied.
0
HaroldNetwork EngineerAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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 ?
0
HaroldNetwork EngineerAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
do these files appear in the datastore browser correctly as virtual machine recognised files, anf not just file.
0
HaroldNetwork EngineerAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
HaroldNetwork EngineerAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
it works on folders and files, not shares.
0
HaroldNetwork EngineerAuthor Commented:
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
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
HaroldNetwork EngineerAuthor Commented:
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?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
file permissions are embedded in the NTFS fle system, which is in the VMDK you have transferred.

all you need to do, is re-create the shares (from the registry of the 2003 VM).

There is no need to do anything with the virtual disk, you have transferred.

Just re-create the shares or import the registry contents, and you are done.
0
HaroldNetwork EngineerAuthor Commented:
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.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
HaroldNetwork EngineerAuthor Commented:
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
0
HaroldNetwork EngineerAuthor Commented:
You are a great help my friend! When I grow up, I want to be as smart as you!

Have a good day.

Regards
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Many Thanks for your kinds words.

Just keep learning, learning never stops.

all my regards and love.

Andy
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.