LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-10-2018, 11:33 PM   #1
SamLinux4
LQ Newbie
 
Registered: Jan 2018
Posts: 1

Rep: Reputation: Disabled
Using LXC containers in embedded systems


Hi,

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, 04:23 AM   #2
simosx
Member
 
Registered: Jul 2005
Posts: 66

Rep: Reputation: 11
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 https://docs.snapcraft.io/core/install on how to install the snap package mananger, then install LXD by running snap install lxd.
 
Old 01-16-2018, 10:23 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
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 10:24 AM.
 
1 members found this post helpful.
  


Reply



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 06:48 AM
[SOLVED] LXC Containers Ping Problem sunveer Linux - Newbie 2 10-16-2013 04:04 AM
[SOLVED] Bridging with lxc-containers problem. scam Slackware 4 09-14-2011 04:52 AM
Problem setting up LXC containers wolf0403 Linux - Server 0 05-23-2011 05:11 AM
vzdump equivalent for lxc containers bigaddo81 Linux - Virtualization and Cloud 0 06-06-2010 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 12:15 AM.

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