#120 Run arm64 vm on x86_64
Closed: Fixed 2 years ago by frantisekz. Opened 3 years ago by mvadkert.

Hi, we are evaluating if we can make emulation of arm64 via qemu work on x86_64, so we can test arm64 qcow2's. Seems already 2 teams are interested in this (Kernel QE and Automotive).

According to our information with the help of qemu-system-aarch64-core it could be made working, we are just not sure if that could fit into what testcloud can provide or we need another provisioner for this use case.

Any idea @frantisekz or somebody from Fedora QA has some experience in this field?


Metadata Update from @frantisekz:
- Issue assigned to frantisekz

3 years ago

There is now very preliminary build of testcloud that supports both aarch64 and ppc64le on x86_64 (native, eg. aarch64 on aarch64 might work but I haven't tested that yet). Apart from that, I haven't tested user sessions either, so they may or may not work for now.

The copr is: https://copr.fedorainfracloud.org/coprs/frantisekz/testcloud-wip/

With that build, you can create x86_64/aarch64/ppc64 vms, eg. for Fedora 35:

$ testcloud instance create --arch aarch64 --timeout 3600 fedora:35
$ testcloud instance create --arch ppc64le --timeout 3600 fedora:35

Be sure to add timeout as the default values won't work too well for emulating a different arch (it doesn't take an hour, just didn't come to some sensible value yet). Also, you may need to wait a while after testcloud tells you the ssh command as the openssh service takes a few more secs to start up.

Also, aarch64 is currently UEFI only, Fedora works with that, I'll dig into it more if there is need for non-UEFI boot. To test both example commands above, you'll need following additional packages: edk2-aarch64 qemu-system-aarch64 qemu-system-ppc

I'll be glad for any testing, the code in the #115 is a bit rough as of now, but should work reliably for basic scenarios outlined above.

@frantisekz :rocket: I lack a bit time to test this :(

Fixed by testcloud-0.7.0.

Metadata Update from @frantisekz:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Log in to comment on this ticket.

Metadata