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.