wiki:lxc_commands
This is an old revision of the document!
Table of Contents
lxc commands
create centos 6
lxc-create -n bitrix-dev -t centos -- -R 6
create debian wheezy container
lxc-create -n <contname> -t debian -- -r wheezy
LXC rename container
1. Shutdown container
lxc-stop -n <containername>
2. Open Terminal/Shell, Rename container root directory
sudo mv /var/lib/lxc/oldname /var/lib/lxc/newname
3. Rename hostname and paths in config
sudo vim /var/lib/lxc/newname/config
lxc.utsname = newname lxc.rootfs = /var/lib/lxc/newname/rootfs lxc.mount = /var/lib/lxc/newname/fstab
Tested on
See also
References
wiki/lxc_commands.1665221755.txt.gz · Last modified: 2022/10/08 09:35 by antisa