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

learn more… | top users | synonyms

4
votes
0answers
510 views

A Linux container can use an authorized_keys file outside my home directory, but ephemeral containers based on it can't. Why?

In Ubuntu 12.10, I've created an LXC of type 'ubuntu' using the lxc-create utility. I then create ephemeral containers based on this container using the lxc-start-ephemeral utility, and I need to ...
4
votes
0answers
153 views

How I can run Android 4.0.4 in chroot on Ubuntu 12.04 on the Pandaboard ES?

I want to run fully functional Android 4.0.4 on my Ubuntu 12.04 installation on the Pandaboard ES with the LXC containers.
3
votes
0answers
35 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 ...
3
votes
0answers
36 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. ...
3
votes
0answers
122 views

Wordpress deployed with JUJU using LXC fail

When I deploy the wordpress and mysql charms with juju on my maas controller like so: juju deploy --to lxc:0 wordpress juju deploy --to lxc:0 mysql juju add-relation wordpress:db mysql:db --debug ...
3
votes
0answers
566 views

apt-get in LXC container is very slow on Ubuntu Server 12.04

I haven't had much luck in finding out the source of the issue, whether this "issue" is simply a limitation of LXC or zfs, or whether this issue is specific to Ubuntu. The issue is quite simply that ...
3
votes
0answers
1k views

“Can not write log, openpty() failed (/dev/pts not mounted?)”

I used this post to install LXC. The installation is success and creating the container complain give this message: "Can not write log, openpty() failed (/dev/pts not mounted?)" but in the end ...
3
votes
0answers
314 views

How do I get the VT running X in my LXC container to my host?

I'm trying to run Lubuntu within an LXC container on my host already using a GUI. Is it possible to redirect the X output from the container to say; VT9 rather than VT7? If so where is the VT7 ...
3
votes
0answers
619 views

How to create dm-crypt device in LXC?

On one LXC container I need to put sensitive data, preferrably stored in dm-crypt encrypted filesystem. When I write sudo cryptsetup luksFormat --cipher aes-xts-plain --size 512 ...
2
votes
0answers
57 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 ...
2
votes
0answers
225 views

LXC bridging with two NICs

I am setting up a server to host a number of LXC containers, for now just isolating web and db services. The server I am using has two NICs and I'd like to use one for host traffic and one for ...
2
votes
0answers
149 views

net_cls and ns subsystems not available in 12.04?

I'm playing around with cgroups and I noticed when I try to list all available subsystems that the network ones are not available ? Running the following command should list ALL available subsystems - ...
2
votes
0answers
879 views

Another LXC Puzzle

So my server is running... Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring I stumbled onto lxc when I trying to find something to replace vmware on a small ...
1
vote
0answers
15 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 ...
1
vote
0answers
139 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 ...
1
vote
0answers
166 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
108 views

Container namespace isn't visible in ip netns list

I wonder why we can't see the namespaces created by lxc-create on the output of "ip netns list" For example I create a namespace like below lxc-create -t download -n cont1 -- -d ubuntu -r trusty -a ...
1
vote
0answers
65 views

Up to date LXC template for Ubuntu

Currently we are using LXC to deploy a web application, each time we deploy a new and separate container is freshly built. The container is based on Ubuntu 14.04, but the problem is that the template ...
1
vote
0answers
28 views

Ping to LXC container

Please, I try to do ping 10.0.3.8 (ip of LXC container) from VMB but it didn’t work ! Have you an idea please ? Here is an explanation of what I want do: (red arrow) The blue arrows means that the ...
1
vote
0answers
188 views

Can I deploy to LXC in a Juno/trusty environment?

This is a follow up on Juju Icehouse-Openstack LXC. It seems that Trusty and Juno combo also do not allow LXC instantiation, i.e., Changing "virt-type" in nova-compute charm does not change ...
1
vote
0answers
458 views

Creating LXC container using iso file

Is it possible to create an LXC container from iso file? Following points might give you better context about what I want I have created my own distro by following "How to create customized ubuntu ...
1
vote
0answers
2k views

LXC container no outgoing traffic with bridged network and public IP address

I try to setup a LXC container with bridged network on ubuntu 14.04.1, but the outgoing traffic seems to be blocked. Ping another IP than the container's one is not working. Actually I tried this with ...
1
vote
0answers
108 views

How to enable loop dev access from LXC?

I added the following line to the LXC container's config file in order to enable access to loop dev. The LXC is running Ubuntu 12.04: … lxc.cgroup.devices.allow = b 7:* rwm … However, the container ...
1
vote
0answers
697 views

setting macvlan bridge for lxc containers

I am trying to create containers which can be accessed from outside. So i've chosen the macvlan mode of networking which can assign an IP to the containers in the same network as the host. I have ...
1
vote
0answers
194 views

logging into a LXC container

Trying to create LXC container to run 32bit Wine on my 64bit machine. I have done all as instructed. Then coming to the part, where to start the container: sudo lxc-start -n my32bitbox After a ...
1
vote
0answers
900 views

How to store LXC container's files in another folder

Well the answer seems to be given on https://help.ubuntu.com/13.04/serverguide/lxc.html#lxc-hostsetup page under Using a separate filesystem for the container store title but it doesn't work for me. ...
1
vote
0answers
359 views

How to log into lxc container?

I recently installed the 32 bit lxc container on a 64 bit Ubuntu 12.04 system. When I run the command sudo lxc-start -n my32bitbox I am greeted with a login prompt. I enter the default login and ...
1
vote
0answers
107 views

What facets should I consider when deciding which guest to jail in (“full”) KVM and which in LXC?

Currently I am migrating to a new server. The old one ran 10.04 as host system and a few more 10.04 and Debian 6 as KVM guests. This was alright, because the processor had support for virtualization. ...
0
votes
0answers
10 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 ...
0
votes
0answers
18 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
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
21 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
55 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 ...
0
votes
0answers
47 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 ...
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
0answers
32 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 ...
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
80 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
18 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
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 ...
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 ...
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?
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
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
0answers
28 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
0answers
70 views

Why arn't LXC instances registered in MAAS DNS?

Using the machine tab of the juju-gui charm, I can add LXC instances without deployed charms on them. I'm not confident enough with the idea, that on a high abstract level of a machine, there is any ...