• Renaming An LXC Container

    From Lawrence D'Oliveiro@21:1/5 to All on Tue Feb 18 02:52:11 2025
    Rename of container from «oldname» to «newname»:

    * Ensure container is stopped
    * Rename container directory from /var/lib/lxc/«oldname» to
    /var/lib/lxc/«newname»
    * Change name in /var/lib/lxc/«newname»/config, in entries for
    lxc.rootfs.path and lxc.uts.name.
    * Change container’s host name in its /etc/hostname and /etc/hosts.
    * Container should now start under new name.

    (Thought others might find this useful.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)