[LXD 4.7] Create LXD container on QEMU/KVM Ubuntu 20.04 VM

Hello :wave:

I have difficulties to create LXD containers on an Ubuntu VM using QEMU/KVM. My installation of LXD under the vm is from snap.

beroots@qemukvm:~$id beroots
uid=1000(beroots) gid=1000(beroots) groupes=1000(beroots),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),131(lxd),132(sambashare)

beroots@qemukvm:~$lxc profile show virtbazx-default
config: {}
description: Default LXD profile used by virtbazx
    name: eth0
    network: lxdbr0
    type: nic
    path: /
    pool: default
    type: disk
name: virtbazx-default
used_by: []

beroots@qemukvm:~$ lxc init images:debian/10/cloud/amd64 d10-cloud
Creating d10-cloud
Error: Failed instance creation: Create instance: Create instance: Invalid devices: Failed detecting root disk device: No root device could be found

If someone has an idea ?


The default profile in LXD is called default. The profile that you show, is not called default.
If you want to use that profile instead, you need to specify it explicitly in the command line.

Yes. Sorry. I recovered the command from a bad version of the file of my reminder. :man_facepalming:
Thank you :+1: