lxd.init(1)

lxd.init1

Configure the lxd daemon

Usage

lxd init [flags]

Overview

Description:
Configure the LXD daemon

Options

--auto[=false]
Automatic (non-interactive) mode

--dump[=false]
Dump YAML config to stdout

--minimal[=false]
Minimal configuration (non-interactive)

--network-address=""
Address to bind LXD to (default: none)``

--network-port=-1
Port to bind LXD to (default: 8443)``

--preseed[=false]
Pre-seed mode, expects YAML config from stdin

--storage-backend=""
Storage backend to use (btrfs, dir, lvm or zfs, default: dir)``

--storage-create-device=""
Setup device based storage using DEVICE``

--storage-create-loop=-1
Setup loop based storage with SIZE in GiB``

--storage-pool=""
Storage pool to use or create``

--trust-password=""
Password required to add new clients``

Options inherited from parent commands

-d, --debug[=false]
Show all debug messages

-h, --help[=false]
Print help

--logfile=""
Path to the log file``

--syslog[=false]
Log to syslog

--trace=[]
Log tracing targets``

-v, --verbose[=false]
Show all information messages

--version[=false]
Print version number

Examples

  init --minimal
  init --auto [--network-address=IP] [--network-port=8443] [--storage-backend=dir]
              [--storage-create-device=DEVICE] [--storage-create-loop=SIZE]
              [--storage-pool=POOL] [--trust-password=PASSWORD]
  init --preseed
  init --dump

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

History

27-Jun-2026 Auto generated by spf13/cobra

From lxd 5.0.2+git20231211.1364ae4-9+deb13u7 in Debian 13 (Trixie). Parsed by carta from the page's man source.