Can not launch LXD vm on vmware fusion host machine

I install Ubuntu 22.04 server on VMware fusion (mac), and when I run kvm-ok on the ubuntu vm everything seemed good:

INFO: /dev/kvm exists
KVM acceleration can be used

But, when I want to create a VM:

lxc launch images:ubuntu/22.04 vm1 --vm

I get this error:

Error: Failed to run: forklimits limit=memlock:unlimited:unlimited fd=3 -- /snap/lxd/23541/bin/qemu-system-x86_64 -S -name vm1 -uuid 4912d38d-9bff-407d-b915-a5336dcc9fcc -daemonize -cpu host,hv_passthrough -nographic -serial chardev:console -nodefaults -no-user-config -sandbox on,obsolete=deny,elevateprivileges=allow,spawn=allow,resourcecontrol=deny -readconfig /var/snap/lxd/common/lxd/logs/vm1/qemu.conf -spice unix=on,disable-ticketing=on,addr=/var/snap/lxd/common/lxd/logs/vm1/qemu.spice -pidfile /var/snap/lxd/common/lxd/logs/vm1/qemu.pid -D /var/snap/lxd/common/lxd/logs/vm1/qemu.log -smbios type=2,manufacturer=Canonical Ltd.,product=LXD -runas lxd: : Process exited with non-zero value 1
Try `lxc info --show-log lxds:vm1` for more info

This is the result of the log:

lxc info --show-log vm1                                                                                                                                          67% ▆ 
Name: vm1
Status: STOPPED
Type: virtual-machine
Architecture: x86_64
Created: 2023/01/14 10:01 CET

Log:

qemu-system-x86_64: error: failed to set MSR 0x48d to 0x5600000016
qemu-system-x86_64: ../target/i386/kvm/kvm.c:2996: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

Thats a QEMU crash.

Searching for that error lead me here:

Does that help?

+1. I do have the same issue here.
Host on Openssue15.4.
Old vms does not seem to start anymore after upgrade.

lxc start ubuntuClient 
Error: Failed to run: forklimits limit=memlock:unlimited:unlimited fd=3 -- /usr/bin/qemu-system-x86_64 -S -name ubuntuClient -uuid 6ab4cf04-3ec9-4430-8c49-e9ae6b29f432 -daemonize -cpu host,hv_passthrough -nographic -serial chardev:console -nodefaults -no-user-config -sandbox on,obsolete=deny,elevateprivileges=allow,spawn=allow,resourcecontrol=deny -readconfig /var/log/lxd/ace_ubuntuClient/qemu.conf -spice unix=on,disable-ticketing=on,addr=/var/log/lxd/ace_ubuntuClient/qemu.spice -pidfile /var/log/lxd/ace_ubuntuClient/qemu.pid -D /var/log/lxd/ace_ubuntuClient/qemu.log -smbios type=2,manufacturer=Canonical Ltd.,product=LXD -runas nobody: : Process exited with non-zero value 1
Try `lxc info --show-log ubuntuClient` for more info


Log:

qemu-system-x86_64: error: failed to set MSR 0x40000081 to 0x1
qemu-system-x86_64: ../target/i386/kvm/kvm.c:2893: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
1 Like