Skip to content

Commit

Permalink
Enhance the instructions for PowerVS image build with DHCP support
Browse files Browse the repository at this point in the history
  • Loading branch information
Amulyam24 committed Jul 2, 2024
1 parent a34ad8c commit 6b997ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/book/src/developer/build-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ Compose the `user-variables.json` file containing the information for the PowerV
- `service_instance_id`: PowerVS service instance ID
- `ssh_private_key_file`: Path to the SSH private key file used to connect to the vm while image preparation, e.g: /Users/manjunath/.ssh/id_rsa
- `zone`: PowerVS zone, e.g: osa21
- `dhcp_network`: Boolean value when set to true, a DHCP server will be created in PowerVS workspace and its private network will be attached to VM, Make sure to customize the network settings while building OS using [pvsadm tool](https://github.com/ppc64le-cloud/pvsadm/blob/main/docs/Build%20DHCP%20enabled%20Centos%20Images.md).
- `dhcp_network`: Set to `true` if the image has to be built with DHCP support

> **Note:**
> 1. When setting `dhcp_network: true`, you need to build an OS image with certain network settings using [pvsadm tool](https://github.com/ppc64le-cloud/pvsadm/blob/main/docs/Build%20DHCP%20enabled%20Centos%20Images.md) and replace [the fields](https://github.com/kubernetes-sigs/image-builder/blob/cb925047f388090a0db3430ca3172da63eff952c/images/capi/packer/powervs/centos-8.json#L6) with the custom image details.
> 2. Clone the image-builder repo and run `make build` commands from a system where the DHCP private IP can be reached and SSH able(you can use a transit gateway with connections added for VPC and PowerVS workspace and build the image from a virtual server instance in VPC).

```shell
# Clone the image-builder repository
Expand Down
11 changes: 10 additions & 1 deletion docs/book/src/machine-images/powervs.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,17 @@
| us-south | power-oss-bucket | [capibm-powervs-centos-streams8-1-23-5.ova.gz][streams8-1-23-5] | 1.23.5 |
| us-south | power-oss-bucket | [capibm-powervs-centos-streams8-1-22-4.ova.gz][streams8-1-22-4] | 1.22.4 |

Note: These images are built using the [image-builder][image-builder] tool and more information can be found [here](../developer/build-images.md#powervs)
## PowerVS Images with DHCP based network

| Region | Bucket | Object | Kubernetes Version |
|----------|------------------|-----------------------------------------------------------------|--------------------|
| us-south | power-oss-bucket | [capibm-powervs-centos-streams9-1-29-3-1719470782.ova.gz][centos-streams9-1-29-3] | 1.29.3 |
| us-south | power-oss-bucket | [capibm-powervs-centos-streams8-1-28-4-1707287079.ova.gz][centos-streams8-1-28-4] | 1.28.4 |

> **Note:** These images are built using the [image-builder][image-builder] tool and more information can be found [here](../developer/build-images.md#powervs)
[centos-streams9-1-29-3]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams9-1-29-3-1719470782.ova.gz
[centos-streams8-1-28-4]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams8-1-28-4-1707287079.ova.gz
[streams8-1-29-3]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams8-1-29-3.ova.gz
[streams8-1-28-4]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams8-1-28-4.ova.gz
[streams8-1-27-2]: https://power-oss-bucket.s3.us-south.cloud-object-storage.appdomain.cloud/capibm-powervs-centos-streams8-1-27-2.ova.gz
Expand Down

0 comments on commit 6b997ec

Please sign in to comment.