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

Pod VM image in additional regions #1696

Closed
cmaf opened this issue Feb 8, 2024 · 4 comments
Closed

Pod VM image in additional regions #1696

cmaf opened this issue Feb 8, 2024 · 4 comments
Labels
podvm Related to podvm images provider/azure Issues related to Azure CAA provider

Comments

@cmaf
Copy link

cmaf commented Feb 8, 2024

Is it possible to add the image to the eastus2 region?

 "error": {
    "code": "GalleryImageNotFound",
    "message": "\"The gallery image /CommunityGalleries/cocopodvm-d0e4f35f-5530-4b9c-8596-112487cdea85/Images/podvm_image0/Versions/2024.02.01 is not available in eastus2 region. Please contact image owner to replicate to this region, or change your requested region.\"",
    "target": "imageReference"
@cmaf
Copy link
Author

cmaf commented Feb 8, 2024

cc @surajssd

@surajssd
Copy link
Member

surajssd commented Feb 8, 2024

it is possible to replicate the image to other regions during build time by adding a field called replication_regions to the packer build script here: https://github.com/confidential-containers/cloud-api-adaptor/blob/372e4e72f7fef27b5adb5376e0361f01b901a8a7/azure/image/ubuntu/azure-ubuntu.pkr.hcl#L26C3-L33

Packer docs here: https://developer.hashicorp.com/packer/integrations/hashicorp/azure/latest/components/builder/arm#shared-image-gallery-destination

If you are willing to try the pod vm image build for Azure here is the documentation: https://github.com/confidential-containers/cloud-api-adaptor/blob/main/azure/build-image.md

@cmaf
Copy link
Author

cmaf commented Feb 16, 2024

Thanks @surajssd. I created PR #1698 to add the replication region.

Is there more documentation about dependencies and build environment for Option 1 in the image build instructions? I have not been able to successfully build it yet due to multiple errors with missing dependencies and environment variables.

@surajssd
Copy link
Member

Is there more documentation about dependencies and build environment for Option 1 in the image build instructions? I have not been able to successfully build it yet due to multiple errors with missing dependencies and environment variables.

@cmaf thanks for the feedback, here is the PR that updates the documentation: #1699.

@mkulke mkulke added provider/azure Issues related to Azure CAA provider podvm Related to podvm images labels Feb 20, 2024
@cmaf cmaf closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
podvm Related to podvm images provider/azure Issues related to Azure CAA provider
Projects
None yet
Development

No branches or pull requests

3 participants