r/LXC • • Jul 10 '21

LXC vs LXD | Differences Between You Should Know

Thumbnail
educba.com
1 Upvotes

r/LXC • • Jan 02 '20

ahuacate/proxmox-lxc-smarthome: LXC Smart Home Builds

Thumbnail
github.com
0 Upvotes

r/LXC • • May 26 '23

Proxmox vs. Docker: Best Option to Use in 2023?

Thumbnail
wundertech.net
0 Upvotes

r/LXC • • Oct 17 '15

FIND! Buy Viagra Soft Tabs online no prescription, Viagra Soft Tabs accepted

0 Upvotes

FIND! Buy Viagra Soft Tabs online no prescription, Viagra Soft Tabs accepted

Buy Viagra Soft Tabs Online, Click here! Fast, cheap and discreet delivery.

[​IMG]

Click Here To Buy Viagra Soft Tabs! Great Discounts and Worldwide Shipping!

Tags: Buy Viagra Soft Tabs online without prescription. Buy Viagra Soft Tabs no prescription Buy Viagra Soft Tabs Canada Pharmacy Purchase Viagra Soft Tabs With Mastercard Order Viagra Soft Tabs No Script Viagra Soft Tabs Online Pharmacy Mastercard Cheap Viagra Soft Tabs Free FedEx Shipping Buy Viagra Soft Tabs Cheap Online Buy cheap Viagra Soft Tabs overnight Viagra Soft Tabs Discountes Buy Viagra Soft Tabs Online Generic Pharmacy offers Soft Tabs pills, Generic Viagra Soft Tabs and cheapest Viagra Soft Tabs 100 mg with Free shipping. Viagra Soft Tabs 100Mg Overnight delivery of Viagra Soft Tabs with no prescription Viagra Soft Tabs Directions Buy Viagra Soft Tabs shipped ups Levitra Soft Tabs, Free Levitra Samples - Online Pharmacy ... Buy Viagra Soft Tabs Order Viagra Soft Tabs Without Prescription Super Viagra Soft Tabs Viagra Soft Tabs From Canada NO PRESCRIPTION Buy Cheapest Viagra Soft Tabs With Mastercard Viagra Soft Tabs Overnight Shipping Buy Viagra Soft Tabs Overnight Buy Generic Viagra Soft Tabs cheapest price for viagra ObДЌina Ribnica. Uradna spletna stran . the best viagra pills in india ObДЌina. free cialis no prescription ЕЅupan; canada rx viagra online ... Discount Viagra Online, Cheapest Viagra Tabs - Canadian ... Viagra Soft Tabs no rx overnight Viagra Soft Tabs Vs Viagra Viagra Soft Tabs Delivered Overnight Does Viagra Soft Tabs Work Viagra Soft Tabs FedEx Cheap generic Sildenafil Soft Tabs drugs. Buy discount ...


r/LXC • • Jul 20 '21

Lxc-service-snapshots run disposable (read-only then delete) Linux containers (LXC) to serve up OpenVPN, Pi-Hole, and WireGuard.

Thumbnail
github.com
1 Upvotes

r/LXC • • Jan 08 '23

Is there a wikipedia LXC container out there ?

0 Upvotes

Would also love a chatbot and home assistance with internal voice recognition fully self-contained, maybe something built fully on ssh ?


r/LXC • • Mar 12 '26

GitHub - unraid-lxc-unifi-os: Unifi Server OS in a unraid LXC

Thumbnail
github.com
0 Upvotes

r/LXC • • Jul 14 '21

LXC on Debian Buster: how to mount a host directory into a container

0 Upvotes

My goal is to share a directory on the host (btrfs-storage) with one or two unprivileged LXC-containers.

The host and the containers run Debian Bullseye already.

root@app1:/var/lib/lxc/container1# cat /var/lib/lxc/container1/config 

# Distribution configuration

lxc.include = /usr/share/lxc/config/common.conf
lxc.include = /usr/share/lxc/config/userns.conf
lxc.arch = linux64

# Container specific configuration

lxc.idmap = u 0 100000 2250000
lxc.idmap = g 0 100000 2250000

lxc.start.auto = 0

