Stack Exchange Network

Stack Exchange network consists of 175 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
19 views

LXC: Forward container's localhost traffic to host's localhost

I have service A running on the host and binding to port 127.0.0.1:7800. I have service B running inside my LXC container which want to connect to service A via 127.0.0.1:7800 but currently can't. ...
4
votes
3answers
3k views

Accessing LXC container's filesystem from host

I'm looking for a way to access the container's rootfs from the host. While I could just use the directory that was passed to lxc.rootfs, it doesn't have the mounts that the container has, so there ...
14
votes
5answers
35k views

Setting up bridged LXC containers with static IPs

I'm trying to setup multiple LXC containers on a host, each with public static IPs of their own. My host is running the latest Ubuntu. It has a single network interface named eth0. The static IPs ...
1
vote
1answer
48 views

Can you run Docker natively on the new Windows 10 Linux kernel?

My understanding was that the primary limitation of running docker on other OSs was the Linux Network containers that made it possible. (Certainly for Macs). Recently Microsoft announced a plan to ...
2
votes
1answer
26 views

libvirt-lxc container on Debian buster with user namespacing not always startable

I have a bunch of libvirt-lxc containers whose configuration I migrated from Debian jessie to a fresh Debian buster host. I re-created the rootfs’ for the containers using lxc-create -t debian -- --...
0
votes
1answer
946 views

Ubuntu 16.04 lxc no tty present and no askpass program specified

I'm using Ubuntu 16.04 and lxc 2.0.7-0ubuntu1~16.04.1, I got this error sudo: no tty present and no askpass program specified in an unprivileged container( Ubuntu 16.04 amd64). This is my /dev ...
126
votes
10answers
87k views

Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?

My understanding was that the primary limitation of running docker on other OSs was the Linux Network containers that made it possible. (Certainly for Macs). Recently Microsoft announced a beta of a ...
3
votes
1answer
3k views

Add a second disk image to a LXC container in Proxmox 4

My LXC containers in Proxmox 4 have a root filesystem stored on the host as a RAW disk image stored in : /var/lib/vz/images/<ct_id>/vm-<ct-id>-disk-1.raw This folder on the host computer ...
1
vote
0answers
20 views

Sending tagged traffic to lxc container while sending untagged traffic to other containers

I have a situation where I already have several bridges on my lxc host to send vlan-specific traffic to my various containers. I have one container that lives on several of the networks, and was ...
0
votes
2answers
148 views

How to resize lxc/lxd images, if i am using LVM backend?

i am using LXD few years and i am glad to use this platform in my testing environment. But few days ago, i couldn't install Microsoft Sql server 2017. The reason was, that i used default ZFS backend. ...
1
vote
1answer
1k views

Is the attack surface of Docker vs. LXC/systemd-nspawn significantly different?

One decision point in choosing between and application container solution versus an OS container solution is security. I'm not knowledgeable enough to be able to compare and contrast the two. I assume ...
9
votes
8answers
5k views

How to auto-start unprivileged lxc containers?

On Ubuntu 14.04, I have created an unprivileged container that I can manually start and stop. But I would like this to start and stop along with the system. I have added the following to the ...
44
votes
10answers
71k views

Docker containers can't resolve DNS on Ubuntu 14.04 Desktop Host

I'm running into a problem with my Docker containers on Ubuntu 14.04 LTS. Docker worked fine for two days, and then suddenly I lost all network connectivity inside my containers. The error output ...
0
votes
0answers
46 views

Unable to create LXC container with specific image

I recently hit issue with the creation of LXC container: tsenov@hometower:~$ createContainer.sh tester 1 256MB lxd_sp0 2 Creating tester Error: Failed container creation: Create container from image: ...
0
votes
0answers
9 views

How do I setup an unprivledged lxc container?

I am trying to create an unprivledged lxc container on arch linux, but it fails with a following error https://termbin.com/q4bd I checked /usr/share/lxc/templates and lxc-download exists I tried ...
1
vote
0answers
24 views

Libvirt lxc-enter-namespace with mapped uid/gid

I'm trying to implement LXC with mapped uid/gid (user namespace) under Libvirt on CentOS 7 with full separate root mounted. Libvirt config snippet <idmap> <uid start='0' target='100000'...
1
vote
2answers
42 views

LXC and iptables - how to change source IP address from main IP to different IP address

