Skip to content

Commit aa10c99

Browse files
authored
docs: update documentation (#456)
Updates documentation. Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
1 parent 3b350db commit aa10c99

11 files changed

Lines changed: 86 additions & 80 deletions

File tree

File renamed without changes.

.web-docs/README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- markdownlint-disable first-line-h1 no-inline-html -->
22

3-
The Packer Plugin for VMware Desktop Hypervisors is a plugin that can be used to create virtual
4-
machine images for use with VMware [desktop hypervisors][desktop-hypervisors], VMware Fusion Pro
5-
and VMware Workstation Pro.
3+
The Packer Plugin for VMware Desktop Hypervisors is a plugin that can be used to create
4+
virtual machine images for use with VMware [desktop hypervisors][desktop-hypervisors],
5+
VMware Fusion Pro and VMware Workstation Pro.
66

77
### Installation
88

@@ -20,7 +20,8 @@ packer {
2020
}
2121
```
2222

23-
Alternatively, you can use `packer plugins install` to manage installation of this plugin.
23+
Alternatively, you can use `packer plugins install` to manage installation of this
24+
plugin.
2425

2526
```sh
2627
packer plugins install github.com/vmware/vmware
@@ -33,13 +34,13 @@ strategy.
3334

3435
#### Builders
3536

36-
- `vmware-iso` - This builder creates a virtual machine, installs an operating system from an ISO,
37-
provisions software within the operating system, and then exports the virtual machine as an image.
38-
This is best for those who want to start by creating an image.
37+
- `vmware-iso` - This builder creates a virtual machine, installs a guest operating
38+
system from an ISO, provisions software within the guest operating system, and then
39+
exports the virtual machine as an image. Use this builder to start by creating a new
40+
image.
3941

40-
- `vmware-vmx` - This builder imports an existing virtual machine (from a`.vmx` file), runs
41-
provisioners on the virtual machine, and then exports the virtual machine as an image. This is
42-
best for those who want to start from an existing virtual machine as the source. You can feed the
43-
artifact of this builder back into Packer to iterate on an image.
42+
- `vmware-vmx` - This builder imports an existing virtual machine, runs provisioners on
43+
the virtual machine, and then exports the virtual machine as an image. Use this
44+
builder to start from an existing image as the source.
4445

4546
[desktop-hypervisors]: https://www.vmware.com/products/desktop-hypervisor.html

.web-docs/components/builder/iso/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/foo/bar/preseed.cfg
710710
- `remote_type` (string) - No longer supported.
711711

712712
~> **Important:** VMware ESX is not supported by the plugin as of v2.0.0.
713-
Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/hashicorp/vsphere).
713+
Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/vmware/vsphere).
714714

715715
<!-- End of code generated from the comments of the DriverConfig struct in builder/vmware/common/driver_config.go; -->
716716

.web-docs/components/builder/vmx/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ JSON Example:
5151

5252
<!-- Code generated from the comments of the Config struct in builder/vmware/vmx/config.go; DO NOT EDIT MANUALLY -->
5353

54-
- `source_path` (string) - Path to the source `.vmx`, '.ovf', or '.ova' file to clone.
54+
- `source_path` (string) - Path to the source `.vmx`, `.ovf`, or `.ova` file to clone.
5555

5656
<!-- End of code generated from the comments of the Config struct in builder/vmware/vmx/config.go; -->
5757

@@ -80,7 +80,7 @@ JSON Example:
8080

8181
- `attach_snapshot` (string) - The name of an existing snapshot to which the builder shall attach the
8282
virtual machine before powering on. If no snapshot is specified the
83-
virtual machine is started from its current state. Default to
83+
virtual machine is started from its current state. Defaults to
8484
`null/empty`.
8585

8686
- `vm_name` (string) - This is the name of the `.vmx` file for the virtual machine, without
@@ -486,7 +486,7 @@ wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/foo/bar/preseed.cfg
486486
- `remote_type` (string) - No longer supported.
487487

488488
~> **Important:** VMware ESX is not supported by the plugin as of v2.0.0.
489-
Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/hashicorp/vsphere).
489+
Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/vmware/vsphere).
490490

491491
<!-- End of code generated from the comments of the DriverConfig struct in builder/vmware/common/driver_config.go; -->
492492

README.md

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ SPDX-License-Identifier: MPL-2.0
88

99
# Packer Plugin for VMware Desktop Hypervisors
1010

11-
The Packer Plugin for VMware Desktop Hypervisors is a plugin for creating virtual machine images
12-
for use with VMware [desktop hypervisors][desktop-hypervisors], VMware Fusion Pro and VMware
13-
Workstation Pro.
11+
The Packer Plugin for VMware Desktop Hypervisors is a plugin for creating virtual
12+
machine images for use with VMware [desktop hypervisors][desktop-hypervisors], VMware
13+
Fusion Pro and VMware Workstation Pro.
1414

