$ lxc launch ubuntu:22.04 --vm
Creating the instance
Error: Failed instance creation: Failed creating instance record: Instance type "virtual-machine" is not supported on this server: vhost_vsock kernel module not loaded
This host is nested but CPU virtualization has been enabled.
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
$ lxc version
Client version: 5.5
Server version: 5.5
$ uname -a
Linux svr 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ sudo apt install linux-modules-extra-5.4.0-58-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-modules-extra-5.4.0-58-generic is already the newest version (5.4.0-58.64).
0 upgraded, 0 newly installed, 0 to remove and 240 not upgraded.
$ sudo kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
Here it says the module vhost_vsock doesn’t have to be loaded in advance. So it appears it should be loaded when LXD attempts to use it.
Related (but for Pi; the fix doesn’t work for me (maybe because I’m on 20.04?)):
Means you’ve likely not got a root disk device in your profile.
The reason it worked with the new pool is that you provided the -s flag which adds an instance level root disk device to the instance, rather than using the (missing) one from the profile.
Yeah, I agree for the 2nd error, I think I incorrectly assumed pool name. But I think my first attempt didn’t have that problem (it was a very different error?).