Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-07-2011, 11:25 AM   #1
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 347

Rep: Reputation: 190Reputation: 190
Announcing lxc-slack

Recently I wrote a tool called lxc-slack to help me create LXC containers without hassle. It has proved to be extremely useful to me, so I decided to share it with others in hope they may find any use of it, too.

I wrote this primarily to create virtual environments for testing my SlackBuilds. VirtualBox and similar virtualisation technologies are too heavy for my needs, because my CPU doesn't have virtualisation extensions and is otherwise not very fast (1.5GHz Core 2 Duo), but I wanted the ability to create snapshots from clean Slackware installation and ditch them after using. lxc-slack does exactly that by utilizing btrfs filesystem subvolume cloning (I created a separate partition for that, as my main ones are jfs).

Basically this script lets you create a Slackware "template" (which is btrfs subvolume) from installation directory (I'm mounting DVD ISO image for that). The template then is used as a base for snapshotting container. This is very quick due to btrfs copy-on-write behavior, it also doesn't take additional disk space until you start modifying the files. The final result is fully configured LXC container, ready to be used.

To get started you need to clone mercurial repository from bitbucket:
$ hg clone
Then edit etc/lxc-slack.conf file and run ./lxc-slack to get help. More information can be found in README.rst.

So far I am very happy with this solution, except that fsck.btrfs takes a long time to do its job on each system boot. Need to check if there's anything I can do about it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem setting up LXC containers wolf0403 Linux - Server 0 05-23-2011 05:11 AM
LXer: Step-by-Step Guide to Install OpenQRM 4.8 in Squeeze/Ubuntu 10.04 with LXC Support LXer Syndicated Linux News 0 04-27-2011 06:20 PM
Linux-Vserver or lxc or anything else vishesh Linux - Server 2 11-19-2010 03:25 PM
LXer: How To Install OpenQRM 4.7 With LXC Containers In Debian Squeeze/Lenny LXer Syndicated Linux News 0 10-22-2010 02:50 PM
vzdump equivalent for lxc containers bigaddo81 Linux - Virtualization and Cloud 0 06-06-2010 08:28 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration