Questions tagged [lxc]

LXC short for (Linux Containers) LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. LXC is the userspace control package for Linux Containers, a lightweight virtual system mechanism sometimes described as “chroot on steroids”.

0
votes
1answer
331 views

Is it possible to migrate a LXC Container from Ubuntu to libvirt-lxc (SLES)

i'm currently investigating a Scenario, where a LXC Container, which was created on Ubuntu, is supposed to be migrated to a Container on SLES. Is there a way to do that? Are there any Tools one could ...
1
vote
1answer
984 views

Could not set limit for 'nofile' - “Operation not permitted” in a LXD unprivileged container

I am running a centos7 unprivileged LXD container on a ubuntu 17.04 host. I have a problem setting ulimit for NOFILE inside the container, if it is running in unprivileged mode. Bellow are the steps ...
1
vote
1answer
781 views

How do I edit LXC/LXD's raw.lxc config key?

I corrupted my raw.lxc key trying to setup lcd/lxc on ubuntu server(15.10 Wiley) by writing some junk to it. Image related lxc commands now return: 'error: problem applying raw.lxc, perhaps there is ...
2
votes
1answer
236 views

Centos lxc container won't start on Ubuntu 14.10

I am trying to run Centos containers in Ubuntu 14.10 Utopic and also Ubuntu 14.04 trusty. I created the container in several different ways and no matter what it won't start and spits those lines: # ...
0
votes
1answer
312 views

LXC container ignores etc/hosts

I'm trying to map a hostname to a ip address on a lxc container because the hostname will not be resolvable by DNS. The lxc.conf of the container contains lxc.mount.entry = /sas/mycontainer/etc/hosts ...
2
votes
2answers
19k views

SLES DHCP Dynamic DNS: Unable to add forward map…: not found

I have a SUSE Linux Enterprise Server 11.3 install running on Amazon EC2 based off the official AMI. With DHCP and BIND configured (via yast) I'm having issues with Dynamic DNS. When a client ...
1
vote
1answer
693 views

Can't ping my LXC container

I have set up a linux container on my server. The problem I have right now is that I cannot ping my linux container from my laptop, but I can ping the hypervisor. I created the LXC by using: lxc-...
1
vote
1answer
96 views

How to assign an IPv4 address to a second network interface of an LXC container?

I am running an lxc container which I want to connect to two different bridges (br0 and br1). When I configure the container's config file (/var/lib/lxc/testcontainer/config) as shown below, only the ...
1
vote
1answer
763 views

How to open the console of a container as a non-root user in LXD 2.0

I'm new to container things and fiddling with LXD-2.0 on an ubuntu-16.04 host with a Alpine3.4 container. Questions: How to open the console of the container with a non-root user? lxc exec ...
1
vote
1answer
362 views

How do I change default MTU for lxdbr0 for containers created using LXD?

I'm running Linux containers created by LXD on Ubuntu 14.04.05. I have a lxdbr0 interface setup, but its default MTU is 1500. How do I update it?
0
votes
1answer
793 views

Zabbix not detecting free swap space in linux container (LXC)

I have an LXC container that has 4GB of swap, most of which is free: # swapon -s Filename Type Size Used Priority none ...
1
vote
2answers
664 views

FreeIPA client on LXC container sshd access denied

On Proxmox 4.4 I installed Centos 7 VM with FreeIPA server: ipa-server-install --idstart 10000 --setup-dns I can use IPA users and log in to other VMs on Proxmox, but when I try same for Centos 7 ...
0
votes
1answer
7k views

Proxmox. ERROR: Backup of VM 210 failed - CT is locked (backup)

I try to create backup of the container (LXC) in my Proxmox and I get the error: INFO: starting new backup job: vzdump 206 --node myserver --mode snapshot --storage backups-stor --remove 0 --compress ...
0
votes
1answer
127 views

LXD: attaching to running container not accessible through lxc command

A broken update left one of my containers inaccessible from lxc command but I can login (ssh) into it. I have an old snapshot but there is one file (a key file), only read by root, which I need from ...
4
votes
1answer
1k views

Cannot port forward with UFW on Ubuntu

I am trying to get port fowarding to work to expose a LXC container, when using ufw on Ubuntu, but to no avail. I have constructed the following workflow from guides around the Internet ([1][2][3]); ...
0
votes
1answer
131 views

Access KVM Guest from LXC Container (lxcbr0 -> host -> virbr0)

I am trying to access a Windows Guest on KVM from a Linux Guest in an LXC container. Specifically, I only need to be able to access one port (TCP 4949 / munin) from said LXC container. LXC is set up ...
0
votes
1answer
968 views

