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

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 newer kernel versions. 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

420 questions
2
votes
1 answer

libvirt lxc container won't use statically assigned address at startup

I have an LXC OS container (CentOS 7) configured via libvirt (CentOS 7): lxc-test1.example.com 5a715193-55ef-49d7-a4f6-ac5c27bce838 2097152
84104
  • 12,905
  • 6
  • 45
  • 76
2
votes
1 answer

Centos lxc container won't start on Ubuntu 14.10

I am trying to run Centos containers in Ubuntu 14.10 Utopic and also Ubuntu 14.04 trusty. I created the container in several different ways and no matter what it won't start and spits those lines: # lxc-start -n centos1 -F init: Failed to spawn…
2
votes
2 answers

LinuxContainers arch-linux double login tty

Since upgrading to LXC 1.0 with the new Arch Linux template when I create a new instance I have a double tty when invoking: lxc-console --name This is the output: Arch Linux 3.19.2-1-ARCH (lxc/tty1) arch1234 login: Arch Linux…
2
votes
0 answers

Share serial port between linux containers

I have a requirement to share a single serial port between two or more linux containers. The LXCs are spawned by the host linux. I explored the option of socat, wherein the host will open a TCP connection to which the guest containers will connect…
2
votes
1 answer

Why does the lxc container binds more than the configured ip?

I set up several ubuntu LXC containers on my ubuntu server. They all have a unique IP configured. As they start up, some of them do bind more than the defined IP address. For example container A has 10.0.3.123 and binds additionally 10.0.3.127.…
wolxXx
  • 271
  • 2
  • 6
2
votes
2 answers

Could not create lxc container where linux distribution is different than the linux host?

My linux host is ubuntu 14.04 x64. I tried to create a centos lxc container sudo lxc-create -n centos -t centos but return errors Host CPE ID from /etc/os-release: 'yum' command is missing lxc_container: container creation template for centos…
Adrian
  • 45
  • 1
  • 2
  • 6
2
votes
0 answers

LXC containers act differently on difrent servers

I have two physical servers A and B. I wanted to upgrade them from Ubuntu 12.04 to 14.04. Here is my current setup (if I'm left out any info here, let me know and I'll add it): Server A: Ubuntu 12.04 ext4 on RAID and LVM lxc 0.75 Server…
zidarsk8
  • 394
  • 1
  • 3
  • 12
2
votes
1 answer

Can a Docker container uses the full CPU power and memory of the host OS?

I am new to Docker, but I have experience of using VM and hypervisor. Referring to Docker introduction and this image, Docker containers are isolated but share the same host OS. If we deploy only 1 Docker container (e.g. LAMP app) in a host OS, can…
userpal
  • 613
  • 4
  • 10
  • 17
2
votes
2 answers

How to route public ipv6 address to private lxc container address?

I have a pool of public ipv6 address I want to use to expose lxc containers. On the host machine I created a macvlan interface eth0-macvlan and bound a public address to it 2600:3c01:e000:83::1/64. I then bound the containers eth1 to and address on…
kevzettler
  • 167
  • 1
  • 3
  • 11
2
votes
2 answers

Byobu - How to disconnect from lxc-console

I am inside Byobu on ubuntu 12.04 and entered an lxc-console. Unfortunately, the escape sequence for lxc appears to be cntrl-a q. However this clashes with Byobu's which also uses cntrl-a sequence. I tried this questions answer of using cntrl-a a q,…
Programster
  • 495
  • 1
  • 13
  • 22
2
votes
2 answers

SLES DHCP Dynamic DNS: Unable to add forward map...: not found

I have a SUSE Linux Enterprise Server 11.3 install running on Amazon EC2 based off the official AMI. With DHCP and BIND configured (via yast) I'm having issues with Dynamic DNS. When a client connects to the DHCP server I receive the error…
Todd
  • 39
  • 1
  • 1
  • 3
2
votes
0 answers

lxc container doesn't start because - lxc_conf - failed to setup the console

I use ubuntu 12.04 server with all updates I was restarted lxc container by a command in shell: "reboot" lxc version is: 1.0.0~alpha1.0+master~20130930-1830-0ubuntu1~ppa1~precise1 #uname -a Linux zeus 3.5.0-34-generic #55~precise1-Ubuntu SMP Fri…
vskubriev
  • 686
  • 9
  • 15
2
votes
0 answers

Networking with lxc containers with local dhcp and external ipv6 double bridge problems

I want to use both ipv6 externally on all my containers, and ipv4 external only on the hosts. I am using Ubuntu 12.04 64bit. For ipv4 on the container I use the DHCP that came with the lxc installation. I got the setup working, but I'm not sure this…
Rocky
  • 21
  • 1
2
votes
1 answer

Is it possible to limit/throttle page faults with LXC container virtualization?

It's possible to limit a container to 512MB of RAM and 4GB of swap. However, if that container uses memory frequently that has been swapped out wouldn't it dominate the the IO resources of the storage device(s) containing the swap file(s)? What I…
Eloff
  • 137
  • 8
2
votes
1 answer

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 so that the default route can be set in the…
user176373
  • 53
  • 2
  • 4