I have LXC container with mail server and "dedicated" IP address. "Dedicated" means that 25 and 110 port of the IP address are forwarded to 25 and 110 port of the container. This is done with ...
0
votes
1answer
82 views

How to get a Linux container to connect to the internet through a bridge?

My Linux host has a bridge device br0, and I have created an arch Linux container but it isn't able to access the internet. When the container is started the veth device appears on the host: [host]# ...
46
votes
6answers
95k views

How to specify hostname for the running container?

I'm having trouble setting the hostname on a running docker container. I'm also having trouble understanding how to specify hostname after the image is started. I started a container from an image I ...
1
vote
1answer
1k views

IPv6 and LXC connectivity

I am struggling a bit on how to equip my LXC configuration with IPv6 currently. What's the setup? Ubuntu 16.04 LTS LXC2-beta from the Ubuntu PPA's (feature IPv6 connectivity) I use a netcup IPv6 ...
0
votes
2answers
5k views

How can I create an LXC container in a custom directory

My root filesystem is full and I'd like to create a container in my home directory, which has a lot of free space. I made a config file like this: LXC_AUTO="true" LXC_DIRECTORY="/home/al/lxc" ...
0
votes
0answers
36 views

Can I make a single computer out of 3 with lxd cluster?

I'm setting up a LXD cluster on 3 machines. Though I'm concerned if a single container (a virtual machine) use all the resources of 3 machine. I mean Does a single container use all 3 machine's CPU?...
2
votes
1answer
81 views

Is lxd/lxc a suitable replacement to virtual machines (vSphere, for example) for server infrastructure? [closed]

I would like to move my servers to virtual machines. This is because it'll make it easier for me to fire up more machines and back them up in case the physical server is damaged (I'm not aware of ...
0
votes
0answers
143 views

Unprivileged LXC fails to find subuid / subgid allocation

When I run lxc-usernsexec I get the error message: Failed to find subuid or subgid allocation lxc-create and lxc-start work without any problems, but I would need to run lxc-usernexec to remove a ...
0
votes
2answers
239 views

Boot Proxmox container into grub?

Is there anyway to boot a Proxmox container into grub? Every time I start it it goes straight into the login screen. I'm using the Proxmox web interface and the Proxmox version is 4.2-17.
0
votes
1answer
225 views

Docker inside LXC starting container process caused “apply caps: operation not permitted”

I'm trying to run a Docker container inside an LXC container. However doing so causes me to get the following error: [root@DH-DockerLXC01 alex]# docker run fedora bash docker: Error response from ...
2
votes
1answer
2k views

lxc container not getting default route

I'm running Ubuntu Precise. I understand that my current version of lxc doesn't support gateway/default route assignment (lxc 0.7.5-3ubuntu67). I've been trying like heck to get a few lines to execute ...
0
votes
0answers
46 views

HAProxy not sending correct URL to LXD container

HAProxy not sending correct URL to LXD container I want to have the following behaviour: In one virtual machine I have three LXD containers: One with HAProxy, another with a LDAP server, and the ...
5
votes
2answers
2k views

How to prevent docker-compose appending hashes to created container names?

I have a server with several lxc containers. In some of the containers there is a docker installed. Usually a docker compose action in these LXC containers results in container names with the format ...
1
vote
0answers
331 views

Proxmox: how to access a ZFS volume directly through guest?

That may sound like a strange use case, but is there a way to access a ZFS volume directly through an LXC container or a Qemu VM with Proxmox? I'd like to have incremental backups pushed to my guest ...
0
votes
0answers
34 views

Setup iptables to connect LXC container to host tcp load balancer (from container to internet)

I have a LXC container inside a host. A program inside the container is trying to communicate with external nodes using port 9876. If I connect an external ip to the host VM, everything works. I ...
0
votes
0answers
152 views

How to run unprivileged lxc container on Arch Linux?

I'm trying to create unprivileged container, went to Error: Failed to initialize cgroup driver / PAM unable to open pam_cgfs.so Downgraded lxc to 3.0.1 as it's suggested in doc https://wiki....
0
votes
0answers
111 views

Proxmox LXC networking

We have 5 physical machines hosted at OVH. Each of them have Proxmox 5.2-10 installed Machines are inside of OVH vRack. we have separate LXC for database, separate LXC with loadbalancer and several ...
1
vote
0answers
329 views

What is standard way to forward port from host to LXC container?

I am researching LXC containers. When I do verth network, libvirtd creates some iptables rules: [root@VM ~]# iptables -L -n -v Chain INPUT (policy ACCEPT 61 packets, 6229 bytes) pkts bytes target ...
8
votes
5answers
20k views

LXC, Port forwarding and iptables

I have a LXC container (10.0.3.2) running on a host. A service is running inside the container on port 7000. From the host (10.0.3.1, lxcbr0), I can reach the service: $ telnet 10.0.3.2 7000 Trying ...
2
votes
1answer
764 views

unprivileged_userns_clone no such

I am trying to setup unprivileged LXC containers as explained in Debian Wiki on a Jessie Debian physical server (4.9.135 kernel). Hence, I want to enable the userns namespace: sysctl kernel....
0
votes
1answer
67 views

What is standard way to give LXC public IP address?

I am researching LXC. The thing I was unable to find is how to give a container public IP address? Suppose we have a server with 5 IP addresses. Then we do 4 containers there and give somehow one ...
0
votes
1answer
550 views

Container can't ping github.com but host can

I have the following setup: [ LXC Container running Debian ] <--> virbr0 <--> [Fedora 24 host] DNS resolve works for every single domain I've tried to so far from the host and from the ...
-2
votes
1answer
282 views

Even with root user Im receiving 'Operation not permitted' when try creating gluster volume between Ubuntu 14.04 LXC containers

Even with root user Im receiving 'Operation not permitted' when try creating gluster volume between Ubuntu 14.04 LXC containers. Need test the solution locally before install it on prodution and even ...
2
votes
2answers
1k views

Jenkins web server not responding to HTTP requests in Ubuntu/Dell PowerEdge R640

I have a system (the "host") that runs several containers, using LXC (i.e. the "guests"). I've installed Jenkins inside the guests and they appear to be working as intended, except that they don't ...
0
votes
0answers
17 views

VestaCP in LXC Container

My first attempts in setting up proxmox and I stumbled upon some problems installing VestaCP control Panel inside an LXC container. I tried with an Un-Privileged Container... it won't even install ...
0
votes
0answers
549 views

how to find the process which initates transmition

I found that something is trying to reach 5353 port. My firewall kicks this after all ACCEPTs - (policy DENY, and some ACCEPTS - everything which doesn't fit to ACCEPTS is logged) [2206881.340582] ...
0
votes
0answers
110 views

Slow running Cron tasks getting stuck in container

It is a Debian 9 container running on a Debian 9 host. Every now and then the container would grind to a halt. It is usually a slow task like apticron or munin. My last test was an idle container on ...
0
votes
1answer
182 views

Openvas 9 - Continual logouts due to “Server reached connection limit (closing inbound connection)”

I keep having issues with getting logged out of Openvas/Greenbone Security Assistant, and after monitoring the logs while I was trying to run a scan, I finally noticed these lines that corresponded ...
0
votes
0answers
26 views

How add size at bootdisk on Proxmox LXC?

How add size at bootdisk on Proxmox LXC? I use pct resize 101 rootfs 20G, I can see new size when LXC is poweroff but when I poweron it, I see old size, and it's full. Thanks
0
votes
3answers
3k views

Reverse Proxy Linux Containers

I am trying to set up a reverse proxy on my ubuntu 14.04 host so that I can run multiple websites, each in their own LXC container (one day docker but one step at a time). In this example the sites/...
1
vote
2answers
325 views

Accessing LXC frm host over local network

Hay! I searched a lot, but it seems this is not common issue. Comments are much appreciated! # Set variables HOST=192.168.0.254 LXC=192.168.0.105 I am dealing with LXC (NGINX, MySQL) and I am not ...
1
vote
1answer
148 views

How to set the dns on lxc containers staticly?

I am trying to set the dns manually to a lxc container. I already read your comments on [Setting up bridged LXC containers with static IPs But this did not work with me. In etc/network/interfaces ...
2
votes
1answer
3k views

LXD migrate containers to new storage backed

On my host, I have Ubuntu 16.10: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.10 Release: 16.10 Codename: yakkety and I use LXD from the stable repo: lxc --...
12
votes
3answers
6k views

Microsoft Windows equivalent to LXC

Does Microsoft Windows have any equivalent product similar to Ubuntu's LXC container virtualization technology?