Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the instructions for PowerVS image build with DHCP support #1865

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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