lxc.cap.drop = mknod sys_rawio syslog wake_alarm sys_time
lxc.rootfs.path = dir:/var/lib/lxc/container1/rootfs

lxc.uts.name = container1

# Network configuration

lxc.net.0.type = veth

lxc.net.0.hwaddr = f2:c5:02:4b:2d:77

https://lxc.net.0.link = lxcbr0

lxc.net.0.flags = up

lxc.mount.entry = /srv/shared/lxc-opt opt none bind 0 0

created by:

# /usr/bin/lxc-create --name container1  --config /etc/lxc/internal-unprivileged.conf --template download --bdev dir -- --dist debian --release bullseye --arch amd64

errors:

Jul 12 18:02:23 app1 audit[3338]: AVC apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-with-mounting" name="/" pid=3338 comm="(d-logind)" flags="rw, rslave"
Jul 12 18:02:23 app1 kernel: audit: type=1400 audit(1626105743.472:101): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-with-mounting" name="/" pid=3338 comm="(d-logind)" flags="rw, rslave"

I tried to turn off apparmor, set "lxc.apparmor.profile = unconfined” etc, no success so far.

Do I need to use another config? Do I have to edit an apparmor profile somewhere?

Maybe someone could provide a working example.

Aside from apparmor:

As far as I know I will have to map a user-id (in my case "www-data" which runs nginx on the host) into the containers? I need to be able to access files/images inside of the container or otherwise store them on the host and mount that dir into the containers (which sounds safer to me).

Thanks for any help here!

EDIT: fix formatting


r/LXC • • May 10 '16

LXD & more on Github

Thumbnail
github.com
0 Upvotes

r/LXC • • Jun 22 '19

Linux Containers (LXC) Networking Deep Dive - Video 002 - LXC veth Adapters and DNSMASQ

Thumbnail
youtube.com
0 Upvotes

r/LXC • • Jun 22 '19

Linux Containers (LXC) Networking Deep Dive - Video 003b - LXC veth Adapters w/Bridge Int. (br0)

Thumbnail
youtube.com
0 Upvotes

r/LXC • • Apr 08 '20

KVM VM to LXD 4.0 VM or container

0 Upvotes

Hi all

Since LXD 4 is now live, what is the best way to convert KVM VMs into LXD VMs or LXC containers.

Is this still the recommended way or has it been superseded?

Interestingly enough all guides and google hits Im getting are upto 6 years old.


r/LXC • • Jun 22 '19

Linux Containers (LXC) Networking Deep Dive - Video 004 - LXC veth Adapters w/iptables Rules

Thumbnail
youtube.com
1 Upvotes

r/LXC • • Nov 03 '23

Rpi4 + Pimox + LXC + OpenMediaVault

1 Upvotes

I installed Proxmox on my Raspberry Pi 4 and created an LXC Debian container with an OpenMediaVault instance. Now everything is working, but how can I connect my physical hard drive by USB 3.0 to OMV? I want to mount the device and not only a mount point.

> ls -al /dev/sd*

brw-rw---- 1 root disk 8, 0 Nov  3 02:03 /dev/sda
brw-rw---- 1 root disk 8, 1 Nov  3 02:03 /dev/sda1

> lsblk -l

NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda         8:0    0 931.5G  0 disk 
sda1        8:1    0 931.5G  0 part /mnt/myharddisk

> ls -al /dev/disk/by-uuid/ | grep sda*
lrwxrwxrwx 1 root root  10 Nov  3 02:03 5b1a451e-c349-4e91-b125-38ee04fb73d1 -> ../../sda1

LXC Container Configuration

> cat /etc/pve/lxc/103.conf 

arch: arm64
cores: 2
hostname: omvnas
memory: 1024
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=8A:FE:12:38:67:58,ip=192.168.1.102/24,type=veth
ostype: debian
rootfs: local:103/vm-103-disk-0.raw,size=8G
swap: 128
lxc.mount.auto: cgroup:rw
lxc.mount.auto: proc:rw
lxc.mount.auto: sys:rw
lxc.cgroup.devices.allow: b 8:0 rwm
lxc.cgroup.devices.allow: b 8:1 rwm
lxc.autodev: 1
lxc.hook.autodev: /var/lib/lxc/103/mount-hook.sh
lxc.mount.entry: /mnt/myharddrive media/myharddrive none bind,create=dir,optional 0 0

