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

MacOS Mac Mini M4 qemu-system-aarch64: Property 'host-arm-cpu.sme' not found #3842

Open
ruedigerp opened this issue Dec 13, 2024 · 9 comments
Labels
bug high high importance jira Create a Jira ticket for this issue

Comments

@ruedigerp
Copy link

Describe the bug
Instances not starting

launch failed: The following errors occurred: Unexpected error in object_property_find_err() at ../../../qom/object.c:1330: qemu-system-aarch64: Property 'host-arm-cpu.sme' not found

To Reproduce
How, and what happened?

  1. multipass launch -c 2 -m 2G -n test

Logs
`[2024-12-13T22:36:53.298] [debug] [image vault] Verifying hash "fb39312ffd2b47b97eaef6ff197912eaa3e0a215eb3eecfbf2a24acd96ee1125"
[2024-12-13T22:36:55.982] [debug] [qemu-img] [3526] started: qemu-img info --output=json /var/root/Library/Caches/multipassd/qemu/vault/images/oracular-20241212/ubuntu-24.10-server-cloudimg-arm64.img
[2024-12-13T22:36:55.988] [debug] [qemu-img] [3527] started: qemu-img amend -o compat=1.1 /var/root/Library/Caches/multipassd/qemu/vault/images/oracular-20241212/ubuntu-24.10-server-cloudimg-arm64.img
[2024-12-13T22:36:55.993] [debug] [qemu-img] [3528] started: qemu-img info /var/root/Library/Caches/multipassd/qemu/vault/images/oracular-20241212/ubuntu-24.10-server-cloudimg-arm64.img
[2024-12-13T22:36:55.998] [debug] [qemu-img] [3529] started: qemu-img resize /var/root/Library/Application Support/multipassd/qemu/vault/instances/test/ubuntu-24.10-server-cloudimg-arm64.img 5368709120
[2024-12-13T22:36:56.003] [debug] [qemu-img] [3530] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/test/ubuntu-24.10-server-cloudimg-arm64.img
[2024-12-13T22:36:56.007] [debug] [qemu-img] [3532] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/test/ubuntu-24.10-server-cloudimg-arm64.img
[2024-12-13T22:36:56.010] [debug] [test] process working dir ''
[2024-12-13T22:36:56.010] [info] [test] process program 'qemu-system-aarch64'
[2024-12-13T22:36:56.010] [info] [test] process arguments '-machine, virt,gic-version=3, -accel, hvf, -drive, file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on, -cpu, host, -nic, vmnet-shared,model=virtio-net-pci,mac=52:54:00:76:43:2d, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/test/ubuntu-24.10-server-cloudimg-arm64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 2048M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/root/Library/Application Support/multipassd/qemu/vault/instances/test/cloud-init-config.iso'
[2024-12-13T22:36:56.011] [debug] [qemu-system-aarch64] [3533] started: qemu-system-aarch64 -machine virt,gic-version=3 -nographic -dump-vmstate /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/multipassd.bUfWeu
[2024-12-13T22:36:56.032] [info] [test] process state changed to Starting
[2024-12-13T22:36:56.034] [info] [test] process state changed to Running
[2024-12-13T22:36:56.034] [debug] [qemu-system-aarch64] [3534] started: qemu-system-aarch64 -machine virt,gic-version=3 -accel hvf -drive file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on -cpu host -nic vmnet-shared,model=virtio-net-pci,mac=52:54:00:76:43:2d -device virtio-scsi-pci,id=scsi0 -drive file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/test/ubuntu-24.10-server-cloudimg-arm64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 2048M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/root/Library/Application Support/multipassd/qemu/vault/instances/test/cloud-init-config.iso
[2024-12-13T22:36:56.034] [info] [test] process started
[2024-12-13T22:36:56.034] [debug] [test] Waiting for SSH to be up
[2024-12-13T22:36:56.035] [debug] [arp] [3535] started: arp -an
[2024-12-13T22:36:56.233] [debug] [test] QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 8}, "package": ""}, "capabilities": ["oob"]}}

[2024-12-13T22:36:56.259] [warning] [test] Unexpected error in object_property_find_err() at ../../../qom/object.c:1330:
qemu-system-aarch64: Property 'host-arm-cpu.sme' not found

[2024-12-13T22:36:56.259] [warning] [qemu-system-aarch64]
[2024-12-13T22:36:56.259] [info] [test] process state changed to NotRunning
[2024-12-13T22:36:56.259] [error] [test] process error occurred Crashed program: qemu-system-aarch64; error: Process crashed
[2024-12-13T22:36:56.260] [error] [test] error: program: qemu-system-aarch64; error: Process crashed
[2024-12-13T22:38:01.651] [debug] [async task] fetch manifest periodically
[2024-12-13T22:38:01.654] [info] [VMImageHost] Did not find any supported products in "appliance"`

