mirror of https://github.com/hashicorp/packer
parent
ccdb8ee62f
commit
20e8481a7c
@ -0,0 +1,25 @@
|
||||
<!-- Code generated from the comments of the ExportConfig struct in builder/vsphere/common/step_export.go; DO NOT EDIT MANUALLY -->
|
||||
|
||||
- `name` (string) - name of the ovf. defaults to the name of the VM
|
||||
|
||||
- `force` (bool) - overwrite ovf if it exists
|
||||
|
||||
- `images` (bool) - include iso and img image files that are attached to the VM
|
||||
|
||||
- `manifest` (string) - generate manifest using sha1, sha256, sha512. Defaults to 'sha256'. Use 'none' for no manifest.
|
||||
|
||||
- `options` ([]string) - Advanced ovf export options. Options can include:
|
||||
* mac - MAC address is exported for all ethernet devices
|
||||
* uuid - UUID is exported for all virtual machines
|
||||
* extraconfig - all extra configuration options are exported for a virtual machine
|
||||
* nodevicesubtypes - resource subtypes for CD/DVD drives, floppy drives, and serial and parallel ports are not exported
|
||||
|
||||
For example, adding the following export config option would output the mac addresses for all Ethernet devices in the ovf file:
|
||||
|
||||
```json
|
||||
...
|
||||
"export": {
|
||||
"options": ["mac"]
|
||||
},
|
||||
```
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
<!-- Code generated from the comments of the ExportConfig struct in builder/vsphere/common/step_export.go; DO NOT EDIT MANUALLY -->
|
||||
You may optionally export an ovf from VSphere to the instance running Packer.
|
||||
|
||||
Example usage:
|
||||
|
||||
```json
|
||||
...
|
||||
"vm_name": "example-ubuntu",
|
||||
...
|
||||
"export": {
|
||||
"force": true,
|
||||
"output_directory": "./output_vsphere"
|
||||
},
|
||||
```
|
||||
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
|
||||
```
|
||||
@ -0,0 +1,10 @@
|
||||
<!-- Code generated from the comments of the OutputConfig struct in builder/vsphere/common/output_config.go; DO NOT EDIT MANUALLY -->
|
||||
|
||||
- `output_directory` (string) - This setting specifies the directory that
|
||||
artifacts from the build, such as the virtual machine files and disks,
|
||||
will be output to. The path to the directory may be relative or
|
||||
absolute. If relative, the path is relative to the working directory
|
||||
packer is executed from. This directory must not exist or, if
|
||||
created, must be empty prior to running the builder. By default this is
|
||||
"output-BUILDNAME" where "BUILDNAME" is the name of the build.
|
||||
|
||||
Loading…
Reference in new issue