Azure / Guest-Configuration-Extension

Azure Guest Configuration Virtual Machine Extension for Linux
Apache License 2.0
12 stars 10 forks source link

Cannot get extension installed on Ubuntu 22.04 ARM64 #173

Open Fiury00 opened 3 months ago

Fiury00 commented 3 months ago

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.

LoopedBard3 commented 1 week ago

Bumping this issue as we are hitting the same thing trying to install the GuestConfiguration on Linux ARM64 Ubuntu machines.

LoopedBard3 commented 1 week ago

@iabdulqa bump

iabdulqa commented 1 week ago

Hi @LoopedBard3 and @Fiury00 We do not currently support Arm64, but if there is interest in it we can consider it.

LoopedBard3 commented 1 week ago

It would be great if Arm64 for Linux could be supported. I know we have a handful of Arm64 VMs currently and will probably be adding more in the future.

bufnitza commented 6 days ago

Bump on this as well, we wanted to install GuestConfiguration our arm64 VM farm and ran into this. Would be appreciated if an arm64 build is made available, especially with Microsoft making such strides with its new Cobalt CPUs.