Questions tagged [lxc]

LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. It is sometimes referred to as “chroot on steroids”.

LXC provides operating system-level virtualization not via a full blown virtual machine, but rather provides a virtual environment that has its own process and network space. LXC relies on the Linux kernel cgroups functionality that became available in version 2.6.29 and is now available in all further kernel distibutions.

Cgroups was developed as part of LXC. It also relies on other kinds of namespace-isolation functionality, which were developed and integrated into the mainline Linux kernel.

LXC is similar to other OS-level virtualization technologies on Linux such as OpenVZ and Linux-VServer, as well as those on other operating systems such as FreeBSD jails. LXC Containers can define various cpu limits, memory limits etc. (In short all parameters that can be set via CGROUPS) to prevent any one container from interfering with all other containers running on the same LXC host.

LXC uses the linux bridge-utils commands to create local VLANs, and attach containers and physical interfaces to them. With containers the physical overhead (ram, swap space, one kernel per VM, plus hypervisor) that is present in virtualization methods is reduced. With containers, one kernel and one virtual memory space is shared between all the containers running on that host.

For a comparison of other Operating System virtualization techniques, see this link

591 questions
0
votes
0 answers

Pulling of docker image from a registry fails

Would love some help about an issue. When I was trying to download an image form the repository it failed and I could see the following errors in the log file. This is the syslog which I received Jan 4 10:22:05 kernel: device-mapper:…
Gaurav
  • 104
  • 1
  • 7
0
votes
1 answer

LXD: LXC Network Edit Results in Error: Not Found

I want a predictable network bridge to use with LXD so that I can run squid as a proxy on that bridge for all traffic and add ebtables rules for filtering traffic. So I edited /etc/network/interfaces to add the bridge: auto cdplxdbr0 iface cdplxdbr0…
VJK
  • 33
  • 11
0
votes
1 answer

Custom Bridge in Ubuntu 16.04 with LXD

Problem I am using two NICs on a host on which I want to run LXD with the Docker profile. I have DNSMASQ running on interface 0 (enp0s10f0) and loopback. I want LXD containers to use a separate NIC (enp0s10f1). At this time I don't need the…
VJK
  • 33
  • 11
0
votes
1 answer

Kernel configurations for lxc

I am configuring Linux kernel 3.10.31ltsi and want to add the needed support for LXC, as far as I understood, cgroups and namespaces shall be available for LXC, but what are the configurations in menuconfig that need to be included?
KGOM
  • 1
  • 1
0
votes
1 answer

The second command doesn't run as root

I have created a Jenkins job today, what it does is the Jenkins user should log into another server and run two commands separated by &&: ssh -i /creds/jenkins jenkins@servername.com "sh -c 'sudo su && lxc exec containername bash'" The logging part…
Irina
  • 21
  • 2
0
votes
1 answer

Offline memsql 5.5 install failed with "out of space" error

I try to deploy memsql 5.5 offline in LXC container environment. Install of memsql-ops succeeded. When I ran following command to add memsql offline media "memsqlbin_amd64.tar.gz", the command failed with error message about "out of space". Here…
robert
  • 397
  • 1
  • 3
  • 14
0
votes
1 answer

docker blockio can not monitor when using dd to test

I have a container running on my host. there is a volume I bind to the container. "Volumes": { "/data/mcluster_data": "/data/mcluster_data/d-mcl-30_struc_test", "/srv/mcluster":…
Gary
  • 71
  • 1
  • 4
0
votes
0 answers

How to connect to container which is behind iptables rule

It is common to access a container from out of host with simple iptable rules which forward a port on host to a port on container with container internal IP in hand -A PREROUTING -d 1.2.3.4/32 -i eth0 -p tcp -m tcp --dport 80 -j DNAT…
wtayyeb
  • 1,879
  • 2
  • 18
  • 38
0
votes
1 answer

unable to access external IP from LAN

I have a server within OVH network. Proxmox 4.3 was installed there as a supervisor and it's hosting 2 LXC containters. Both are running in 192.168.11.0/24 network setup on vmbr2 network for which I have also setup NAT like that: auto vmbr2 iface…
zerocool
  • 733
  • 1
  • 7
  • 19
0
votes
1 answer

Installation of LXD fails on Redhat 7

As there is no rpm package not a yum package, I had to install lxd from the source code. Here is the error I get: [admin@gol05854 lxd]$ make Must a few times due to go get race go get -t -v -d ./... go get -t -v -d ./... go get -t -v -d ./... go…
Yash
  • 946
  • 1
  • 13
  • 28
0
votes
0 answers

net.ipv4.ip_forward lxc vm ping DUP

I run LXC Linux containers and so I have net.ipv4.ip_forward=1 set on the host so that I can ping internet (google.com) from inside the LXC container. However, when I run VirtualBox VMs in the same environment and bridge to the wlan wireless…
gstanden
  • 16
  • 2
0
votes
1 answer

How to test a string condtion deep in Ansible list variable?

I register a list-variable lxcs_info.results in my Ansible playbook that is populated with following LXC-related data: ok: [webserver] => { "lxcs_info": { "changed": false, "results": [ { …
OpenITeX
  • 479
  • 4
  • 9
0
votes
0 answers

Resource manager class in C++

I am currently implementing a server program that forks a process to handle a client's request. The forked process must be well-controlled in terms of cpu, memory, disk, and other system attributes. I noticed the easiest way to implement a resource…
Jes
  • 2,614
  • 4
  • 25
  • 45
0
votes
1 answer

LXD API not creating profile

I am trying to create a new profile for LXC. I did this; root@nagri:/home/nagri# curl -s -k --cert ~/.config/lxc/client.crt --key ~/.config/lxc/client.key -X POST -d '{ "name": "testing", "description": "Some description string", …
Nagri
  • 3,008
  • 5
  • 34
  • 63
0
votes
0 answers

How do I migrate Proxmox 3.x openVZ containers to Proxmox 4.x LXC?

I have just upgraded one of the Proxmox machines in a cluster from 3.4 to 4.2 following these instructions. Normal VMs have migrated correctly. We had to change hard drives from virtio to ide so that the machines would detect them but other than…
Calabacin
  • 725
  • 2
  • 8
  • 19