Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
10 views

How to disable lxc container login prompt on centos 7

I have created an LXC container on CentOS 7. Every time I do sudo lxc-start -n mycontainer I'm greeted with a login prompt: ... [ OK ] Started Console Getty. [ OK ] Started Command Scheduler. [ ...
-3
votes
1answer
193 views

Empty passphrase created ssh key-pair refusing empty passphrase when authenticating [closed]

After @Sarke help I reach that solution: Here the fixed version, the original broken version cant help nobody. About why I need to be able to SSH from one container to the other it that i need ...
0
votes
1answer
25 views

LXC: how this network works?

I don't understand why I can ping between 10.0.3.* and 192.168.1.* if are in different subnets. I search for it but I don't find any that clarifies it to me. I would appreciate any help, docs, ...
0
votes
0answers
177 views

SSH : “Connection reset” for one of my LXC's

I've been stuck for a while about my ssh connection to one of my LXC's. Indeed, when I connect in ssh to my other LXC, everything works. However, one does not want to connect and displays this error: ...
0
votes
1answer
328 views

htop memory usage does not add up with process list

I am using lxd to run multiple containers and having trouble reporting the memory usage: both htop and free shows high memory usage but the list of processes that uses memory is very short and doesn't ...
0
votes
1answer
329 views

PREROUTING to LXC container with iptables

I've set up two containers with lxd, one with haproxy, pointing to the other with nginx. I want my server's incoming traffic on port 80 to go to the container with haproxy. This is the rule I've ...
0
votes
0answers
35 views

Communitaction between lxc contaners running on separate virtualboxes(vagrant)

I have 2 virtualboxes machines (spawned by Vagrant). On each of those machines there are 2 lxc containers. I have communications between virtualbox machines, and I also got communication between lxc ...
0
votes
1answer
53 views

Running containers on top of QEMU

I have a testing setup I'm trying to migrate to using VMs rather than bare metal as much as possible. The existing setup is structured to run everything within containers (LXC, specifically), and it ...
0
votes
1answer
1k views

Internet access from LXC containers in proxmox 5.1 on VirtualBox

I've installed a Proxmox VE 5.1 on a VirtualBox in macOS (10.12). The guess OS, Debian Strech (Proxmox is built on debian), has 2 "physical" network interfaces (configured from VirtualBox), Host-Only ...
0
votes
0answers
343 views

File not found by glob when running rpmbuild

When I try to build LXC on RedHat Linux 7 using rpmbuild command I get these errors. > error: File not found: > /home/orabuntu/rpmbuild/BUILDROOT/lxc-2.1.1-1.el7.x86_64/etc/bash_completion.d &...
1
vote
1answer
100 views

Is there a way to redirect traffic to another port in the event that the service listening to the original port is unresponsive?

This is a rather specific question, but it is one I haven't been able to find an answer to. I'm running a set of services on an LXC container in Ubuntu 16.04 LTS, specifically game servers. However, ...
0
votes
0answers
34 views

Requests from container to another container do not work

