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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

cannot find samba on local network, runing on proxmox lxc centos container

I have a server with proxmox on ip 192.168.0.200 with a unique lxc container (privileged) on ip 192.168.0.254 running centos 8 and samba server installed on it. Configuration done on centos: users ...
0
votes
1answer
60 views

Make host IPv6 only and assign its sole public IPv4 to LXC container

I have a Debian 10 server which gets its IPv4-v6 via DHCP which can be configured as static also: root@host:~# ifconfig ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet ...
0
votes
0answers
24 views

Bridge LXC network to host machine's VPN tun0 interface?

I am using a pretty standard L3 VPN on my host machine (running Archlinux). When the VPN is enabled, the NAT bridge lxc-br0 ceases to function and my LXC containers do not have internet. From what I'...
0
votes
0answers
22 views

Why does certbot want to mount something inside my lxc container?

I regularly see these messages in my syslog: Mar 28 00:12:02 server kernel: [667016.277618] audit: type=1400 audit(1585350722.258:140): apparmor="DENIED" operation="mount" info="failed flags match" ...
0
votes
0answers
16 views

How to fix network for docker container inside lxd virtualization

Host machine is running LXD in which is installed docker. Guest machine (host of docker) has dedicated mac address and ip address so it is not using any NAT for accessing the Internet (but shared the ...
0
votes
1answer
53 views

How to load the kernel module to lxc container?

lxc containers do not have their own Kernel so is there possible way to load the kernel into lxc container?
0
votes
1answer
56 views

It is possible to set up DRBD on lxc container?

The purpose is I want to set up DRBD to run on lxc container but it looks like different from the physical server because drbd requires to syn from a block device but it does not have in lxc container....
0
votes
0answers
41 views

Routing ports 80 443 traffic from Anbox LXC container to the proxy on Localhost

I want to route all packets heading for ports 80 and 443 to the privoxy running on my machine on its default port 8118. These are the interfaces on Kali rolling host $ ifconfig anbox0: flags=4163&...
0
votes
0answers
25 views

LXD containers starting blocks network

I have a PC working as a server of LXD containers. I have about 100 ubuntu 18.04 containers. I use nesting in some containers to separate administration for groups of servers. I have not always all ...
0
votes
1answer
214 views

How do I take advantage of FreeIPA centralized authentication in an LXC container under Proxmox?

I'd like to request assistance with an issue I'm having in my Proxmox homelab. I have a FreeIPA domain lab.ads1031.local, in which resides a user ads1031 with UID 1000001. I would like to log in as ...
0
votes
1answer
85 views

Debian 10 - static route doesn't override default

My /etc/network/interfaces: auto lo iface lo inet loopback auto wan iface wan inet static address $myPublicIP netmask $ispSubnet gateway $ispGateway auto vpn iface vpn inet ...
0
votes
0answers
16 views

Transferring LXD after moving to a new zpool

I have just started the process of replacing a raidz zpool with a mirror zpool. I created the new pool and then did zpool send | zpool receive to copy the data across. That all went smoothly, but I ...
0
votes
0answers
8 views

Restore lxd image from tarball

I have created lxd images with ubuntu 16.04 and then exported them to tarballs. Now I need to restore an image from tarball, make some changes (so as I can connect to them via ssh) and then export ...
0
votes
0answers
52 views

Cannot connect to Windows 10 VM from inside LXD container

So I am trying to rdp into a Virtualbox VM from an LXD container using rdesktop. I have 2 physical computers: TuringEngine is hosting both the VBox VMs and LXD containers Console which i am using to ...
0
votes
0answers
41 views

Changing Openstack Keystone admin endpoint

I installed Openstack (using the Ansible-based install method) and my endpoints are: public: 10.10.10.100:5000 admin: 10.10.2.100:5000 internal: 10.10.2.100:5000 However, I need to change the 'admin'...
1
vote
1answer
777 views

Increase the LXD/LXC Btrfs loop file storage pool size

Our production container crashed because its LXC storage pool is out of space. Here is dh -h from inside the container: Filesystem Size Used Avail Use% Mounted on /dev/loop0 82G 78G 2....
0
votes
0answers
17 views

Container network model - Libnetwork - Single host networking

Created a single host network(ps-bridge): $ docker network ls NETWORK ID NAME DRIVER SCOPE 01dcce0fbdcf bridge(docker0) bridge local ...
1
vote
0answers
86 views

Creating docker image from lxc container tar file

i am trying to create a docker image from an lxc_container tar file, i am able to import it using the docker import command sudo docker import ./app.tar i was able to import it and run it, docker ...
0
votes
2answers
252 views

A Docker OS container - why?

If Docker is an application container (unlike a system container like LxC), and is to be used for running only one app/service, I wonder what good is a full, Docker OS container, say, for Ubuntu? Any ...
0
votes
0answers
45 views

Bidirectional static IP for LXC-Container

currently I am trying to get my networking with LXC-Containers to work. I have two IP´s: the IP that came with my Server - lets say: 1.1.1.1 ("IP-1") and one that is routed to the same interface - ...
1
vote
1answer
76 views

openstack ansible deployment fail after creating lxc containers while running apt-get update command inside container

The openstack ansible created containers where running but they don't have access to internet. When I manually add routing then I get following error: Err:1 http://archive.ubuntu.com/ubuntu bionic ...
0
votes
1answer
129 views

Ubuntu LXD iptables SNAT / Masquarade

i have Ubuntu Server with LXD. Every Container has own IP (local)address. Example: LXD Host: 10.10.1.200, DNS container: 10.10.1.141, LXC inside address: 10.71.85.107 Ok - that no problem, incoming ...
1
vote
1answer
234 views

LXC start/stop hangs and filesystem sync hangs

edit: The issue was my umask being set to 027 rather than the default of 022. See below for details. I'm experiencing a bewildering (set of) issues regarding LXC that manifests itself throughout the ...
1
vote
1answer
952 views

reboot command in a Linux Container, does it just reboot the container?

I am using several remote Linux Containers that I access with SSH (PlanetLab to be specific). Sometimes they work unreliably so then I issue the command sudo reboot . What I wonder, will this restart ...
0
votes
1answer
133 views

Identify host of lxc containers when connecting via ssh

I have plenty of servers (>100), mostly centos, ubuntu and some windows servers, monitored with Zabbix. Many of those servers are virtualized with vanilla LXC version 2 or version 3 (no libvirt, no ...
0
votes
0answers
900 views

How to implement iptables on lxc-container?

I am completely new to lxc-containers. I installed lxc-container (fedora 29 amd64) on my ubuntu 18.04 system. The linux container had no firewall command line tools. Therefore I installed iptables ...
0
votes
1answer
243 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
402 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
34 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, ...
1
vote
1answer
982 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
638 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 ...
2
votes
1answer
282 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
3k 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 ...
1
vote
1answer
150 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
1answer
553 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
245 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
73 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. ...
2
votes
2answers
4k 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
497 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
897 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
703 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
342 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
186 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
3k 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
90 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 ...
1
vote
1answer
857 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
580 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-...
4
votes
1answer
4k 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
603 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 ...