Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Containers
User Name
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.


  Search this Thread
Old 01-11-2018, 12:33 AM   #1
LQ Newbie
Registered: Jan 2018
Posts: 1

Rep: Reputation: Disabled
Using LXC containers in embedded systems


Iím new to LXC containers. Iím wondering whether LXC containers could be utilized in embedded Linux systems without less overhead. This container would have one service running along with one background process.

Also, can using containers cost performance in embedded systems?
Old 01-15-2018, 05:23 AM   #2
Registered: Jul 2005
Posts: 59

Rep: Reputation: 10
There are people that use LXD (LXC containers managed by the LXD hypervisor) on embedded systems.
I think it gives the best performance / easy of use. Since you have a very specific use-case, you can customize quite a bit.

Some things to note:

1. When installing LXD, you select the storage backend, which is the location to store the container files.
The simplest storage backend is dir, which means that it does not use some special filesystem (like ZFS or btrfs).
Because your use-case is very specific, you might be OK with dir. A disadvantage of dir is that the creation of a container can be slow; you would not mind because you create just a single container.

2. LXD works best if your Linux kernel has proper AppArmor support. If you can select Ubuntu for the host, it would be the easiest choice.
The alternative is to use LXD as a snap package. See at on how to install the snap package mananger, then install LXD by running snap install lxd.
Old 01-16-2018, 11:23 AM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170
Containers would only need to come into play if one or the other process needs isolation from the host environment or other containers. Because, that's really what container technology is all about: containers marshal several exotic features that have been engineered into the Linux kernel and makes them manageable.

Containers really don't have a "performance" impact because a container is basically a very clever illusion: a set of rose-colored glasses and a straitjacket that the applications don't even know (care ...) that they are wearing. Underneath the hood, the processes are actually being run directly by the host Linux system.

Last edited by sundialsvcs; 01-16-2018 at 11:24 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] iptables rules for two different lxc containers netpumber Linux - Server 20 05-18-2017 07:48 AM
[SOLVED] LXC Containers Ping Problem sunveer Linux - Newbie 2 10-16-2013 05:04 AM
[SOLVED] Bridging with lxc-containers problem. scam Slackware 4 09-14-2011 05:52 AM
Problem setting up LXC containers wolf0403 Linux - Server 0 05-23-2011 06:11 AM
vzdump equivalent for lxc containers bigaddo81 Linux - Virtualization and Cloud 0 06-06-2010 09:28 PM > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 09:06 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