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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

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”.

1
vote
0answers
10 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 ...
1
vote
0answers
23 views

Trouble connecting a vmware guest to an LXC container [on hold]

I have a linux host, running VMWare and LXC. I have an application in the VMWare guest, and a service in an LXC container I am trying to connect. I cannot seem to get the two systems to communicate. ...
125
votes
10answers
86k 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 ...
0
votes
2answers
95 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 ...
45
votes
10answers
68k 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
35 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
7 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
15 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
30 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
64 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
93k 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
29 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
64 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
94 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
212 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
178 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 ...
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 ...
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
30 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
264 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
32 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
127 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
90 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 ...
0
votes
0answers
235 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
19k 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 ...
1
vote
1answer
550 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
62 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
525 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
231 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
877 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
16 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
107 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
175 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
24 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
298 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
124 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
5k views

Microsoft Windows equivalent to LXC

Does Microsoft Windows have any equivalent product similar to Ubuntu's LXC container virtualization technology?
0
votes
0answers
47 views

Server reboots randomly in different time with interval one day

I have a problem. I don't know, where is the reason, of rebooting of my dedicated server. Hosting provider says, that everything is ok with hardware and i should find reason by myself in my software. ...
0
votes
0answers
19 views

LXC guest connects to network in spite of misconfigured Gateway

I am running an LXC container on Slackware 14.2 host with Slackware 14.2 guest. Here the relevant configurations: Configuration to start the bridge: /sbin/brctl addbr lxcbr0 /sbin/brctl setfd lxcbr0 ...
6
votes
3answers
21k views

Easy way to transfer files between host and LXC container on LVM

This is an easy task in the case of containers that share the same filesystem but I'm not sure what would be the proper approach for containers that use LVM disks. I know I could use rsync or scp but ...
2
votes
1answer
362 views

LXC container not connecting to bridge on startup

I'm struggling to get an lxc container to startup with proper networking. /etc/network/interfaces: auto lxcbr0 iface lxcbr0 inet static address 192.168.5.69 netmask 255.255.255.0 ...
0
votes
0answers
154 views

Sharing SSSD for Active Directory from host with LXC Container guests

We have a development server (vdev4), which hosts LXC containers for individual developers, e.g. vdev-jsmith, all running the same OS, Ubuntu 18.04 LTS. The host (vdev4) is joined to Active Directory ...