2020-04-02 13:50:11 -04:00
|
|
|
<!-- Code generated from the comments of the ExportConfig struct in builder/vsphere/common/step_export.go; DO NOT EDIT MANUALLY -->
|
2020-07-13 06:33:16 -04:00
|
|
|
|
2020-04-02 13:50:11 -04:00
|
|
|
You may optionally export an ovf from VSphere to the instance running Packer.
|
|
|
|
|
|
|
|
Example usage:
|
|
|
|
|
2020-08-05 19:23:52 +02:00
|
|
|
In JSON:
|
2020-04-02 13:50:11 -04:00
|
|
|
```json
|
|
|
|
...
|
|
|
|
"vm_name": "example-ubuntu",
|
|
|
|
...
|
|
|
|
"export": {
|
|
|
|
"force": true,
|
|
|
|
"output_directory": "./output_vsphere"
|
|
|
|
},
|
|
|
|
```
|
2020-08-05 19:23:52 +02:00
|
|
|
In HCL2:
|
|
|
|
```hcl
|
|
|
|
# ...
|
|
|
|
vm_name = "example-ubuntu"
|
|
|
|
# ...
|
|
|
|
export {
|
|
|
|
force = true
|
|
|
|
output_directory = "./output_vsphere"
|
|
|
|
}
|
|
|
|
```
|
2020-04-02 13:50:11 -04:00
|
|
|
The above configuration would create the following files:
|
|
|
|
|
|
|
|
```text
|
|
|
|
./output_vsphere/example-ubuntu-disk-0.vmdk
|
|
|
|
./output_vsphere/example-ubuntu.mf
|
|
|
|
./output_vsphere/example-ubuntu.ovf
|
|
|
|
```
|