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
1answer
62 views

Why host stops when halting LXC guest?

I'm following these directions to create an LXC box on Debian 7 (wheezy): http://fabiorehm.com/blog/2013/07/18/crafting-your-own-vagrant-lxc-base-box/ I start a container/guest using this command: ...
1
vote
1answer
333 views

How to isolate two containers connected to the same bridge?

I have several LXD containers which are bound to a single bridge (the default lxdbr0 or another one, it does not matter). The host itself has another two interfaces, one ultimately connecting it to ...
41
votes
6answers
48k views

How to disconnect from lxc-console

I'm working with lxc in Ubuntu 12.04, and it's really great. However, I am unable to disconnect from a lxc-console session after I've connected. I read somewhere that Ctrl-aq will disconnect me from ...
1
vote
1answer
4k views

How to create a LXC container on LVM from an OpenVZ template?

I have a lot of experience using OpenVZ, but I want to give LXC a try on a server where perfect isolation is not a concern. The main reason for the switch is preferring Ubuntu Server LTS as the base ...
1
vote
0answers
344 views

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 ...
1
vote
1answer
1k views

Cannot start mongo - Mongo killed

I tried to migrate my Mongo installation from 14.04 to 16.04 using a new LXD Container. I used the previous configuration file that can be found below. mongod.cnf # mongod.conf # for ...
0
votes
0answers
132 views

Strange behavior of web stress tests

After some server configuration, i decided to do a stress test using siege. 2 front servers in lxc containers, load balancing nginx - on the host machine. (if need, I add nginx and sysctl configs ...
1
vote
2answers
1k views

Intermitent connection issues inside LXC

I am experiencing connection issues inside a LXC that are driving me mad. They are intermitent. They appear during some time, and they suddenly disapear. Scenario A lxc inside a host. Both are ...
0
votes
2answers
1k views

Proxmox VE 4.2 issue on OVH servers,LXC can't access internet

I have replaced the IP with dummy IPs. 1.2.3.4 is the main IP 5.6.7.194 is the LXC Dedicated IP Details for main server: Main IP network interface 1.2.3.4 auto lo iface lo inet loopback iface ...
0
votes
2answers
489 views

sshd doesnt work (but started) in lxc (ubuntu)

When I'm trying to connect with ssh ubuntu@10.0.0.* it fails with Read from socket failed: Connection reset by peer, and I can connect to containers only with lxc-attach -n (name). How can I fix ...
1
vote
1answer
263 views

replicate lxd bridge in /etc/network/interfaces and dnsmasq

I have a Ubuntu 16.04 server and default LXD configuration. Typically, when an image comes up, this happens: eno1 Link encap:Ethernet HWaddr b8:ae:ed:ea:69:41 inet addr:192.168.0.3 ...
0
votes
0answers
437 views

Softether on lxc container with bridged connection

I've configured an lxc container with softether. The lxc container has a bridge connection, so I have a LAN IP with my lxc container. Here's the IPs of my office: Router/DHCP Server: 192.168.1.1 ...
3
votes
1answer
2k views

Mounting a network file system inside LXC on Ubuntu 12.10

On an Ubuntu 12.10 server, I created an Ubuntu cloud lxc container. In the /var/lib/lxc/MY_CONTAINER/config file, I uncommented the line: lxc.aa_profile = unconfined and started the container. ...
1
vote
1answer
353 views

Prioritizing I/O in LXC on Debian (without LXD)

I had a couple machines where I used OpenVZ and recently, on newer versions of Debian (Jessie), I've been using LXC. I need a way of giving one container priority on host I/O resources, I could do ...
3
votes
1answer
5k views

Vsftpd doesn't work in passive mode in LXC container

I'm beginner in Docker, I have a vsftpd in a Debian and for passive mode I configured in vsftpd: pasv_enable=YES pasv_min_port=65000 pasv_max_port=65000 pasv_address=192.168.1.31 and I show with ...
1
vote
1answer
3k views

Mount Block Device in LXD

I have been experimenting with LXD on Ubuntu Server 16.04 and i'm trying to figure out how to mount a linux block device from the host in the container. I was able to successfully add the device using ...
4
votes
1answer
448 views

SELinux on CentOS7-based LXC?

Is there any way to enable SELinux on LXC-based container using proxmox 4.2?
0
votes
1answer
1k views

Proxmox-Server reboots sporadically

I just mentioned that my proxmox-system is rebooting from time to time when performing backup-tasks (bacula, not the proxmox-backup-system). The logs are showing the following: Mar 8 02:30:01 ...
3
votes
0answers
320 views

Automate the LXD configuration interactive setup?

I realize lxd init has an interactive setup for networking, etc. I'm looking to automate some VM's running LXD and was wondering if there is a nice CLI command that documents this configuration as a ...
1
vote
1answer
455 views

LXC (proxmox) JBD high (100%) IO utilisation

We have a dedicated server running a number of smaller guest VMs containing for example, HTTP server, MySQL and some real-time applications. However we find that JBD inside the guests are often ...
1
vote
1answer
54 views

Port forwarding prevents container from updating

I use the following route on my host machine in order to pass all my traffic to a NGINX server running at port 8080. -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 Unfortunately when I ...
1
vote
1answer
107 views

Upgrading Debian Squeeze with OpenVZ to Debian 7/8 with LXC

I have a few servers which are running Debian 6 (Squeeze) which uses OpenVZ to run containers. The containers are some Debian 6 and some Debian 7. Squeeze was the last version of Debian to support ...
4
votes
3answers
3k views

Reach LXC container from a virtualbox guest on the same host

Context I develop websites on my Ubuntu laptop (Ubuntu 13.04 64b). Each site runs within a dedicated LXC container¹ on network 10.0.3.x I sometimes need to reach those sites from a virtualbox guest ...
0
votes
1answer
454 views

bridged LXC: container's mac address learned on wrong interface

Ubuntu host has p2p1.17 physical interface attached to bri17 bridge. LXC container FOO has following net config: lxc.network.type = veth lxc.network.link = bri17 lxc.network.hwaddr = 00:16:3e:aa:aa:...
1
vote
0answers
80 views

What is the network connection speed between two containers communicating via a virtual bridge running on the same host?

Does a virtual bridge (added to /etc/network/interfaces) limit the transfer speed of data from the memory of one lxc/docker container to another? For example does the memory throughput drop to that ...
1
vote
0answers
329 views

Proxmox: Add IPs from different subnets to LXC-container

I am using proxmox 4.1. If I add IP-addresses to my CentOS-7-LXC I can only do that if this IP is from the same subnet. If I'm using another subnet with another gateway the container is not pingable ...
9
votes
3answers
5k views

Why LXC when there is linux-vserver?

I am no LXC expert, but as far as I know it is really similar to linux-vserver. If that is correct, I wonder why there is another player in the already crowded virtualization camp? What does LXC ...
1
vote
1answer
30 views

lxc 1.1.2 on Debian Squeeze

I am running lxc 0.8.0 inside Debian Squeeze (Linux kernel 3.4.34). Does anyone run lxc 1.1 or newer inside Linux kernel 3.4? As I know, docker require Linux kernel version at least 3.16. What is the ...
1
vote
1answer
51 views

Connect virtual subnets from two physical host

I have proxmox 4 based on debian 8 on two hosts A and B. Both have two NICs. One NIC from each host is connected via a Crossover cable. Host A: eth0: public IP eth1: 10.0.0.2/24 vmbr1: 10.0.0.1/24 ...
3
votes
0answers
1k views

IOTOP on LXC -> Netlink error

unfortunately I can not use iotop on proxmox-lxc-container and debian 8 template. This is the output: Traceback (most recent call last): File "/usr/sbin/iotop", line 17, in <module> main() ...
2
votes
2answers
1k views

MySQL doesn't start after upgrading to Debian Jessie

I have a server with Proxmox 3.4 with several OpenVZ-containers. Host and all guests are running Debian 7 x64. Now I want to migrate my old setup to a new server with Proxmox 4 (based on Debian 8). I ...
1
vote
1answer
952 views

lxc, how to control which interface lxcbr0 is defined on?

We have a host with production and management networks. Using the default setup, containers use lxcbr0. However, we cant find where this interface is defined, or which of our networks (management o ...
-1
votes
3answers
591 views

Can Docker Corrupt a Software RAID Setup? [closed]

I read that software RAID should not be implemented on a machine that also has ESXi virtual machines running. Does this mean that I would want to avoid LVM and or LXC/Docker containers as well on this ...
2
votes
2answers
375 views

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 <container> This is the output: Arch Linux 3.19....
0
votes
2answers
885 views

ubuntu 14: how to configure bridge for bonded interface?

We have a server connected to 2 switches via two NICs. On each NIC are 2 VLANs, management and production. Right now we only have one switch connected, so haven't setup the spanning tree etc. We ...
0
votes
2answers
721 views

Proxmox: Node's load at 70, 2 containers are not responding, but top shows nothing

I got a huge problem. Some of my Proxmox-based LXC-containers are not responding since 2 days if I do not reboot the node. This happens always at the same time in the night (I guess there is ...
0
votes
0answers
478 views

squid in lxc container - don't want to work

I have a default Debian Jessie (amd64) host, minimal install, which runs a linux kernel 4.3.5 form backports repo. I've installed on it an lxc container (template download, selected system is a debian ...
1
vote
0answers
588 views

LXC SSH too slow in CentOS7

I have a newly created centos7. I installed the LXC and create a configuration: lxc.network.type = veth lxc.network.link = lxcbr0 lxc.network.hwaddr = fe:84:8b:f1:76:8e lxc.network.flags = up lxc....
1
vote
1answer
552 views

zombie lxc swap file: text file busy but no pid

I have a server running Ubuntu 12.04.5 LTS (Precise Pangolin). On that server I created a new Linux container: $ sudo lxc-create -n mycontainer After a while I decided to get rid of this container: ...
3
votes
2answers
3k views

How to use Ansible to manage remote lxc containers?

How can I use Ansible to execute tasks on lxc containers on a remote server? We use Ansible to deploy our code on several servers (physical and virtual machines). Until now, every instance had a ...
1
vote
2answers
790 views

Will Linux/Ubuntu running in an LXC container understand cgroup memory limits?

I'm planning to rent a physical server and run MySQL inside an LXC container on that server. I'd like to control maximum memory usage for the MySQL instance using cgroup limits : lxc.cgroup.memory....
3
votes
1answer
3k views

CGroups memory limit not working

I am trying to limit memory usage for a LXC container using CGroups, but I can't limit the memory. # lxc-cgroup -n maxdaniel981 memory.limit_in_bytes 134217728 lxc_container: failed to assign '...
1
vote
0answers
570 views

postgresql in lxc container doesn't start after reboot

Debian stable (Jessie) I have few containers - in one container there is postgresql. I want to start it first (I hope that my config does it). After reboot all containers starts, but i can't log in ...
0
votes
1answer
307 views

lxc/lxd iptables ouput owner rule errors out with “Invalid argument.”

If I try to run the following command in my lxc/lxd Ubuntu 14.04 amd64 container: iptables -A OUTPUT -p tcp -m owner --uid-owner 0 -m tcp --dport 80 -j ACCEPT I get the following error message: ...
2
votes
1answer
2k views

FTP proxy with SSL support

I have a bunch of LXC containers with vsftpd daemon installed on each. I would like to forward/proxy traffic from dom0 server port 21 to particular containers based on ftp user name e.g. user@domain....
2
votes
0answers
285 views

LXC bridge with several IP addresses

While trying to setup a small server with LXC containers, I encountered a problem: I want to assign 4 different IP addresses: 1 address for the host and 3 addresses in a different net for the ...
1
vote
1answer
55 views

Why do I need to start services using sudo when logged in as root in an LXC container?

I've got an unprivileged LXC container which I've set up following the steps outlined on Stèphane Graber's website. Things work pretty well, but I'm having trouble starting php-fpm even though I am ...
0
votes
1answer
56 views

Is it possible to run Ubuntu 15.10 in a lxc container on an Ubuntu 14.04LTS host?

I did not find any hint about it... Is it possible to run Ubuntu 15.10 in a lxc container on an Ubuntu 14.04LTS host?
0
votes
1answer
122 views

Having one of many public IP addresses for LXC only

I have VPS server hosted using Xen from hosting provider. I am assigned few IP addresses (*.*.56.234, *.*.56.235, *.*.56.236, ...), however there is one physical network device eth0. The host is ...
0
votes
1answer
118 views

systemd-networkd not recieving DHCP IP in cloned container

I am trying out LXD, and created a barebones Arch Linux image from scratch. It works perfectly the first time the image is used, but cloning the container or reusing the image causes networkd to not ...