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

Qemu-guest-agent is missing in QEMU aarch64 image #1593

Open
sergey-cheperis opened this issue Nov 30, 2024 · 2 comments
Open

Qemu-guest-agent is missing in QEMU aarch64 image #1593

sergey-cheperis opened this issue Nov 30, 2024 · 2 comments
Labels
kind/bug Something isn't working platform/arm64

Comments

@sergey-cheperis
Copy link

sergey-cheperis commented Nov 30, 2024

Description

Per https://www.flatcar.org/docs/latest/setup/customization/acpi/, images should include qemu-guest-agent which is enabled when org.qemu.guest_agent.0 virtio port is present. However, the flatcar_production_qemu_uefi_secure_image.img image for aarch64 does not contain it.

Impact

Guest automation depending on the guest agent does not work.

Environment and steps to reproduce

  1. Run Flatcar from flatcar_production_qemu_uefi_secure_image.img for aarch64 archictecture. The version being tested is 4081.2.0. Use the following qemu args to add the virtio port:
-chardev socket,host=localhost,port=4444,server=on,wait=off,id=vp0
-device virtio-serial
-device virtserialport,chardev=vp0,name=org.qemu.guest_agent.0
  1. Log in to the VM with SSH.
  2. Ensure ls -la /dev/virtio-ports/ shows the org.qemu.guest_agent.0 port.
  3. Ensure which qemu-guest-agent does not show anything, neither does pgrep qemu.

Expected behavior

A qemu-guest-agent executable exists and is started.

@tormath1
Copy link
Contributor

tormath1 commented Dec 2, 2024

Hi @sergey-cheperis and thanks for the report! Here's the fixing PR: flatcar/scripts#2490, I will discuss with Flatcar folks but there is a high chance to backport the fix on all channels (alpha, beta, stable and LTS).

A CI job is running to build the image, would you be able to test the ARM64 image to see if it brings the qemu-guest-agent ?

EDIT: Here's the image if you want to try: https://bincache.flatcar-linux.net/images/arm64/9999.0.101+tormath1-guest-agent-arm/flatcar_production_qemu_uefi_secure_image.img

@sergey-cheperis
Copy link
Author

Hi Mathieu, thanks a lot you for handling this so fast. I can confirm that in this image the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working platform/arm64
Projects
Development

No branches or pull requests

2 participants