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

Please add support for libvirt/qemu – for KVM host support #479

Open
vkgarg2023 opened this issue Sep 29, 2023 · 11 comments
Open

Please add support for libvirt/qemu – for KVM host support #479

vkgarg2023 opened this issue Sep 29, 2023 · 11 comments
Labels
enhancement New feature or request packages Package request

Comments

@vkgarg2023
Copy link

vkgarg2023 commented Sep 29, 2023

Please add support for libvirt – For KVM host support in Amazon Linux 2023

@stewartsmith stewartsmith changed the title Please add support for Libvert – For KVM support Please add support for libvirt – for KVM host support Oct 4, 2023
@stewartsmith
Copy link
Member

(I'm assuming you mean libvirt rather than libvert, as I don't know what libvert is and googling it just directs me to libvirt).

I am assuming you also would be looking forqemu so that it's possible to run KVM guests?

What is your use-case for running guests?

@stewartsmith stewartsmith added enhancement New feature or request packages Package request labels Oct 4, 2023
@stewartsmith stewartsmith changed the title Please add support for libvirt – for KVM host support Please add support for libvirt/qemu – for KVM host support Jan 11, 2024
@jdvw
Copy link

jdvw commented Jan 12, 2024

Hi, we would like to have qemu (including qemu-user, qemu-system-arm, ...), too. Our use case are build agents that want to build for different CPU architectures.

@jdvw
Copy link

jdvw commented Feb 6, 2024

Another use case: Android Emulator

@a89h4ya
Copy link

a89h4ya commented Apr 2, 2024

We have the exact same use-case as jdvw. Currently I am trying to compile qemu from sources statically, with no success so far.

@jmccaa
Copy link

jmccaa commented May 31, 2024

Use case: integration with docker buildx, so similar to above.

@avoidik
Copy link

avoidik commented Jul 10, 2024

this will help with the multi-arch builds on al2023

@rtapp1
Copy link

rtapp1 commented Jul 10, 2024

We have the same use case as @a89h4ya for emulation.

@notdanhan
Copy link

notdanhan commented Oct 3, 2024

I'm trying to use Amazon Linux 2023 as a build agent for a library that does linux tooling for Baremetal x86_64 servers that run on Amazon Linux 2023, having QEMU with libvirt on Amazon Linux 2023 would be nice as I'd be able to Run integration tests which check boot output as we use custom boot logic, and with spoofed hardware specs.

@cloudwitch
Copy link

cloudwitch commented Dec 4, 2024

I need qemu and qemu-user-static for Docker Buildx to work correctly for multi-arch image builds. Please add the packages.

This is kind of a show stopper for us moving... I'm pivoting to using Ubuntu instead. Which means a whole lot of changes to our build pipelines most likely.

@cloudwitch
Copy link

cloudwitch commented Dec 5, 2024

Opened up case 173341929800682 for an official feature request. I'm not expecting instant results, but it may help un-block this Issue.

Edit: They said it is going to take a while to do the needful and test it. In the mean time, use an alternative Operating System that already has it, or compile it from Source. We're just moving on with Ubuntu... No time to be playing these games.

@dmunicio
Copy link

If you are using terragrunt / terraform, you can use as a workaround before_hook before doing the apply.
This installs in memory the emulators:

terraform {
    before_hook "before_hook_apply" {
      commands = ["apply"]
      execute  = ["sh", "-c", "docker run --privileged --rm multiarch/qemu-user-static --reset -p yes"]
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request packages Package request
Projects
None yet
Development

No branches or pull requests

10 participants