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

learn more… | top users | synonyms

1
vote
2answers
149 views

LXD,LXC containers security

I just want to know dose the Linux containers (LXD) provide security? Such that if on container get infected with a virus will that effect the entire system (kernel+other containers) Or it will ...
0
votes
0answers
43 views

Using aufs inside a lxc container

I'm not able to use aufs inside an unprivileged lxc container. Both host and container OS match (ubuntu-wily-amd64). A simple test on host mounts fine. All directories have are 777 for purposes of ...
0
votes
1answer
135 views

What images can you store in lxd containers?

What kinds of images can you store in LXD containers ?
0
votes
1answer
66 views

LXD snappy add and run continer

I have to install and run Ubuntu Snappy on the Raspberry pi 2. and I have install the LXD container using the command: sudo snappy install lxd.stgraber now i want to start make containers and run ...
0
votes
1answer
170 views

lxd: error: remote images exists as <https://images.linuxcontainers.org:8443>

I am using Ubuntu 15.04 desktop version. I have installed lxd successfully on my machine. Unfortunately while trying to add remote images i get following error message. $ lxc remote add images images....
0
votes
0answers
8 views

nm.d already present while launching multiple lxc application containers. Not able to launch more than 1 container

I want to launch lxc application containers on ubuntu. Am able to launch one container with an application. As am trying to launch second container with same application its giving nm.d daemon already ...
0
votes
0answers
19 views

shell script opens lxc container as root and stops executing the following commands. How to overcome this?

shell scripts executes to root@container and ignores the flags following the lxc-execute command. How to execute commands directly inside the container using shell script?
2
votes
1answer
114 views

Mount ZFS dataset in unprivileged containers

First a bit of information about my configuration: Ubuntu 15.10 ZFS pool created LXC containers stored in pool/lxc Dataset created in pool/mydataset owned by user1 Now I need one of the containers ...
0
votes
0answers
23 views

lxc assign MAC adress after first creation

I found much information in this question. But after system reboots dnsmasq assigns randomly IP addresses ignoring entities inside file: /etc/lxc/dnsmasq-hosts.conf So I checked logs and gets this ...
0
votes
0answers
14 views

Host users in lxc container

I try to build dev environments with different set of libraries in each of containers. It essential for me to use the same users in host and container. Is there anyway to make container use users, ...
0
votes
0answers
58 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 ...
3
votes
0answers
181 views

Automouting NFS share inside NAT'd 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 ...
2
votes
1answer
132 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
51 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 10.99.0....
1
vote
1answer
118 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
241 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
31 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 ...
1
vote
0answers
90 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 js-hp-lxc-...
0
votes
0answers
127 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
183 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
185 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 ...
5
votes
1answer
577 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
60 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
149 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
72 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
106 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
213 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
205 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
195 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 ...
3
votes
0answers
261 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 /lxc/...
6
votes
1answer
356 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
54 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
164 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
17 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
63 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 /etc/lxc/lxc....
0
votes
0answers
41 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 (https://www....
0
votes
1answer
168 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
49 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
14 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
337 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
1k 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
19 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
1answer
250 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 ...
1
vote
0answers
35 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?
3
votes
2answers
2k 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
580 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
89 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
370 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: 14....
0
votes
1answer
539 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
1answer
205 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 ...