6. Stop LXC Linux Container using lxc-stop

To stop your LXC linux container use lxc-stop as shown below, and specify the container name that you like to stop.

# lxc-stop -n MyCentOSContainer1

7. Clone an Existing Container using lxc-clone

Cloning is useful when you want to take a snapshot of the old container before you make any changes to the configuration on the container. You can use this as a simple backup method for container configuration.

Cloning the container can be done using lxc-clone command as shown below. In this case, the new container name is MyCentOSContainer2

I set this up on Arch Linux and was trying to login using the ‘lxc-console -n MyCentOSContainer1’ command. I tried logging in using both ‘root’ and ‘admin’ to login without success. I’m stuck on this step. Please help.

About The Geek Stuff

My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about Ramesh Natarajan and the blog.

Contact Us

Email Me :
Use this Contact Form to get in touch me with your comments, questions or suggestions about this site. You can also simply drop me a line to say hello!.