I have a dedicated server and installed LXD on it. I created one container for each application and one container as a proxy to the other containers. When a request comes in (to the IP of my dedicated ...
0
votes
1answer
255 views

Accessing LXC root User

I am new to containers and am trying figure them out. I cannot figure out how to log in as root user on the container. I cannot get it to accept the temporary password or to change the password. (...
0
votes
1answer
171 views

Prevent LXC container from remounting host file system

Recently, I started looking at LXC as a virtualization platform. I have already created a container, and set it up to use via libvirt. This works so far, but when I shut down the container, /var/lib/...
0
votes
1answer
48 views

Tee causes format problems at console when running lxc-attach commands in session

I use tee to capture output of an install script to a file in the usual way. All is fine except when there lxc-attach commands executing in an LXC Linux container. For example (see attached ...
0
votes
1answer
1k views

How to ssh from one lxc container to another?

I'm trying to experiment with a small virtual cluster of machines to learn hadoop. I'm using LXD for this purpose. I've installed ssh servers on each vm and now need to connect from one vm to another. ...
1
vote
2answers
2k views

Copy files from LXC to host machine

I'm new to containers. I have a LXC container running on a remote linux machine. All I found online is how to copy files from host to LXC container. But how can I copy files from a running LXC ...
0
votes
1answer
294 views

LXD container on GlusterFS

I'm trying to add a container created with LXC (v2.0) into a GlusterFS (v3.12) mount. So I tried to mount /var/lib/lxd/containers prior to creating the container, obviously I got the error message ...
0
votes
1answer
573 views

Unable to SSH to LXC Ubuntu container

I'm trying to connect from a CentOS host to my LXC Ubuntu container and it fails with this error: packet_write_wait: Connection to 192.168.122.92 port 22: Broken pipe The CentOS I'm using is: ...
0
votes
0answers
346 views

LXC: Linux devices don't work within container

With Debian lenny I am desperately trying to get LXC working (Debian kernel 3.16 and LXC 1). One big issue is the use of device nodes. I use lxc.autodev and lxc.cgroup.devices.allow and my config ...
1
vote
1answer
230 views

existing filesystem error on adding old btrfs storage volume into new ubuntu lxd install

lxc storage create default btrfs source=/dev/sdc error: Failed to create the BTRFS pool: /dev/sdc appears to contain an existing filesystem (btrfs). ERROR: use the -f option to force overwrite of /dev/...
2
votes
0answers
105 views

Group containers in LXC

It's possible to group lxc containers in some kind of hierarchical folder structure? I means set a group_containers folder in /var/lib/lxc in such a way you could have /var/lib/lxc/container_1 /var/...
2
votes
2answers
1k views

Forcing Ping to Egress When Destination Interface is Local (Debian)

I am running a Debian-based Linux container under Proxmox 4.4. This host has five network interfaces (though only two come into play in the problem I'm having). While I am shelled into this host, I ...
1
vote
1answer
61 views

Multiple instances of an application on the same X server?

I'd like to run multiple instances of firefox in lxc containers, using ssh X forwarding: ssh -X container-IP firefox It works perfectly if this copy of firefox is the only one. If I previously start ...
0
votes
1answer
578 views

Resolving names of LXC containers on the host

On Ubuntu 16.04 server edition, after launching an LXC container, it can only be referred to by its IP address. Enabling the .lxc domain in dnsmasq doesn't seem to help, and tutorials available only ...
0
votes
2answers
276 views

How to make cmake find installed packages

I am trying to use cmake to compile a program and it needs to use lxc, I run the cmakelist with cmake .. and it returns -- checking for module 'lxc' -- package 'lxc' not found. However, if I run apt-...
3
votes
1answer
3k views

How to run openvpn in a LXC container inside debian host?

I am running debian stretch on my host and I try to configure openvpn inside an Ubuntu xenial LXC guest. Because openvpn needs a tun device, I followed guides such as http://heider.io/blog/2013/10/26/...
1
vote
1answer
430 views

How to set up networking for lxc containers in OpenStack?

I am working on a setup of OpenStack using LXC containers for virtualization. I can launch instances (at least the instance log reports so). However, I can neither ping them nor connect to them via ...
1
vote
0answers
218 views

Cannot run C++ webservice (using libhttpserver) as systemd service, everything works correctly when running from terminal (as same user)

This is my systemd unit file (almost identical is used to run Meteor webservice and it simply works): [Unit] Description=SomeService [Service] ExecStart=/opt/myapp/app WorkingDirectory=/opt/myapp [...
0
votes
0answers
454 views

Bridge needs IP on host when bridging lxc containers?

I have the following setup. Bridge on host machine called br0. No IP address set. LXC container called router, which is attached to local network and br0, its task to route between the two. LXC ...
4
votes
3answers
2k views

Unable to do 'yum install' inside LXC container on CentOS 7

I am trying to create CentOS container inside CentOS 7 and host my application. But I am unable to install anything inside container. If I do 'yum -y install nodejs' i got below error Loaded ...
0
votes
0answers
430 views

Difference between an LXD Ubuntu container, and a Docker container with an Ubuntu image?

I think this question was already asked here, and this question was referenced, but it doesn't really answer. So I'll try to ask more in detail. Let's say I have an LXD container running an instance ...
2
votes
2answers
467 views

mock build fails with “sh: /usr/bin/python2: No such file or directory” even though file exists

I'm trying to install tornado using mock, from the source rpm, in a Centos 7 lxc container: mock -r epel-7-x86_64 python-tornado-4.4.2-3.fc26.src.rpm Everything seems to go well until it stops with ...
1
vote
1answer
838 views

Running LXD containers on centos?

I've just discovered LXD and this technology sounds amazing. The power of virtual machines with the cost of normal linux processes! However, I'm not able to find any information on how to run LXD on ...
1
vote
0answers
95 views

Enabling cross-host container communication under a VMware ESXi environment

I have a group of CentOS 7.2 servers running as VMs under VMware's ESXi 6.0. These all reside on the same subnet and we have no problem communicating between the different servers. In addition, each ...
4
votes
2answers
2k views

Syntax for setting LXD Container raw.idmap

I'm following the procedure for mounting a host drive inside an lxc container as described here. In that article the author sets the raw.idmap like this: lxc config set zesty raw.idmap 'both 1000 ...
1
vote
0answers
763 views

LXC configuration : Alloting a disk space

I am trying to create an LXC container by following the below containers. "Introduction to Containers on Linux using LXC" I am able to create the container and start it. But when I execute the df-h ...
2
votes
0answers
222 views

LXC configuration: issue creating a bridge for sharing the network to the containers

I am trying to install the LXC and LXC container on a new HP server with Centos 6.8, using the article "Introduction to Containers on Linux using LXC". Steps which I executed. yum update yum ...
0
votes
0answers
399 views

LXC libvirt memory cgroup out of memory

i am using LXC with virt-manager (libvirt) to host a Bind DNS server, with 512MB RAM allocated. The VM is on a ZFS filesystem (ZFS on Linux) Recently i got out of memory situation but i cannot find ...
4
votes
1answer
192 views

does the host system manage the sockets created by processes running in LXC containers?

I'm new to using LXC and I couldn't find an answer to this question. In a scenario where we have multiple containers running on the same host, and they're connected to a bridge which connects them to ...
0
votes
1answer
268 views

LxD container on external drive not starting on another host

I have identical OSes (Ubuntu 16.04) running on 2 hosts, with identical OS updates. I also have identical LxD service installed (via sudo apt-get install lxd) and configured (via sudo lxd init) on ...
0
votes
0answers
370 views

What's the difference between a Docker Ubuntu container and an LxD Ubuntu container?

I've read that Docker is an application container mainly used to package dependencies along with the application in question. Whereas, LxD is a system (or, infrastructure) container that is almost ...
4
votes
2answers
972 views

Using MySQL and LxD over Btrfs

I have a Ubuntu 16.04 workstation, with an ext4 filesystem. When playing with LxD, I would like to have a lightening-fast snapshoting ability (since my images would usually be big). This ability, in ...
1
vote
1answer
323 views

Some file permissions have '??????????' under LxC - Is this a feature, or a sign of a corrupt file-system?

I ran into the following listing quite by chance: [root@myhost /root]# cd /var/lib/lxcfs/cgroup/devices/ [root@myhost /var/lib/lxcfs/cgroup/devices]# ls -l ls: cannot access 'devices.allow': ...
0
votes
1answer
1k views

Orchestration of lxc/ldxd containers

In Docker you have a docker compose tool, with which you can set up an architecture and spin it up. Is there something likewise for lxd/lxc ?
1
vote
1answer
363 views

libvirt_lxc not working in Ubuntu 16.04

I installed libvirt on a fresh install of Ubuntu 16.04 desktop using apt install libvirt-bin. I then created an LXC domain named a. When I tried virsh -c lxc:/// start a, I saw this error message: ...
0
votes
2answers
1k views

lxd container to host communication

My lxd setup is such that each container gets its own dynamic ip. Let us say 10.0.4.211, 10.0.4.212 and so on. If I have some service running on the host, say on port 8080, how can code in the ...
1
vote
0answers
1k views

How to enable shared Clipboard for Windows and XRDP?

We´ve set up a development environment on Ubuntu 14.04, running in a LXC container hosted on a Proxmox 4.2 Server. The container is connected to our AD and accessed with xrdp. Problem: The clipboard ...
0
votes
1answer
877 views

LXC-Routing between containers

I have a pretty default lxc-setup with one host and several containers. One container webfrontend is getting all host-traffic on ports 80 and 443 via DNATing the ports. An nginx on webfrontend decides ...
1
vote
1answer
320 views

Wrong available memory with LXC virtualization

I have virtualized operation system using LXC virtualization. That system reports wrong available memory - it is always same as free memory. By experiments I was able to use more memory than amount of ...