Skip to content

vmfktools Copy API too strict. #3748

Open
@aklakina

Description

@aklakina

Is your feature request related to a problem? Please describe.
I Want to copy a thin provisioned disk on a datastore to a new disk. The new disk is always thick provisioned. I want the new disk to be thin provisioned too.
Right now converting a disk to thin from thick is only available with VMotion if we do not have ssh access to the esxi hosts. This makes development process horrible

Describe the solution you'd like
I want to be able to tell the govc or govmomi cli what type of disk it should create.

Describe alternatives you've considered
Currently the datastore.disk.create has no option to create a disk from another disk or file. Add the feature to datastore.disk.create so it can also copy disks.

Additional context
This line should be modified:

return m.VirtualDiskManager.CopyVirtualDisk(ctx, src, srcDC, dst, dstDC, nil, force)

So instead of static nill parameter for type for the vmdk creation, propagate the parameter with a default value (to keep other calls intact) and:
f.BoolVar(&cmd.kind, "t", true, "Use file type to choose disk or file manager")

here also open up the parameter for the datastore.cp cli and set the default parameter inside the arguments.

This feature was already present under a different cli command (datastore.disk.cp) #999 although this seems like it was deleted.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions