The LXC tag is for questions relating to LinuX Containers and lightweight virtualization capabiliaties, issues, and troubleshooting.

learn more… | top users | synonyms

0
votes
0answers
8 views

lxc container not resolvable with IPv6

I set up a container on Ubuntu 14.04 trusty. The container also uses Ubuntu 14.04 trusty as template. The network is set up as bridged. My network interface from the hosts (eth0) is bound to the ...
1
vote
0answers
17 views

Automouting NFS share inside NAT'ed LXC container fails

I have 2x Ubuntu 14.04 LXC setups One is on bare metal hardware and containers are assigned IP adresses directly from the network The other one is on an ESXi virtual machine and using NAT via the ...
0
votes
1answer
13 views

How do I set an LXC container to start on boot in 15.10?

15.10 uses the new db based config system. Getting this done requires adding a directive to the container's config using lxc config edit containernanme. Problem is I can't find the config docs (15.10 ...
0
votes
1answer
16 views

bridge and LXC container on two cloud server

I have problem with the configuration of bridge and lxc container on cloud server. I Have two cloud servers. On each cloud I've created bridge by brctl like: brctl addbr $bridge ip addr add ...
1
vote
0answers
14 views

Juju LXC Containers getting wrong DHCP?

I'm using a networking similar to this one: http://www.openstackbasement.com/maas-network-hardware When I run: juju deploy --to lxc:0 mysql juju deploy --to lxc:0 keystone etc... According to ...
0
votes
0answers
15 views

LXC USB Passthrough 2

Recently i managed to try LXC containers. I've installed Proxmox 4.1 as host and got 3 Ubuntu 14.04 containers. Everything seems to work fine but i cant get my USB Hasp keys passthrough. Each ...
0
votes
0answers
26 views

Network Error in Unity 8 [on hold]

I am trying to install the Unity8 desktop preview, but whenever I try to set it up with unity8-lxc-setup, I get the message" Starting the Container" a pause of about a minute or two, and then the ...
0
votes
0answers
19 views

Is there a way for one Linux container to see other containers' network traffic?

I created three Linux containers with default configuration, started sending packets from one to the other, and tried sniffing the network from the third one by putting the nic in promiscuous mode and ...
0
votes
0answers
19 views

LXC multiple unprivileged containers UID & GID questions

I created multiple unprivileged LXC containers successfully. However they all have the same UID and GID as follow: ls -l /.local/share/lxc total 12 drwxrwx--- 3 100000 js 4096 Jan 21 20:20 ...
0
votes
0answers
52 views

Upgrade failed on lxc container

I was running an upgrade from 15.10 to xenial on an lxc container remotely, while it went offline. Restarted the container and seems to work fine, apache, mysql except it cannot be accessed via ssh ...
2
votes
1answer
51 views

Port forwarding between bridged interfaces

So I have a bunch of bridge interfaces bound with my main ethernet device (em1, blame HP). These serve various LXC containers I have running on my server and easily allows me to access them from other ...
0
votes
0answers
44 views

Working with screen sessions in LXD-managed containers

I have been trying to attach and detach screen sessions in LXD-managed containers; initially, I wasn't able to even start one, but that problem was answered here. However, being able to start a ...
3
votes
1answer
143 views

Start a screen session inside LXD-managed container

I'd like to start a screen session inside an LXD-managed container so that I could detach running processes and maybe re-attach in the future when I want to check on their status. I tried to attach ...
0
votes
0answers
23 views

LXC Ubuntu container. Hash Sum mismatch

I am installed Ubuntu container (wily) onto Ubuntu host(with wily too) with such command: # lxc-create -t download -n es1 -- --dist ubuntu --release wily --arch amd64 Everything fine, I can ping ...
0
votes
1answer
43 views

Error as a result of purging unity8-lxc

user@user-K53SD:~$ sudo apt-get purge unity8-lxc Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: unity8-lxc* 0 ...
0
votes
0answers
28 views

How to make a mounted harddrive available inside an LXC container?

I want to make a mounted hard drive available inside an LXC container for a postgres database. when I run sudo lsblk on the host I can see the hard drive in the following way: NAME ...
3
votes
0answers
34 views

How can I kill a stuck LXC container?

I have a new unprivileged LXC container that I just cannot seem to stop. lxc-stop -n dl hangs. lxc-stop -k --nolock -n dl hangs. lxc-ls hangs. lxc-attach -n dl hangs. Nothing works on this container. ...
0
votes
1answer
68 views

debootstrap nested in the LXC container fails to mount proc because of apparmor

The command that is run inside an amd64 LXC container: debootstrap --arch armhf --foreign --variant=buildd --components=main,restricted,universe,multiverse vivid /var/lib/schroot/chroots/vivid-armhf ...
0
votes
1answer
39 views

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs?

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs? Would the drivers need to be installed on the host, guest or both? Do they support exclusive usage by using PCI ...
0
votes
2answers
99 views

apache2 not responding to requests from outside the local network

My apache2 install on 15.10 is responding fine when called from the local network segment. http works externally, https times out. I spent a couple days checking everything the docs suggest. Apache ...
1
vote
0answers
137 views

Failed to reset devices.list on /lxc/mailserver/system.slice/dovecot.service:

I am running dovecot in an 15.10 lxc container. When I restart the service I get the following error in the syslog. Dec 4 03:02:04 mailserver systemd[1]: Failed to reset devices.list on ...
6
votes
2answers
177 views

Allow a LXC container user to write as an external user to a mounted directory

Apologies for the title, the setup is actually quite simple. I have a host with a user called oli and a directory called /media/steve/incoming that oli can read-write-execute in. Within that I have a ...
0
votes
0answers
32 views

LXC without NAT

I have an LXC Container that I want to be "directly" connected to the Internet, not as a NAT. I have an IPv6 RA agent that would assign it an IPv6 address and/or DHCPv4 for a regular 192.168.1.0/24 ...
0
votes
0answers
76 views

Can't create LXC containers due to “E: Couldn't download packages”

I want to install LXC on my Ubuntu 14.04 LTS so can further have a virtual Ubuntu. And I've inputted apt-get update, upgrade, install lxc. Everything seems fine. But when I try to create a virtual OS, ...
0
votes
0answers
14 views

LXC strorage directory

I am trying to change my lxc storage directory from /var/lib/lxc to something else like /var/directory1 I added the line lxc.lxcpath=/var/directory1 in the lxc configuration file in /etc/lxc/lxc.conf ...
0
votes
0answers
17 views

change lxc storage directory

I am trying to change my lxc storage directory from /var/lib/lxc to something else like /var/directory1 I added the line lxc.lxcpath=/var/directory1 in the lxc configuration file in ...
0
votes
0answers
21 views

LXC to use IPv6 from HE tunnelbroker

I installed lxc on Ubuntu 14.04 64 bit. All work well. The containers can access internet via the default lxcbr0. Now I get a /64 and a /48 from Hurricane Electric Tunnel Broker ...
0
votes
1answer
41 views

lxd forkstart: the famous error

I just started diving into the cloud computing, trying to hypervisor my ubuntu server. I started with LXD but it raises few issues at early stage. Whenever I want to create a container lxd send this ...
0
votes
0answers
23 views

How can I use LXC to create a working copy of the Ubuntu Development Branch on my system?

What I mean is that the unity8-lxc package allows one to log into a working Unity Next distribution (rather than the unity8 package from Trusty) from LightDM. Is there a way of using LXC to do this ...
0
votes
0answers
13 views

lxc-container with 15.04 under 14 LTS

Does anyone have experience with running the 15.04 release under an LXC-container in a setting where the host OS is 14 LTS server? I was running matching Ubuntu version in the container before (that ...
1
vote
1answer
110 views

LXD container refusing connections from the host

I'm pretty new to LXD having recently discovered it. I'm making progress with the basic interactions with images and containers - it looks promising. Currently I am stuck on a problem connecting ...
1
vote
1answer
778 views

Ubuntu openstack single installer on ubuntu 15.10 Wily

The only release I can successfully run the entire single-installer on is 14.04. Since then on 15.04 and now on 15.10 I cannot get the single-installer to succeed. on 15.10 I have tried each of ...
0
votes
0answers
16 views

seccomp inside lxc container seems not working

I am trying to apply seccomp security policy inside lxc container. I wish to restrict the application running inside container from using system calls like fork, fwrite. I explored a given seccomp.c ...
1
vote
0answers
163 views

How-to upgrade LXC container after `do-release-upgrade` to Wily?

I have just done a do-release-upgrade -m server from Linux boson 3.19.0-31-generic #36-Ubuntu SMP Wed Oct 7 15:04:02 UTC 2015 x86_64 Linux-3.19.0-31-generic-x86_64-with-Ubuntu-15.04-vivid to ...
0
votes
0answers
23 views

User login directly into LXC container

Is it possible to setup host system so that some users will be immediately in corresponding LXC container after logging in?
1
vote
1answer
212 views

Adding a shared host directory to an LXC/LXD Container

I have been experimenting with LXC/LXD on Ubuntu 14.04 and it's all working great. I just need to figure out how to get shared directories working between my host machine and a container so I can ...
1
vote
1answer
309 views

unity8 with ubuntu 15.10

I want to use unity8 preview with ubuntu 15.10. But i am unable to log in as administrator. Only guest session is accessible. When i try to login with admin password the screen just hangs and become ...
0
votes
0answers
54 views

Upgrading kernel from 3.2 to 3.13 on Ubuntu 12.04 with preexisting LXC containers

I'm running several LXC containers on Ubuntu 12.04.5 LTS (Precise Pangolin). The current kernel is 3.2; I would like to upgrade the kernel to version 3.13 (or later) so that I can use Docker. Will ...
0
votes
1answer
216 views

Unprivileged LXC Container fails to boot on startup with 'call to cgmanager_create_sync failed'

I have some issues trying to start an unprivileged LXC container in my machine. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: ...
0
votes
1answer
172 views

How to Migrate Physical 12.04 Machine into LXC

Is there a standard way (or standard tools) to migrate physical machines into LXC containers for Ubuntu? I'm working with 12.04.5 machines. I have come across https://github.com/deimosfr/lxc-convert ...
0
votes
0answers
71 views

14.04 no internet connection when I up the bridge interface (for LXC container)

I have VM Ubuntu 14.04 32bit running in VMware Workstation on Win 10. I'm trying to set up the LXC container having its own IP address so I set the bridge interface in /etc/network/interfaces (tried ...
0
votes
0answers
54 views

How to forward network traffic for a lxc-container, bridged to a LAN?

I have following setup: Router [192.168.4.1, 192.168.5.1] Client01 [192.168.5.2] ---------------------------------+ Router LXC-Host01 [192.168.4.2 (bridge), 192.168.5.3] -----------+ Router ...
0
votes
1answer
28 views

Change the DHCP range for LXC without changing physical interfaces

I am trying to change the DHCP range of my LXC containers. By default , ow addresses given by the dhcp are 10.0.3.X. how can I change this range so my containers can have IP in the range 10.0.2.X. PS: ...
2
votes
1answer
180 views

Manually provision an existing LXC container in Juju-local

Is it possible to manually provision an existing LXC controller in juju (1.24)? I have tried following (ubuntu-trusty): Setup juju local Create an lxc container, install systemd-services and ...
2
votes
0answers
56 views

Juju local / add-machine / lxc: How to specify hostname of new lxc-machine

Is it possible to specify hostname (and machine-name) when creating a new lxc machine in juju-local? For excample, after a fresh juju local bootstrap, execute: juju add-machine This will create a ...
0
votes
0answers
26 views

lxcstart hangs on the container if it is already created

I am exploring containers with the lxc command and I noticed this: root@itaswi01:~# lxc-start -n cn-01 -l trace -o debug.out If I try to start a container that's already started, the command hangs. ...
0
votes
1answer
228 views

ufw not working in an lxc container

I've created an LXC container on Ubuntu Server 14.04.1 using the default template. I log into it, and run the following: sudo apt-get update sudo apt-get install ufw sudo ufw allow 22 At this ...
1
vote
1answer
394 views

LXC is returning an error when creating new unprivileged containers

I recently migrated to a new server (Ubuntu 14.04, dedicated, not virtual) and installed LXC 1.1.2. I had LXC set up on my previous server without any trouble but on the new server I'm consistently ...
2
votes
1answer
727 views

How to persist configuration changes accross restart with LXD containers?

I am experimenting with LXD, but I'm stuck with a seamingly simple problem: I can't make my bridge config persistent. The host server has a birdge br0. By default, lxd managed containers will use ...
0
votes
2answers
441 views

How do I allow /dev/net/Tun in a LXD managed LXC container?

I am trying to get Openvpn run inside a LXD/LXC container, and redirect traffic coming to the container to the VPN. The purpose is to replace a fully fledged VM that does exactly that (and toy with ...