Dovecot auth-worker permission denied to PAM and even /dev/log

Problem I have a problem dovecot authenticating users via pam_sss.so (in an LXC container, which may be related or may be not). # doveadm auth login semenov Password: passdb: semenov auth failed ...
1
vote
1answer
2k views

Backup LXD container to an other LXD host

I have two servers A and B which are running Ubuntu 16.04 and an RAID1 ZFS file system for LXD. At the moment there are a few containers running on server A. Now my idea to make nightly backups from ...
0
votes
0answers
685 views

LXC CentOS Container does not work with multiple IP addresses

Hoping someone can help me as i've been pulling out the only hair I have left (which is not much) trying to figure this out. I'm unable to assign multiple IPs to any CentOS 7 container, only the ...
3
votes
0answers
88 views

Libvirt LXC leaked processes

I'm trying to run several lxc containers on an ubuntu 16.04 server. (libvirt version is 1.3.1). The nature of my team's use of these containers means that they are constantly booting and then being ...
2
votes
2answers
1k views

LXC/LXD install operating system from custom dvd image

I have a dvd image which is a custom installer for OpenSuSE. My PC is running Ubuntu 16.04. I want to install a new virtual operating system with this image. Since I would like to have a ...
3
votes
1answer
5k views

IPv6 Neighbor Discovery/Routing Failing for Kernel 3.10

Stupid mistakes led to all of this, read Update 5 I'm trying to setup a Linux Router (LXC, 3.10.0-123.el7.x86_64) with IPv6. The provider is Hetzner and I got 2 subnets, one /56 and a /64. They have ...
1
vote
1answer
99 views

Best way to containerize an existing PHP/MySQL app into customer tenants

I have a normal Apache/MySQL serving a webapp that companies and users of those companies log in to. So everyone from all the companies are in the same Users table. Whilst my code does try to keep ...
0
votes
1answer
826 views

Why lxc container doesn't execute config files on /etc/sysctl.d?

My host is Ubuntu 16.04.1 LTS with privileged container. I want to disable ipv6 of container, so I created a config file on /etc/sysctl.d/60-disable-ipv6.conf, I have tried lxc-start and lxc-stop -r ...
0
votes
0answers
378 views

Unprivileged lxc container versus AppArmor

I want to run several instances of apache2 (2.4 to be precise) with php 7 (libapache2-mod-php7.0) under debian stretch. Is it more secure to run every instance (with its own config) in its own ...
9
votes
2answers
16k views

Limit memory and cpu with lxc-execute

I would like to isolate processes using lxc-execute. Is it possible to set bandwidth, cpu and memory limit? I had a look in the man of lxc.conf but I did not find it exhaustive.
1
vote
2answers
1k views

lxc-net doesn't like static ip for a bridged container

I've just started to use LXC containers and I found that even if I set a particular ip address on lxc container config file, lxc-ls --fancy shows always another ip, which is pingable and the /etc/...
3
votes
2answers
3k views

LXD 2.0 on Debian 8.4

I'm running Debian 8.4 and would like to set-up recently released LXD 2.0. Is this feasible, or should I stick with LXC? It seems all focus is on using LXD with Ubuntu.
1
vote
1answer
692 views

ip_conntrack_ftp inside LXC

ProFTPd instance on a LXC container behind NAT LXC container is using bridged networking PassivePorts 60000 61000 has been defined in proftpd.conf nf_nat_ftp and nf_conntrack_ftp loaded on the host ...
10
votes
3answers
17k views

LXC container not starting

My CentOS LXC containers are not starting anymore on an Ubuntu 14.10 machine. I think that the problem started after a reboot, but I am not sure. I had a similar problem after an yum update, when the ...
1
vote
0answers
42 views

Unable to start lxc container with -f

I'm trying to migrate some lxc containers from lxc 1.1 on Ubuntu 14.04 to lxc 2.0 on Ubuntu 16.04. Our scripts don't ever call lxc-create, but invoke the containers directly with lxc-start and a ...
2
votes
1answer
545 views

Executing Cuda script in LXC container results in “cuda error: no CUDA-capable device is detected”

I followed the following instructions in order to set up Cuda inside an LXC container. When I try to execute the sample ./deviceQuery script inside the container following error is returned: $ ./...
0
votes
0answers
2k views

Monitoring Proxmox LXC with Zabbix

Got a zabbix server v3.2. Now trying to set it up to monitor a proxmox node with the help of this code https://github.com/Lelik13a/Zabbix-LXC i`ve imported templates: Template LXC Node and Template ...
1
vote
2answers
2k views

Why is zfs/btrfs recommended for an lxd host?

Note that for maximum performance, it's recommended to have /var/lib/lxd on a btrfs filesystem or setup ZFS or LVM and configure LXD to use a ZFS pool or LVM VG. Source Why is that? I.e. How ...
0
votes
1answer
736 views

LXC - How to assign public ip to a single container

Here is my setup. Host Machine-[Ubuntu 16.04][185.82.xx.xx] Container1 [10.0.8.9] Container2 [10.0.8.100] Container3 [10.0.8.101] Container4 [10.0.8.102] All are working great. Now, I purchased ...
1
vote
1answer
277 views

NAT Masquerading second container network

I have 1 public IP, and would like to share internet connection to LXC containers running Centos (in this setup) the host runs proxmox (debian based). If I understand correctly, i need NAT ...
0
votes
0answers
385 views

How can i move from virtualbox to lxc

I'm a student and i'm trying to replicate a cloud infrastructure of ubuntu Servers for CPU/DISK intensive web applications, that should run above multiple dedicated servers. I've started with ...
2
votes
1answer
1k views

Where are network namespaces in lxc / lxd?

I am trying to understand namespaces in the context of lxd / lxc. I have two containers which respective eth0 is bridged to br1 and br2 on the host. This is done via a Virtual Ethernet interfaces ...
5
votes
3answers
7k views

Copy lxd containers between hosts

I've installed lxd on two ubuntu hosts that can only communicate via an intermediate server (on which I don't have su privileges). I've created a container on my localhost and now wish to load the ...
0
votes
1answer
583 views

iptables SNAT & masquerade to separate public IP for LXC containers

Almost embarrassed to post this but it's one of the few times I can't put in to words (properly) what I'm trying to do and Google it. I have a hosted Ubuntu server with two public IPs. The host ...
1
vote
0answers
226 views

Using net.ipv4.ip_forward=0 for LXC containers causes DUP! ICMP packets on VMs

I run LXC Linux containers and so I have net.ipv4.ip_forward=1 set on the host so that I can ping internet (google.com) from inside the LXC container. However, when I run VirtualBox VMs in the same ...
2
votes
0answers
1k views

Debian container unable to start after migration from OpenVZ to LXC on Proxmox 4

After migrating a Debian 7 OpenVZ CT from Proxmox 3 to a LXC on Proxmox 4 it does not appear to start correctly. Fristly, migration was done by stopping the container on Proxmox 3, backing up to ...
1
vote
0answers
59 views

unable to apply profile LXC

I'm using LXC on Ubuntu Ubuntu 14.04.4 LTS, and I'm performing the following operations as unprivileged user. $lxc config profile create privileged $lxc config profile set privileged security....
0
votes
1answer
552 views

Accessing php-fpm installed in a lxc container

Looking for a way to access PHP7-FPM in an LXC container and PHP5-FPM in an other while NGINX is installed on the host. The idea is to serve https://www.example.com/ with PHP7 and https://www.example....
2
votes
2answers
396 views

Amazon EC2/VPC LXC Bridge not working

On an AWS EC2 instance I like to host LXC containers as kind of virtual servers. I created a bridge (br0) containing only eth0 and gave it the private ip of my VPCs subnet. I reconfigured LXC not to ...
0
votes
1answer
44 views

What is stored on a LVM LogicalVolume

I have setup a LXC container with LVM as backingstore. On the host the command lvs --units m outputs the following: LV VG Attr LSize Pool Origin Data% Move Log Copy% ...
0
votes
1answer
592 views

Possible ways to automate post installation in lxc containers

I'm having difficulty overseeing the possibilities of howto deploy an application on to a fresh LXC container. Say I have a fresh LXC container, how would I provision it with my to-be deployed ...
2
votes
1answer
145 views

Why LXC requires restart?

LXC documentation says: Just before you create your first container, you probably should logout and login again, or even reboot your machine to make sure that your user is placed in the right ...
1
vote
1answer
609 views

Using aliased bond interface on host by an lxc container

As the title says, how do I edit the lxc container's configuration to use the aliased bond0 interface on the host? This is what I have in the /etc/network/interfaces file now: # The loopback network ...
1
vote
1answer
62 views

Why host stops when halting LXC guest?

I'm following these directions to create an LXC box on Debian 7 (wheezy): http://fabiorehm.com/blog/2013/07/18/crafting-your-own-vagrant-lxc-base-box/ I start a container/guest using this command: ...