Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 818 Bytes
upgrade LXC from v2 to v3
https://discuss.linuxcontainers.org/t/lxc-3-0-0-has-been-released/1449
https://discuss.linuxcontainers.org/t/lxc-2-1-has-been-released/487
most useful command: lxc-update-config -c /path/to/config
config syntax change
* rootfs: v2 need two entries (lxc.rootfs & lxc.rootfs.backend) merged into one in v3 (lxc.rootfs.path)
** v2: lxc.rootfs = /var/lib/lxc/{vmname}/rootfs
** v2: lxc.rootfs.backend = dir
** v3: lxc.rootfs.path = dir:/var/lib/lxc/{vmname}/rootfs
* networking: v2 automatically assign ID, v3 need explicit ID
** v2: lxc.network.type = veth
** v3: lxc.net.0.type = veth
* box name
** v2: lxc.utsname = {vmname}
** v3: lxc.uts.name = {vmname}
* obsolete in v3
** lxc.pivotdir
** lxc.devttydir
** lxc.tty
** lxc.pts
** lxc.id_map # can't run unprivileged container without this