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

Error: Unknown source type azure-arm : ubuntu-22.04 #11744

Open
2 of 15 tasks
SPALLADI opened this issue Mar 7, 2025 · 7 comments
Open
2 of 15 tasks

Error: Unknown source type azure-arm : ubuntu-22.04 #11744

SPALLADI opened this issue Mar 7, 2025 · 7 comments

Comments

@SPALLADI
Copy link

SPALLADI commented Mar 7, 2025

Description

I m creating a packer image using ubuntu-22.04. The error message indicates that No plugins requirement found and pointing to line number 169
No plugins requirement found, make sure you reference a Packer config
containing a packer.required_plugins block. See
https://www.packer.io/docs/templates/hcl_templates/blocks/packer
for more info.
Error: Unknown source type azure-arm
on /home/vsts/work/1/s/ado_agent/images/ubuntu/templates/ubuntu-22.04.pkr.hcl line 169:
(source code not available)
The source azure-arm is unknown by Packer, and is likely part of a plugin that
is not installed.
You may find the needed plugin along with installation instructions documented
on the Packer integrations page.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Runner Image
Image: ubuntu-22.04
Version: 20250302.1.0

Is it regression?

no

Expected behavior

Packer should run successfully.

Actual behavior

Erroring out as above

Repro steps

git clone --quiet "https://github.com/actions/runner-images.git" $targetDirName
Set-Location $targetDirName
$runnerTag = git tag --list "$image*" | Select -Last 1

@hemanthmanga
Copy link
Contributor

Hi @SPALLADI, Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating.


@SPALLADI
Copy link
Author

SPALLADI commented Mar 7, 2025

Hi @SPALLADI, Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating.

@hemanthmanga , any update as it is impacting all the pipelines using packer with git runner images

@erik-bershel
Copy link
Contributor

Ref:

We strongly encourage customers to build their own images using the main branch. This repository contains multiple branches and releases that serve as document milestones to reflect what software is installed in the images at certain point of time. Current builds are not idempotent and if one tries to build a runner image using the specific tag it is not guaranteed that the build will succeed.

@SPALLADI
Copy link
Author

SPALLADI commented Mar 7, 2025

@erik-bershel , I am using main branch
git clone --quiet "https://github.com/actions/runner-images.git" $targetDirName

@erik-bershel
Copy link
Contributor

erik-bershel commented Mar 7, 2025

Hey @SPALLADI!

I am using main branch

Correct me if I wrong, please. As I see you selecting the latest image related tag here: $runnerTag = git tag --list "$image*" | Select -Last 1. This way you skip all other commits form main that haven't been committed yet in that branch.

UPD: I don't know what happens next in your pipeline, but it looks like the build might be coming from the latest release branch, and they're not suitable for that.

@SPALLADI
Copy link
Author

SPALLADI commented Mar 7, 2025

Hey @SPALLADI!

I am using main branch

Correct me if I wrong, please. As I see you selecting the latest image related tag here: $runnerTag = git tag --list "$image*" | Select -Last 1. This way you skip all other commits form main that haven't been committed yet in that branch.

UPD: I don't know what happens next in your pipeline, but it looks like the build might be coming from the latest release branch, and they're not suitable for that.

Thank you. Then what is the best/stable way to deal this so that it doesn;t break

@erik-bershel
Copy link
Contributor

I can recommend to use our guide: https://github.com/actions/runner-images/blob/main/docs/create-image-and-azure-resources.md#manual-image-generation

At the moment it says to do the next:

git clone https://github.com/actions/runner-images.git
Set-Location runner-images
Import-Module .\helpers\GenerateResourcesAndImage.ps1
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants