[Bug 2023211] Re: Run emulated riscv64 VMs on amd64
OpenStack Infra
2023211 at bugs.launchpad.net
Sat Dec 14 13:59:29 UTC 2024
** Changed in: nova
Status: Invalid => In Progress
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/2023211
Title:
Run emulated riscv64 VMs on amd64
Status in OpenStack Nova Compute Charm:
Invalid
Status in OpenStack Compute (nova):
In Progress
Status in nova package in Ubuntu:
Confirmed
Bug description:
[Impact]
Since the OpenStack Yoga release is possible to run emulated
architectures ( https://docs.openstack.org/nova/latest/admin/hw-
emulation-architecture.html ), although riscv64 is not in the list of
supported architectures.
In the Launchpad build farm, we run a cluster of riscv64 virtual
machines that deal with building riscv64 artifacts, including .debs
for Ubuntu itself. We don't currently have hypervisor-capable riscv64
hardware to run these on, so we're using qemu system emulation on
commodity amd64 hardware. This works OK, but we currently do this in
manually-configured libvirt instances; we'd much rather be able to do
it on our internal OpenStack clouds.
[Test Case]
$ wget http://cloud-images.ubuntu.com/server/releases/jammy/release-20220420/ubuntu-22.04-server-cloudimg-riscv64.img
$ openstack image create --disk-format qcow2 --file ~cjwatson/ubuntu-22.04-server-cloudimg-riscv64.img --private --property architecture=riscv64 --property item_name=disk1.img --property os_distro=ubuntu --property os_version=22.04 cjwatson-riscv64-test
$ openstack image set --property hw_emulation_architecture=riscv64 cjwatson-riscv64-test
$ openstack image set --property hw_machine_type=virt cjwatson-riscv64-test
$ openstack server create --image cjwatson-riscv64-test --flavor vbuilder --network vbuilder_staging_test_net cjwatson-riscv64-test
Expected result: the created instance reaches to ACTIVE state.
Actual result: the "openstack server create" command fails with the following error message:
Invalid image metadata. Error: Architecture name 'riscv64' is not valid (HTTP 400) (Request-ID: req-023932ea-7c90-4be3-89b8-6bd19718919a)
This causes me to think that, even if I've left out some property or
other (e.g. firmware), basic things like the riscv64 architecture name
being valid aren't currently in place. But it's certainly possible
I've got something wrong here. If there's a known way to make this
work, could it please be documented?
I've attached `virsh dumpxml` output from one of the manual libvirt
instances we use at present, in case it's useful.
To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-nova-compute/+bug/2023211/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list