Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

file system and block level copy

anshul_makkaranshul_makkar Member - All Emails Posts: 1

VMWare virtual disk i.e .vmdk consists of base .vmdk file containing header
and other .vmdk file containing the actual image.

I am writing an application to clone/copy an existing image.

In my application I create my own .vmdk header and then use CopyFile API to
copy the existing .vmdk image file to a new one.

After the above oeprations are completed, if I try to create a VM out of
the newly created image file, which fails.

But if, instead of usign CopyFIle API, I rightclick->copy/paste on old
image file to create a new image file, then VM can be created successfully
with new image file.

I have understanding that right click->copy/paste works at file system
level, just like the CopyFile API. Is my understanding correct here or
rightclick->copy/paste works at the volume block level while copying files
and directories. If thats the case, that can explain why I am facing this

Anshul Makkar


  • Pavel_APavel_A Member Posts: 2,643
    CopyFile is a very high level API that does a lot of things under the hood. Have you tried to checksum the source file, the result of your copy by CopyFile and by explorer copy/paste? Does CopyFile produce a sparse file by chance, or some unexpected security attributes?

    -- pa
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!