Additional info

  • OS: macOS 15.2
  • multipass 1.15.0+mac
  • multipassd 1.15.0+mac
  • multipass info
    Name: test
    State: Unknown
    Snapshots: 0
    IPv4: --
    Release: --
    Image hash: fb39312ffd2b (Ubuntu 24.10)
    CPU(s): --
    Load: --
    Disk usage: --
    Memory usage: --
    Mounts: --
  • multipass get local.driver
    qemu

Additional context
I also have an Apple M3, and it was updated to 15.2 today as well. On this machine, Multipass is still running without any issues. Before the update, Multipass also worked on the M4 Mac. Multipass, QEMU, and other related components were completely uninstalled and reinstalled.

@ruedigerp ruedigerp added bug needs triage Issue needs to be triaged labels Dec 13, 2024
@tasosz
Copy link

tasosz commented Dec 14, 2024

These 2 QEMU issues appear related:
https://gitlab.com/qemu-project/qemu/-/issues/2721
https://gitlab.com/qemu-project/qemu/-/issues/2665
and imply a QEMU issue causes 3842.

Hopefully it'll get fixed in QEMU soon.

@ricab ricab added high high importance and removed needs triage Issue needs to be triaged labels Dec 16, 2024
@ricab
Copy link
Collaborator

ricab commented Dec 16, 2024

Ooof, just what we needed before EOY. Thanks for the report and references!

@ricab ricab added the jira Create a Jira ticket for this issue label Dec 16, 2024
@ricab
Copy link
Collaborator

ricab commented Dec 16, 2024

Here's a package with the CPU type workaround mentioned in https://gitlab.com/qemu-project/qemu/-/issues/2721, i.e., such that on Apple Silicon the qemu command line includes -cpu cortex-a57 instead of host. This will make it emulate that other (older) CPU model, with fewer features, so it will be slower, but hopefully it will help some circumvent the issue.

Could you please try it out and let us know how it goes?

@ricab ricab closed this as completed Dec 16, 2024
@ricab ricab reopened this Dec 16, 2024
@cougarwww
Copy link

@ricab
I have a try this package, it can not work.
`
[2024-12-17T15:30:03.656] [info] [daemon] Starting Multipass 1.16.0-dev.3607.pr705+g7c2616e9e.mac
[2024-12-17T15:30:03.656] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug
[2024-12-17T15:30:03.773] [debug] [kube] QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 8}, "package": ""}, "capabilities": ["oob"]}}

[2024-12-17T15:30:03.787] [warning] [kube] qemu-system-aarch64: VCPU supports less PA bits (36) than requested by the memory map (40)
`

@ricab
Copy link
Collaborator

ricab commented Dec 17, 2024

That's unfortunate. @cougarwww, was that an existing VM? Do new launches have the same problem?

@cougarwww
Copy link

The VM is old,I launch a new one is still not work.
$ multipass launch -d 30G -m 4G -c 4 -n dev2 launch failed: The following errors occurred: qemu-system-aarch64: VCPU supports less PA bits (36) than requested by the memory map (40) dev2: shutdown called while starting

@cougarwww
Copy link

I use brew install qemu QEMU emulator version 9.2.0 and -cpu cortex-a57 can run the multipass vm old img

@ruedigerp
Copy link
Author

hi @ricab,

thx. installed and tested. No SME Error but another one:
❯ multipass launch -n test2 launch failed: The following errors occurred: qemu-system-aarch64: VCPU supports less PA bits (36) than requested by the memory map (40) test2: shutdown called while starting

@ruedigerp
Copy link
Author

ruedigerp commented Dec 18, 2024

@ricab
Once again, a few more details.
I uninstalled QEMU again with:
brew uninstall qemu --zap
Then reinstalled it:
brew install qemu

Deleted all VMs with Multipass, ran a purge, and created a new one:
multipass delete --all
multipass purge
multipass launch -c 2 -m 1G --disk 10G

qemu-system-aarch64: VCPU supports less PA bits (36) than requested by the memory map (40)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug high high importance jira Create a Jira ticket for this issue
Projects
None yet
Development

No branches or pull requests

4 participants