LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-02-2019, 10:54 PM   #1
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,527

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
How does one update the kernel in an LXC container?


I used the Slackdocs article to create a -current container (which worked rather well), but it isn't obvious to me on how I should update the container to realize there is a different kernel that it should use.
 
Old 12-03-2019, 04:24 AM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 596

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
No need to update the container; it uses the kernel of the system it's running in so if you've already updated the system kernel, the container is already "updated".

From https://linuxcontainers.org/lxc/introduction/
Quote:
The goal of LXC is to create an environment as close as possible to a standard Linux installation but without the need for a separate kernel.
 
4 members found this post helpful.
Old 12-03-2019, 07:56 AM   #3
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 569

Rep: Reputation: 172Reputation: 172
If you need to run a different kernel than the host system then LXC is not the right tool. KVM or VB would be ways of running different kernels than the host system.

A quick thank you to cris.willing for his early work with LXC on Slackware. Without it I might still be using KVM which is overkill for my needs.
 
Old 12-03-2019, 11:04 AM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,527

Original Poster
Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Quote:
Originally Posted by chris.willing View Post
No need to update the container; it uses the kernel of the system it's running in so if you've already updated the system kernel, the container is already "updated".

From https://linuxcontainers.org/lxc/introduction/
Hmm, OK. Thank you.
 
Old 12-03-2019, 01:59 PM   #5
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 678

Rep: Reputation: 95
Quote:
Originally Posted by chris.willing View Post
No need to update the container; it uses the kernel of the system it's running in so if you've already updated the system kernel, the container is already "updated".
Is it like chroot jail then? I use a chroot jail for -current play.
 
Old 12-03-2019, 03:08 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,527

Original Poster
Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Somewhat; you can limit the number of CPUs or memory that the container can use with LXC.
 
Old 12-03-2019, 03:47 PM   #7
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 569

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by ozanbaba View Post
Is it like chroot jail then? I use a chroot jail for -current play.
LXC has been described as "chroot on steroids". I use LXC instead of KVM to run isolated Slackware VMs.
 
Old 12-03-2019, 04:23 PM   #8
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,622

Rep: Reputation: 1254Reputation: 1254Reputation: 1254Reputation: 1254Reputation: 1254Reputation: 1254Reputation: 1254Reputation: 1254Reputation: 1254
I personally use it to create a clean environment for builds, as it gives you something that is basically as isolated as a VM but has much less overhead. I haven't found a good way to test GUI stuff within it, though. I think a remote desktop solution is required for that. If anyone has done that, it would make a great addition to the SlackDocs entry.

Last edited by montagdude; 12-03-2019 at 04:24 PM.
 
  


Reply


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
[SOLVED] "lxc list" vs "lxc-ls" yknivag Linux - Virtualization and Cloud 1 03-09-2017 06:53 AM
LXC Container: sound Not working charlie101 Linux - Virtualization and Cloud 10 06-14-2015 12:16 PM
[SOLVED] Outputting X display from inside an LXC Container charlie101 Linux - Virtualization and Cloud 1 02-04-2013 10:41 PM
script to get a lxc-container like iso of current. cod_liver_0il Slackware 1 09-10-2012 12:12 PM
How to end a Linux Container (LXC) from within? Skaperen Linux - Virtualization and Cloud 0 06-14-2011 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration