lxc-update-config(1)

lxc-update-config1

Update a legacy pre lxc 2.1 configuration file

Usage

lxc-update-config -c config

Overview

lxc-update-config detects any legacy configuration keys in the given config file and will replace them with the appropriate new configuration keys.

lxc-update-config will first create a backup of the old config file in the same directory and name it config.backup and then update the original config file in place. In case the update fails to apply or leads to an invalid config file that cannot be used to start a container users can either compare config with config.backup and try to manually repair any the invalid configuration keys or simply rollback to the legacy configuration file by copying config.backup to config.

Any failures for lxc-update-config to generate a useable config file are a bug and should be reported upstream.

Options

FC-c, --configF[0]

Path to the configuration file to update.

FC-h, --helpF[0]

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From lxc 1:7.0.0-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.