15-
The plugin includes two builders for creating virtual machine images, depending on your desired
16-
strategy:
15+
The plugin includes two builders for creating virtual machine images, depending on your
16+
desired strategy:
1717

18-
- [`vmware-iso`][docs-vmware-iso] - This builder creates a virtual machine, installs an operating
19-
system from an ISO, provisions software within the operating system, and then exports the virtual
20-
machine as an image. This is best for those who want to start by creating an image.
18+
- [`vmware-iso`][docs-vmware-iso] - This builder creates a virtual machine, installs a
19+
guest operating system from an ISO, provisions software within the guest operating
20+
system, and then exports the virtual machine as an image. Use this builder to start by
21+
creating a new image.
2122

22-
- [`vmware-vmx`][docs-vmware-vmx] - This builder imports an existing virtual machine (from a`.vmx`
23-
file), runs provisioners on the virtual machine, and then exports the virtual machine as an image.
24-
This is best for those who want to start from an existing virtual machine as the source. You can
25-
feed the artifact of this builder back into Packer to iterate on an image.
23+
- [`vmware-vmx`][docs-vmware-vmx] - This builder imports an existing virtual machine,
24+
runs provisioners on the virtual machine, and then exports the virtual machine as an
25+
image. Use this builder to start from an existing image as the source.
2626

2727
## Supported Hypervisors
2828

@@ -32,11 +32,12 @@ This plugin supports the following desktop hypervisors.
3232
- VMware Workstation Pro 17 (17.6.0 and later) for Linux and Windows
3333

3434
> [!TIP]
35-
> Refer to the product documentation of the supported desktop hypervisors for system requirements.
35+
> Refer to the product documentation of the supported desktop hypervisors for system
36+
> requirements.
3637
3738
> [!TIP]
38-
> To use the export functionality of the plugin, you must install [VMware OVF Tool][download-vmware-ovftool] 4.6.0 or
39-
> later.
39+
> To use the export functionality of the plugin, you must install [VMware OVF Tool][download-vmware-ovftool]
40+
> 4.6.0 or later.
4041
4142
> [!IMPORTANT]
4243
> The plugin no longer supports VMware ESX as of version v2.0.0.
@@ -51,22 +52,14 @@ This plugin supports the following desktop hypervisors.
5152

5253
Required if building the plugin.
5354

54-
## Usage
55-
56-
For examples on how to use this plugin with Packer refer to the [example](example/) directory of
57-
the repository.
58-
5955
## Installation
6056

61-
### Using Pre-built Releases
57+
### Using the Releases
6258

6359
#### Automatic Installation
6460

65-
Packer v1.7.0 and later supports the `packer init` command which enables the automatic installation
66-
of Packer plugins. For more information, see the [Packer documentation][docs-packer-init].
67-
68-
To install this plugin, copy and paste this code (HCL2) into your Packer configuration and run
69-
`packer init`.
61+
Include the following in your configuration to automatically install the plugin when you
62+
run `packer init`.
7063

7164
```hcl
7265
packer {
@@ -80,49 +73,60 @@ packer {
8073
}
8174
```
8275

76+
For more information, please refer to the Packer [documentation][docs-packer-init].
77+
8378
#### Manual Installation
8479

85-
You can download the plugin from the GitHub [releases][releases-vmware-plugin]. Once you have
86-
downloaded the latest release archive for your target operating system and architecture, extract the
87-
release archive to retrieve the plugin binary file for your platform.
80+
You can install the plugin using the `packer plugins install` command.
8881

89-
To install the downloaded plugin, please follow the Packer documentation on
90-
[installing a plugin][docs-packer-plugin-install].
82+
Examples:
9183

92-
### Using the Source
84+
1. Install the latest version of the plugin:
9385

94-
If you prefer to build the plugin from sources, clone the GitHub repository locally and run the
95-
command `go build` from the repository root directory. Upon successful compilation, a
96-
`packer-plugin-vmware` plugin binary file can be found in the root directory.
86+
```shell
87+
packer plugins install github.com/vmware/vmware
88+
```
9789

98-
To install the compiled plugin, please follow the Packer documentation on
99-
[installing a plugin][docs-packer-plugin-install].
90+
2. Install a specific version of the plugin:
10091

101-
### Documentation
92+
```shell
93+
packer plugins install github.com/vmware/vmware@v1.2.0
94+
```
10295

103-
For more information on how to use the plugin, please refer to the [documentation][docs-vmware-plugin].
96+
### Using the Source
10497

