We are migrating from LXC1 to LXC3. This introduces configuration changes. This scipt migrates only minimal generated config. Anything else is not supported to be migrated.
For reference, this is LXC 1 configuration used for testing:
# Distribution configuration
lxc.arch = armv7l
# Container specific configuration
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /srv/lxc/debian/rootfs
lxc.utsname = debian
# Network configuration
lxc.network.type = veth
lxc.network.link = br-lan
lxc.network.flags = up
lxc.network.name = eth0
lxc.network.script.up = /usr/share/lxc/hooks/tx-off
lxc.network.hwaddr = 52:83:89:7d:af:37
And this is LXC 3 config as a result of running this script:
# Distribution configuration
lxc.arch = armv7l
# Container specific configuration
lxc.rootfs.path = /srv/lxc/debian/rootfs
lxc.uts.name = debian
# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = br-lan
lxc.net.0.flags = up
lxc.net.0.name = eth0
lxc.net.0.hwaddr = 52:83:89:7d:af:37
# Additional container specific configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.hook.start-host = /usr/share/lxc/hooks/systemd-workaround