VERSION:(8)
β¨ NAME β¨
lxctl β utility to manage Linux Containers (LXC) π«Ά
okay so bestie, this is the manual page for lxctl, from the VERSION:(8) section of the System Administration Utilities β and yes it manages Linux Containers, no cap π
π DESCRIPTION π
π Usage
lxctl [action] [vmname] [options]
that's the whole vibe: you pick an action, you point it at a vmname, and then you sprinkle on some options. iconic behavior honestly πΈ
π OPTIONS π
--helpβ prints a brief help message and exits π«Ά (short, sweet, slays)--manβ prints the manual page and exits π (it's giving "read the docs, bestie")
π start
Starts the container specified in the 1st argument π
Required arguments
vmnameβ name of the container
π¦ stop
Stops the container specified in the 1st argument π
Required arguments
vmnameβ name of the container
π create
Creates a container β¨ (fresh out the box, main character energy)
Required arguments
vmnameβ name of the container
Optional arguments
--ipaddrβ IP address of the machine--mask/netmaskβ network mask of the machine--defgwβ default gateway of the machine--dnsβ primary DNS server--ostemplateβ template name, by default it islucid_amd64--configβ path to configuration file, by default/etc/lxc/<container name>is used--rootβ path to root file system, by default/var/lib/lxctl/<container name>is used--addpkgβ list of additional packages (comma-separated)--pkgoptβ list of additional packet manager options (space-separated, but as one argument)--rootszβ size of logical volume for root FS, by default it is10G--hostnameβ sets the hostname of the machine, by default<container name>is used--searchdomainβ set a custom searchdomain in/etc/resolv.conf--macaddrβ set the custom mac address of the container--autostartβ autostart container each reboot host machine--no-saveβ do not save yaml config for new container, by default$CONF_PATH/vmname.yamlis used--loadβ create container from yaml config--debugβ show more information about install process--tzβ set custom timezone (Europe/Moscow, UTC, etc)--emptyβ create a clear container for migrate here
π set
Changes container parameters π§ (glow-up mode)
Required arguments
vmnameβ name of the container
Optional arguments
--rootszβ increment of size of logical volume for root FS--ipaddrβ IP address of the machine--mask/netmaskβ network mask of the machine--defgwβ default gateway of the machine--dnsβ primary DNS server--hostnameβ sets the hostname of the machine--searchdomainβ set a custom searchdomain in/etc/resolv.conf--macaddrβ set the custom mac address of the container--userpasswd user:passwdβ sets password for given user--onboot {yes,no}β makes container [do not] start at boot--tzβ set custom timezone (Europe/Moscow, UTC, etc)--cpu-sharesβ sets the CPU share of the container--cpusβ sets the CPU cores of the container--memβ sets the memory share of the container (in bytes!)--ioβ sets the IO share of the container
π§ freeze
Freezes container π₯Ά
Required arguments
vmnameβ name of the container
unfreeze
Unfreezes container π₯ (thaw her out)
Required arguments
vmnameβ name of the container
πΈ list
Lists all containers π
Optional arguments
--ipaddrβ display with IP addr--hostnameβ display with hostname.--cgroupβ display with cgroup--mountβ display with mount point for rootfs--diskspaceβ display with free/full size--allβ display all information--rawβ display only vmnames
π migrate
Migrate container from localhost to remote host.
Required arguments
--vmnameβ container name--tohostβ to which host we should migrate
Optional arguments
--remuserβ remote username for ssh--remportβ remote port for ssh--remnameβ remote container name--onbootβ start on boot? 1 or 0--userpasswdβ'user:password'formatted password for user--cloneβ cloning, a little bit faster and softer then simple migration--rootszβ remote root fs size--afterstartβ start local container again after migration--cpusβ cpus allocated to container--cpu-sharesβ cpu time share of the container--memβ memory limit of the container--ioβ IO throughput--ipaddrβ IP of the remote container--searchdomainβ DNS search domain of the container--netmaskβ network mask--defgwβ default gateway--dnsβ DNS server
πͺ vz2lxc
Migrate VZ-container from remote host to local LXC container.
Required arguments
--vmnameβ container name--fromhostβ from which host we should migrate--remnameβ remote container name
Optional arguments
--remuserβ remote username for ssh--remportβ remote port for ssh--onbootβ start on boot? 1 or 0--rootszβ remote root fs size--afterstartβ start local container again after migration--cpusβ cpus allocated to container--cpu-sharesβ cpu time share of the container--memβ memory limit of the container--ioβ IO throughput
π SEE ALSO π
The full documentation for Version: is maintained as a Texinfo manual. If the info and Version: programs are properly installed at your site, the command
info Version:
should give you access to the complete manual. πβ¨
and that's the whole page, bestie!! this lil cutie is Version: 0.3.0, dated June 2012, hanging out in section VERSION:(8) of the System Administration Utilities π go forth and container-ify, you got this π«Άπ
π¦ where this page comes from
- debian bookworm: lxctl 0.3.1+debian-5 Β· GPL-2.0-or-later OR Artistic-1.0
- debian trixie: lxctl 0.3.1+debian-6 Β· GPL-2.0-or-later OR Artistic-1.0
- ubuntu noble: lxctl 0.3.1+debian-6 Β· GPL-2.0-or-later OR Artistic-1.0
- ubuntu questing: lxctl 0.3.1+debian-6
- ubuntu resolute: lxctl 0.3.1+debian-6build1 Β· GPL-2.0-or-later OR Artistic-1.0
- ubuntu stonking: lxctl 0.3.1+debian-6build1 Β· GPL-2.0-or-later OR Artistic-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms