I have a problem with creating new instances with the latest lxd (clustering):
$ snap info lxd
...
installed: 4.6 (17597) 71MB -
When creating new instances suddenly I get the following error:
$ lxc launch ubuntu:focal ubuntu
Creating ubuntu
Error: Failed instance creation: Create instance: Create instance: Invalid devices: Failed detecting root disk device: No root device could be found
Looking at the debug output, it looks like no profile has been included upon creation:
$ lxc launch ubuntu:focal ubuntu --debug
...
Creating ubuntu
DBUG[10-07|12:37:57] Connecting to a remote simplestreams server
DBUG[10-07|12:37:57] Connected to the websocket: ws://unix.socket/1.0/events
DBUG[10-07|12:37:57] Sending request to LXD method=POST url=http://unix.socket/1.0/instances etag=
DBUG[10-07|12:37:57]
{
"architecture": "",
"config": {},
"devices": {},
"ephemeral": false,
"profiles": null,
"stateful": false,
"description": "",
"name": "ubuntu",
"source": {
"type": "image",
"certificate": "",
"alias": "focal",
"server": "https://cloud-images.ubuntu.com/releases",
"protocol": "simplestreams",
"mode": "pull"
},
"instance_type": "",
"type": "container"
}
...
When I manually include the default profile, the instance is created successfully:
$ lxc launch ubuntu:focal ubuntu -p default
Creating ubuntu
Starting ubuntu
Here is my default profile:
~$ lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdfan0
type: nic
root:
path: /
pool: local
type: disk
name: default
Has this behaviour been changed and the default profile is not included by default anymore?