updated the example readme
This commit is contained in:
parent
87fe87896a
commit
53ad50100a
@ -6,7 +6,7 @@ In order to see an exhaustive list of configuration options for the packer build
|
|||||||
|
|
||||||
### Running the examples
|
### Running the examples
|
||||||
|
|
||||||
In order to run this example you will need to perform the following steps:
|
In order to run the examples you will need to perform the following steps:
|
||||||
1. Export those vars:
|
1. Export those vars:
|
||||||
```
|
```
|
||||||
PKR_VAR_remote_host
|
PKR_VAR_remote_host
|
||||||
@ -15,31 +15,15 @@ PKR_VAR_remote_username
|
|||||||
PKR_VAR_sr_name
|
PKR_VAR_sr_name
|
||||||
PKR_VAR_sr_iso_name
|
PKR_VAR_sr_iso_name
|
||||||
```
|
```
|
||||||
`PKR_VAR_remote_host` must be the resource pool primary.
|
`PKR_VAR_remote_host` must be the resource pool primary, aka the master.
|
||||||
|
|
||||||
|
|
||||||
2. Run `packer build path/to/defenition.pkr.hcl`
|
2. Run `packer build path/to/defenition.pkr.hcl`
|
||||||
so for example:
|
so for example:
|
||||||
`packer build examples/centos/centos8-netinstall.pkr.hcl`
|
`packer build examples/centos/centos8-netinstall.pkr.hcl`
|
||||||
|
|
||||||
|
|
||||||
### Ubuntu
|
### Ubuntu
|
||||||
|
|
||||||
This example has not yet updated to HCL.
|
|
||||||
|
|
||||||
In order to run this example you will need to perform the following steps:
|
|
||||||
1. Export the `XAPI_HOST`, `XAPI_USERNAME` and `XAPI_PASSWORD` environment variables to the current shell. Note: The `XAPI_HOST` must be the resource pool primary.
|
|
||||||
2. Run the `packer build` command specifying the storage repositories to use for the ISO upload and for the VM created during the build.
|
|
||||||
|
|
||||||
```
|
|
||||||
# Replace sr_name and sr_iso_name with your storage repositories names
|
|
||||||
packer build -debug --var sr_name='Local storage' --var sr_iso_name=LocalISO examples/centos8.json
|
|
||||||
|
|
||||||
# Do the same variable replacement for the ubuntu example as well.
|
|
||||||
packer build -debug --var sr_name='Local storage' --var sr_iso_name=LocalISO examples/ubuntu-2004.json
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
The Ubuntu example uses the [autoinstall tool](https://ubuntu.com/server/docs/install/autoinstallhttps://ubuntu.com/server/docs/install/autoinstall) to configure the VM template. Please see the [autoinstall docs](https://ubuntu.com/server/docs/install/autoinstall-reference) for an exhaustive list of what is supported.
|
The Ubuntu example uses the [autoinstall tool](https://ubuntu.com/server/docs/install/autoinstallhttps://ubuntu.com/server/docs/install/autoinstall) to configure the VM template. Please see the [autoinstall docs](https://ubuntu.com/server/docs/install/autoinstall-reference) for an exhaustive list of what is supported.
|
||||||
|
|
||||||
Packer will create a http server to serve the files as specified from the `http_directory` specified in the builder configuration. This is where the [user-data](http/ubuntu-2004/user-data) and [meta-data](http/ubuntu-2004/meta-data) for autoinstall must be present.
|
Packer will create a http server to serve the files as specified from the `http_directory` specified in the builder configuration. This is where the [user-data](http/ubuntu-2004/user-data) and [meta-data](http/ubuntu-2004/meta-data) for autoinstall must be present.
|
||||||
|
Loading…
Reference in New Issue
Block a user