105-
## Contributing
98+
You can build from source by cloning the GitHub repository and running `make build` from
99+
the repository root. After a successful build, the `packer-plugin-vmware` binary is
100+
created in the root directory.
106101

107-
The Packer Plugin for VMware Desktop Hypervisors is the work of many contributors and the project team appreciates your help!
102+
To install the compiled plugin, please refer to the Packer [documentation][docs-packer-plugin-install].
108103

109-
If you discover a bug or would like to suggest an enhancement, submit [an issue][issues].
104+
## Documentation
110105

111-
If you would like to submit a pull request, please read the [contribution guidelines][contributing] to get started. In case of enhancement or feature contribution, we kindly ask you to open an issue to discuss it beforehand.
106+
- Please refer to the plugin [documentation][docs-vmware-plugin] for more information on
107+
the plugin usage.
108+
109+
- Please refer to the repository [`example`](example/) directory for usage examples.
110+
111+
## Contributing
112+
113+
Please read the [code of conduct][code-of-conduct] and [contribution guidelines][contributing]
114+
to get started.
112115

113116
## Support
114117

115-
The Packer Plugin for VMware Desktop Hypervisors is supported by the maintainers and the plugin community.
118+
The Packer Plugin for VMware Desktop Hypervisors is supported by the maintainers and the
119+
plugin community.
116120

117121
## License
118122

119-
© Broadcom. All Rights Reserved.
120-
The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
121-
122-
The Packer Plugin for VMware Desktop Hypervisors is available under the [Mozilla Public License, version 2.0][license] license.
123+
© Broadcom. All Rights Reserved.</br>
124+
The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.</br>
125+
Licensed under the [Mozilla Public License, version 2.0][license].
123126

124127
[license]: LICENSE
125128
[contributing]: .github/CONTRIBUTING.md
129+
[code-of-conduct]: .github/CODE_OF_CONDUCT.md
126130
[issues]: https://github.com/vmware/packer-plugin-vmware/issues
127131
[desktop-hypervisors]: https://www.vmware.com/products/desktop-hypervisor.html
128132
[docs-packer-init]: https://developer.hashicorp.com/packer/docs/commands/init

builder/vmware/common/driver_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type DriverConfig struct {
2222
// No longer supported.
2323
//
2424
// ~> **Important:** VMware ESX is not supported by the plugin as of v2.0.0.
25-
// Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/hashicorp/vsphere).
25+
// Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/vmware/vsphere).
2626
RemoteType string `mapstructure:"remote_type" required:"false"`
2727
}
2828

builder/vmware/vmx/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ type Config struct {
5959
Linked bool `mapstructure:"linked" required:"false"`
6060
// The name of an existing snapshot to which the builder shall attach the
6161
// virtual machine before powering on. If no snapshot is specified the
62-
// virtual machine is started from its current state. Default to
62+
// virtual machine is started from its current state. Defaults to
6363
// `null/empty`.
6464
AttachSnapshot string `mapstructure:"attach_snapshot" required:"false"`
65-
// Path to the source `.vmx`, '.ovf', or '.ova' file to clone.
65+
// Path to the source `.vmx`, `.ovf`, or `.ova` file to clone.
6666
SourcePath string `mapstructure:"source_path" required:"true"`
6767
// This is the name of the `.vmx` file for the virtual machine, without
6868
// the file extension. By default, this is `packer-BUILDNAME`, where

docs-partials/builder/vmware/common/DriverConfig-not-required.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
- `remote_type` (string) - No longer supported.
99

1010
~> **Important:** VMware ESX is not supported by the plugin as of v2.0.0.
11-
Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/hashicorp/vsphere).
11+
Please use the [Packer plugin for VMware vSphere](https://developer.hashicorp.com/packer/integrations/vmware/vsphere).
1212

1313
<!-- End of code generated from the comments of the DriverConfig struct in builder/vmware/common/driver_config.go; -->

docs-partials/builder/vmware/vmx/Config-not-required.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
- `attach_snapshot` (string) - The name of an existing snapshot to which the builder shall attach the
2222
virtual machine before powering on. If no snapshot is specified the
23-
virtual machine is started from its current state. Default to
23+
virtual machine is started from its current state. Defaults to
2424
`null/empty`.
2525

2626
- `vm_name` (string) - This is the name of the `.vmx` file for the virtual machine, without
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Code generated from the comments of the Config struct in builder/vmware/vmx/config.go; DO NOT EDIT MANUALLY -->
22

3-
- `source_path` (string) - Path to the source `.vmx`, '.ovf', or '.ova' file to clone.
3+
- `source_path` (string) - Path to the source `.vmx`, `.ovf`, or `.ova` file to clone.
44

55
<!-- End of code generated from the comments of the Config struct in builder/vmware/vmx/config.go; -->

0 commit comments

Comments
 (0)