Skip to content

Cannot get extension installed on Ubuntu 22.04 ARM64 #173

@Fiury00

Description

@Fiury00

Is there a way to get the extension installed on Ubuntu ARM64?
I have just moved to Azure Update Manager. We have Ubuntu 22.04 on ARM64 .
Image reference:
Publisher: Canonical
Offer: 0001-com-ubuntu-server-jammy
SKU: 22_04-lts-arm64
Version: 22.04.202405010
When I try to install with the following command:
az vm extension set --resource-group ***** --vm-name ***** --name ConfigurationForLinux --publisher Microsoft.GuestConfiguration

I get the below output:

A ConfigurationForLinux extension with name AzurePolicyforLinux already exists. Updating it with your settings...
(VMExtensionHandlerNonTransientError) The handler for VM extension type 'Microsoft.GuestConfiguration.ConfigurationforLinux' has reported terminal failure for VM extension 'AzurePolicyforLinux' with error message: '[ExtensionOperationError] Non-zero exit code: 126, /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-shim install
[stdout]
Linux distribution version is 22.04.
Linux distribution is Ubuntu.
+ /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-extension install
/var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-shim: line 211: /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-extension: cannot execute binary file: Exec format error


[stderr]
'.

'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'
Code: VMExtensionHandlerNonTransientError
Message: The handler for VM extension type 'Microsoft.GuestConfiguration.ConfigurationforLinux' has reported terminal failure for VM extension 'AzurePolicyforLinux' with error message: '[ExtensionOperationError] Non-zero exit code: 126, /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-shim install
[stdout]
Linux distribution version is 22.04.
Linux distribution is Ubuntu.
+ /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-extension install
/var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-shim: line 211: /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-1.26.72/bin/guest-configuration-extension: cannot execute binary file: Exec format error

[stderr]
'.

'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'

Any ideas?

Regards,
Tomek A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions