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

1
vote
0answers
13 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
24 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. ...
0
votes
0answers
37 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
66 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]# ...
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
65 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
97 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
1answer
181 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 ...
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 ...
0
votes
2answers
99 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
0answers
269 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
130 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
93 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
243 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 ...
1
vote
1answer
561 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 ...
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 ...
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 ...
-2
votes
1answer
234 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 ...
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
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
2
votes
2answers
880 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 ...
1
vote
1answer
125 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 ...
1
vote
2answers
299 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 ...
0
votes
0answers
48 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 ...
0
votes
0answers
156 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 ...
0
votes
0answers
81 views

Differentiate IP from the port when adding ip6tables rules

I want to forward :80 connections to one of my lxc containers. I've used iptables for ipv4, and when I try to do it with ip6tables it fail because it understand :80 as part of the IP. I've tried : # ...
0
votes
0answers
209 views

Recover deleted LXD container from ZFS

I am using LXD to manage Linux containers, and deleted a running container using lxd delete --force test. LXD is using a ZFS pool. The container was snapshoted periodically, is it possible to recover ...
0
votes
1answer
158 views

access webpage via url in an lxc container

I have installed a webserver in an lxc container. This webserver can be accessed from the outside world via its URL thanks to the following iptable rule: sudo iptables -t nat -A PREROUTING -i eno1 -p ...
0
votes
0answers
70 views

Restore namespace for adapters lost to LXC

First, is there any method to list all adapters on a host even when held in another namespace, and second, how can I restore them if they don't automatically come back when a container is destroyed? ...
1
vote
1answer
325 views

getting ipv6 via radvd/dhcpd6 in an LXC guest working

what i want my setup has a dynamic amount of LXC containers and therefore i need some dynamic ipv6 address allocation. the interface brNC-internet is a simple bridge which is mapped into the LXC ...
0
votes
1answer
176 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 ...
1
vote
1answer
655 views

how to fix filesystem of a LXC container

This container doen't start anymore with these errors messages : # lxc-start -n deb7 -F INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. Cleaning up temporary files......
0
votes
2answers
214 views

How to create iptables rule to allow IP Address with any sub directory [closed]

I currently have a DigitalOcean Ubuntu 16.04x64 server with Linux Containers to house multiple sites. One of the containers has HAProxy installed and routes incoming traffic to their appropriate ...
1
vote
1answer
396 views

Configure dnsmasq to passthrough search domain to LXC guest? (Ubuntu 16.04)

Our network relies on DHCP tags to route clients to the correct upstream hosts without having to know the FQDN of those hosts. We use dnsmasq to set tags for clients by MAC address and then we push ...
0
votes
0answers
68 views

Is it possible to get dynamic lease of IP address from LXD container on Google Compute Engine?

Followed “Ubiquiti Networks UniFi Controller in an Ubuntu LXD Machine Container“ when setting up a new Ubuntu VM on Google Compute Engine. But the container tries to lease an IP address, but nothing ...
1
vote
0answers
239 views

IPv6 to LXC container

I've got an ipv6 /64 subnet and use lxc/lxd with many container. The ipv6 /64 subnet is attached to eth0. Now I want every container get an ipv6 (maybe in an /56 subnet of this /64?) and be available ...
2
votes
0answers
203 views

LXD external static ip

I'm using LXD for managing LXC containers. I used the "standard" bridged NAT setup up to now. But know I got an additional static ip which is external available. I want to attach it to my container ...
2
votes
1answer
2k views

Configure LXC to use specific DNS server instead of DNSMASQ

Out of the box, my LXC containers connect to a running instance of dnsmasq, which is started with the lxc-net service. In my case, I am running a local unbound DNS server that connects to a thing ...
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 ...
1
vote
0answers
803 views

NAT not working with LXC

I've got a dedicated server and I'm trying to create a NAT. My virtual hosts are LinuX Containers, I've got only 1 public IP address and I'm trying to be connected to the Internet inside my LXC. On ...
0
votes
2answers
1k views

Using host as ntp-client and lxc-router as ntp-server

I installed ntpd on my Debian host machine to keep the hardware RTC "up-to-date". By sharing the system's clock the time gets automatically propagated to all installed containers (lxc). One of those ...
0
votes
1answer
323 views

ssh chroot to lxc container

I have a PC with sshd service (192.168.1.1). The PC contains two users user1 and user2. I installed lxc service and configured a container. How can I configure ssh server on 192.168.1.1 that ...
0
votes
1answer
278 views

mount LVM volume already mounted

Is it possible to mount an already mounted LVM volume somewhere else ? I have LXC using an LVM volume as storage, and I would mount the volume on the host for easier backup management. When I try to ...