How to copy all vmdk files to a new folder
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
When a snapshot is created a new .vmdk file is made in the folder of the VM (with respect to filesystem).
How can I copy all the .vmdk (i.e. vm.vmdk , vm-000001.vmdk , and so on) to a new folder.
PS- I have tried looping the serviceContent.virtualDiskManager.CopyVirtualDisk_Task for different vmdk files but it copies the same file(vm.vmdk) over and over again (I saw that from the size of file being copied)
PPS- I have also tried content.fileManager.CopyDatastoreFile_Task but it does not even copy vm.vmdk properly (The size of file is 1 gb but it stops copying at 0.59 kb itself)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior with serviceContent.virtualDiskManager.CopyVirtualDisk_Task and content.fileManager.CopyDatastoreFile_Task, using the listed VMDK names and sizes. Determine why the requested source files are not copied distinctly or completely; done means all snapshot-related VMDK files are copied to the new folder with their expected sizes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100