Configuration for LXD preseed, see https://documentation.ubuntu.com/lxd/en/latest/howto/initialize/#initialize-preseed for supported values.
Changes to this will be re-applied to LXD which will overwrite existing entities or create missing ones, but entities will not be removed by preseed.
Declarations
Type
null or (YAML value)
Default
null
Example
{
networks = [
{
name = "lxdbr0";
type = "bridge";
config = {
"ipv4.address" = "10.0.100.1/24";
"ipv4.nat" = "true";
};
}
];
profiles = [
{
name = "default";
devices = {
eth0 = {
name = "eth0";
network = "lxdbr0";
type = "nic";
};
root = {
path = "/";
pool = "default";
size = "35GiB";
type = "disk";
};
};
}
];
storage_pools = [
{
name = "default";
driver = "dir";
config = {
source = "/var/lib/lxd/storage-pools/default";
};
}
];
}