Would like to be able to specify a new disk_size when cloning an existing vmcx. There are instances where we create a very small base Windows image and clone it for various roles, which have different needs in terms of the size of the primary disk. I should be able to clone the same 'base image' in multiple packer builds and tweak (increase) the size of the primary drive as needed.
Description
Would like to be able to specify a new disk_size when cloning an existing vmcx. There are instances where we create a very small base Windows image and clone it for various roles, which have different needs in terms of the size of the primary disk. I should be able to clone the same 'base image' in multiple packer builds and tweak (increase) the size of the primary drive as needed.
Use Case(s)
Packer should import the VM, but before starting it, it should run something to the effect of the powershell commands below:
Of course to make that useful space, it would be left to the user to run a provisioner within the guest OS to expand the C: drive.