hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.16k stars 4.43k forks source link

Cannot export from HyperV #13186

Open Gator8 opened 1 year ago

Gator8 commented 1 year ago

Once provisioned in HyperV, that VM cannot be exported.

I've tried on 3 different machines using 3 different base boxes (in version 2.3.4 and 2.3.6). The result is always the same. image

chrisroberts commented 1 year ago

Hi there,

How are you exporting the VM?

Gator8 commented 1 year ago

Done through the HyperV UI, but on one attempt, I did try "vagrant package". The result was the same error message.

chrisroberts commented 1 year ago

Can you please provide a gist of the debug output generated from running vagrant package --debug.

Thanks

Gator8 commented 1 year ago

https://gist.github.com/Gator8/41474553a73c8f5558870033959a2c21

chrisroberts commented 1 year ago

Hi there,

After investigating this further, the issue appear to occur when multiple disks are configured on the guest. If the disks have the same name, this copy error will be encountered. Ensuring unique disk names will fix the export functionality. Marking this as an enhancement as it may be possible to adjust the disk names prior to export using the package command.