LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-05-2021, 06:52 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,857

Rep: Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334
Slackware server -- container options?


Interested to hear what people use to "jail" services on their Slackware servers.

About a decade ago I set up NetBSD as a lightweight Xen host (dom0) with multiple Xen Linux and NetBSD guests (domU) spun off for different services. DNS, web, mail, VPN, etc.

It was an interesting learning exercise, and I would be happy to set up my VPS server this way again if necessary.

Before doing that, however, I would like to hear what people use on Slackware. I'm familiar with KVM/Qemu, but not with Slackware as a host (or guest) for OpenVZ, LXC, Docker, and so on. I have no familiarity with these at all, although from the little I've read it seems there are lingering security concerns with Docker and Kubernetes that I certainly want to avoid.

I was surprised to see that OpenVZ is not listed at slackbuilds dot org. Is it not used these days? LXC seems to be an Ubuntu thing, which doesn't particularly appeal to me.
 
Old 04-05-2021, 11:52 PM   #2
giomat
Member
 
Registered: Jul 2017
Posts: 149

Rep: Reputation: Disabled
Regarding lxc, thats something that works with every Linux, and Slackware Is as good as any other distro to host lxc containers.
The ubuntu thing you mention is probably LXD, that is an interface made by canonical to manage lxc containers, but underneath it's just lxc.
 
1 members found this post helpful.
Old 04-06-2021, 04:46 AM   #3
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 86

Rep: Reputation: 16
This just one of the several hypervisor server running slackware64.
https://imgur.com/w5a81S3
 
Old 04-06-2021, 08:37 AM   #4
bw42
Member
 
Registered: Feb 2011
Posts: 42

Rep: Reputation: 30
My current server I'm using QEMU+KVM to run virtual machines.

My new server I'm working to build is moving to LXC.

I'm currently using LXC on my desktop to work on building packages.
It seems to work well, though I need to work on fine tuning the cgroups for resource sharing.
 
Old 04-06-2021, 08:41 AM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,857

Original Poster
Rep: Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334Reputation: 1334
Quote:
Originally Posted by giomat View Post
Regarding lxc, thats something that works with every Linux, and Slackware Is as good as any other distro to host lxc containers.
The ubuntu thing you mention is probably LXD, that is an interface made by canonical to manage lxc containers, but underneath it's just lxc.
Thanks. For some reason I thought LXC was Canonical.

I see that Virtuozzo was involved in creating LXC. Does that mean they have given up on OpenVZ? There doesn't seem to be anything about running Slackware as an OpenVZ host.

Another question : how do people go about exporting storage to a LXC container? NFS?

If you have, for example, a container running Seafile or NextCloud, and want to export virtually all your storage to the container, do you allocate it specifically to the container or just run a NFS server on the host?

Sorry for the questions. It's all a bit new to me.
 
Old 04-08-2021, 03:49 AM   #6
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 381

Rep: Reputation: 253Reputation: 253Reputation: 253
Quote:
Originally Posted by Gerard Lally View Post
If you have, for example, a container running Seafile or NextCloud, and want to export virtually all your storage to the container, do you allocate it specifically to the container or just run a NFS server on the host?
You may bind-mount a folder from you host in the container for example. For other options, you may see an lxc-container almost like a complete virtualization with it's own network/namespace where could mount something with sshfs or whatever.
 
1 members found this post helpful.
Old 04-08-2021, 08:32 AM   #7
Olek
Member
 
Registered: Jul 2012
Location: Wroclaw Poland
Distribution: Slackware
Posts: 87

Rep: Reputation: 15
Quote:
Originally Posted by franzen View Post
You may bind-mount a folder from you host in the container for example. For other options, you may see an lxc-container almost like a complete virtualization with it's own network/namespace where could mount something with sshfs or whatever.
There is Sharing Directories with the Host chapter in this howto:
https://docs.slackware.com/howtos:mi..._with_the_host
 
Old 04-08-2021, 11:54 AM   #8
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 726

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by Gerard Lally View Post
... Another question : how do people go about exporting storage to a LXC container? NFS?

If you have, for example, a container running Seafile or NextCloud, and want to export virtually all your storage to the container, do you allocate it specifically to the container or just run a NFS server on the host?
I'm currently using LVM and assigning LVs to each LXC container. That way I can grow or shrink containers using LVM.
 
  


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
LXer: Technology preview: Running a container inside a container LXer Syndicated Linux News 0 03-16-2021 07:54 PM
LXer: Meet Super Container OS, a Debian-Based Live Distro with a Built-In Container Engine LXer Syndicated Linux News 0 08-04-2020 11:24 AM
linux container host os and container os question jzoudavy Linux - Newbie 1 09-01-2015 05:21 AM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM

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

All times are GMT -5. The time now is 02:34 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
Open Source Consulting | Domain Registration