> cat /var/lib/lxc/103/mount-hook.sh
#!/bin/sh
mknod -m 777 ${LXC_ROOTFS_MOUNT}/dev/sda b 8 0
mknod -m 777 ${LXC_ROOTFS_MOUNT}/dev/sda1 b 8 1

Result

pct start 103 --debug

but obtain in to shell

ERROR utils - ../src/lxc/utils.c:safe_mount:1221 - No such file or directory - Failed to mount "/mnt/myharddrive" onto "/usr/lib/aarch64-linux-gnu/lxc/rootfs/media/myharddrive"

Instead into OMV -> Storage -> Disks obtain this message : https://ibb.co/C5MwKts

Anyone have experience mounting a physical hard drive in an LXC container?


r/LXC • • Apr 22 '15

LXC Rest API

Thumbnail
github.com
1 Upvotes

r/LXC • • Mar 21 '17

Miquiloni - a Web User Interface to do very easy Provisioning and manage of the High Performance Linux Containers.

Thumbnail
miquiloni.org
1 Upvotes

r/LXC • • Sep 02 '15

Multiple Desktop Environments with LXC

1 Upvotes

I ran across this recently and thought it useful. Multiple Desktop Environments with LXC shows you how to setup your LXC host machine so that you can have LXC containers accessible as additional/separate Desktop environments just by pressing the <Ctrl><Alt><fn_8> keys just as you would to switch to another terminal.

Use cases

  • testing other Desktop Environments or having a 2nd running but separate/distinct from your primary Desktop.

  • testing w/different Distro's... (w/lxc they will run same Kernel as your Host tho). LXC has templates for Centos, Oracle, Ubuntu, etc.

  • any other thing you can think of where you want essentially a VM that is taking almost no resources yet always running.


r/LXC • • Jun 12 '19

Newbie questions

1 Upvotes

Hi,

I started playing with docker some weeks ago and now I'm trying LXC.

The main difference I see is I need to set some parameters like how much memory and disk space.

I suppose these parameters aren't allocated right away ? Like if I set a container with 8gb disk space, it's the maximum it can take but it won't reserved that space right away on the disk ? It will grow over time ? Like thin and thick in VMware ? Memory must be the same ?

What I find difficult is knowing how much memory and disk space I should configure for a container. Since there are very small linux, it's not the same specs...

Any tips ? what are the best practices ?

thanks


r/LXC • • Feb 07 '24

Carry On

Thumbnail
music.apple.com
0 Upvotes

r/LXC • • Feb 05 '24

MLSFAW

Thumbnail
youtube.com
0 Upvotes

r/LXC • • Sep 11 '25

Mesh Linux Containers - scripts to experience mesh-like virtual networks using LXC

Thumbnail
github.com
1 Upvotes

r/LXC • • 25d ago

6 Must-Have LXC Containers for Your Proxmox Homelab

Thumbnail
proxmoxpulse.com
2 Upvotes

r/LXC • • Oct 06 '14

Flockport releases multi-domain mail server with GUI management, Roundcube webmail, IMAP and POP, based on LXC

Thumbnail
flockport.com
2 Upvotes

r/LXC • • Jan 06 '17

external thread on How To convert an LXC container to LXD

2 Upvotes

This thread is from 6 months ago but if you look at the end of it you can read where Fajar Nugraha describes "how to" convert an LXC (lxc1) to an LXD (lxc2) container:

https://lists.linuxcontainers.org/pipermail/lxc-users/2016-July/012000.html

There's a script to convert lxc -> lxd somewhere on this list, but I usually do things manually: 

(1) create a container in lxd. Start it, stop it, then look at its uid mapping (i.e. "which u/gid owns /var/lib/lxd/containers /container_name/rootfs") 
(2) use fuidshift with "-r" to shift your lxc container u/gid back to privileged, using the starting u/gid value in your original lxc config (should be 951968) 
(3) use fuidshift again, but this time without "-r", to shift your lxc container to unprivileged, using the starting u/gid value from (1) 
(4) move your new lxd container's original rootfs somewhere else (or delete it if you want), then replace it with rootfs from (3) 
(5) start your lxd containers