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

test: support running qemu on other architectures #2487

Merged
merged 6 commits into from
Aug 22, 2023

Conversation

bdrung
Copy link
Contributor

@bdrung bdrung commented Aug 16, 2023

Changes

This merge request contains the first set of patches to support running qemu on other architectures.

Checklist

  • I have tested it locally
  • I have reviewed and updated any documentation if relevant
  • I am providing new code and test(s) for it

Allow specifying the architecture for `run-qemu`. E.g. this enables
running armhf containers on arm64 hosts.

Signed-off-by: Benjamin Drung <[email protected]>
@github-actions github-actions bot added the test Issues related to testing label Aug 16, 2023
Copy link
Collaborator

@LaszloGombos LaszloGombos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome

test/run-qemu Outdated Show resolved Hide resolved
test/run-qemu Show resolved Hide resolved
On the Ubuntu ppc64el architecture the kernel is named `/boot/vmlinux`.

Signed-off-by: Benjamin Drung <[email protected]>
The QEMU machine `q35` is only available on x86:

```
qemu-system-aarch64: unsupported machine type
Use -machine help to list supported machines
```

Signed-off-by: Benjamin Drung <[email protected]>
Set QEMU machine for ARM and PowerPC to run on Debian/Ubuntu.

Signed-off-by: Benjamin Drung <[email protected]>
KVM fails on the Ubuntu ppc64el autopkgtest runners:

```
$ /usr/bin/qemu-system-ppc64el -enable-kvm -cpu host [...]
ioctl(KVM_CREATE_VM) failed: 22 Invalid argument
PPC KVM module is not loaded. Try modprobe kvm_hv.
qemu-system-ppc64el: failed to initialize kvm: Invalid argument
$ modprobe kvm_hv
modprobe: ERROR: could not insert 'kvm_hv': No such device
```

Signed-off-by: Benjamin Drung <[email protected]>
@LaszloGombos LaszloGombos merged commit 6f78e5d into dracutdevs:master Aug 22, 2023
76 of 92 checks passed
@bdrung bdrung deleted the other-archs branch August 22, 2023 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants