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”.
100
questions
1
vote
1
answer
899
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
0
answers
145
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 ...
8
votes
2
answers
8k
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
2
answers
1k
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
1
answer
353
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
0
answers
740
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 ...
3
votes
1
answer
406
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
1
answer
353
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
0
answers
412
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 ...
6
votes
2
answers
2k
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
1
answer
622
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
1
answer
2k
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
1
answer
599
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:
...
1
vote
2
answers
2k
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
0
answers
2k
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
1
answer
2k
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
1
answer
447
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 ...
0
votes
1
answer
1k
views
Is there ipv6-only dns?
I have a system with ipv6 only connectivity. I'd disable ipv4 altogether, except it's pretty hard to remove, and stome stuff wants to talk to 127.0.0.1. It's a Linux system, running in an LXC ...
2
votes
1
answer
2k
views
how to set static names for lxc-veth-devices on the host?
lxc is creating a new veth-device on the host for a container, each time, the respective container (re)starts. the name of the veth-device consits of "veth" and some random string.
I cannot really see ...
1
vote
1
answer
1k
views
LXC: run command when USB device is connected
How can I execute a command in an LXC system container whenever a specific USB device is connected? Ordinarily, I'd use udev (cf. 1, 2, 3, 4, 5), but as far as I can tell, udev cannot be used inside a ...
3
votes
2
answers
5k
views
lxd-type container static IP in profile
I am trying to set a static IP address in an lxd container. The container is made with:
nonroot $ lxc launch images:centos/7/amd64 my_centos
in a pretty bogstandard lxd (just the default apt-get ...
8
votes
5
answers
22k
views
LXD containers and networking with static IP
I have done some Docker testing over the years, but for a specific kind of testing, I need a little more then just application containers. So I turned to LXC/LXD containers, which is great. After ...
1
vote
1
answer
389
views
LXC container: mktemp: failed to create file via template
On a fresh new container, I do:
lxc-attach -n mycontainer -- apt-get install -y wget
But the installation of wget fails partially with the following message
...
Processing triggers for ca-...
1
vote
0
answers
2k
views
Memory hierarchies and kernel boot options
I'm booting a Ubuntu 14.04.3 LTS server on a Core-i5 T5200U machine with kernel boot options agp=off ipv6.disable=1 intremap=no_x2apic_optout biosdevname=0 audit=0. When I inspect dmesg, I see the ...
1
vote
2
answers
430
views
make / libc segfault in all arch linux containers
I'm getting the following when I run make (from any directory with or without a makefile):
(gdb) run
Starting program: /usr/bin/make
[Thread debugging using libthread_db enabled]
Using host ...
2
votes
1
answer
5k
views
Public static IP address for LXC container
I have a server running Ubuntu 14 (server edition), connected to a network using two network adapters. These two network adapters are configured in a bond to have network redundancy (in case one of ...
8
votes
1
answer
9k
views
Docker in Proxmox
I've setup a home server with Proxmox v4 and want to run a Docker container. How should I go about this? Should I just setup Docker inside an LXC container or should I create a full VM and use one of ...
4
votes
1
answer
3k
views
no CUDA-capable device is detected inside LXC container
I followed the following instructions and read the official guide in detail in order to set up Cuda inside an LXC container.
When I try to execute the sample ./deviceQuery script from the official ...
2
votes
2
answers
9k
views
ssh root@"ip of lxc container" don't work
how can I enter in a lxc container using ssh? Because I follow many guide on that argument but I can't still enter in the container.
[root@T410 andrea]# ssh [email protected] -vvvv
OpenSSH_7.1p1, ...
1
vote
2
answers
2k
views
LXC containers not accessible using .lxc dns domain on Ubuntu 14.4
I have carried out the expected configuration and had this functionality working in the past.
The changes I made that had this working previously were:
Uncommenting the LXC_DOMAIN="lxc" line in /etc/...