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

learn more… | top users | synonyms

2
votes
1answer
171 views

per user lxc containers

I am sure I saw how to do this on a webpage around the intergoogle somewhere. But Is it possible to have your system setup so when you create a user on your machine they log into their own LXC ...
1
vote
1answer
20 views

How to get access from nginx on host OS to files inside lxc-container?

I have Ubuntu 14.04 and lxc-container inside it. Both of host OS and container have nginx 1.4.6 installed. Container has ip-address 10.0.3.100 and located in ...
3
votes
0answers
218 views

Juju deployment fails due to “container failed to start” error

I had tried to deploy mysql and i had this error: agent-state-info: container failed to start Outputs from log as following: Line 47: machine-0: 2014-08-14 02:02:30 INFO juju.state.api ...
3
votes
0answers
266 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
210 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
435 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
109 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
85 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
639 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 ...
2
votes
0answers
303 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 ...
2
votes
0answers
134 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.
1
vote
0answers
8 views

juju can not start lxc machine

I am trying juj on an openvz VPS. when I try juju bootstrap it says: uploading tools for series [precise trusty] Logging to /home/danialbehzadi/.juju/local/cloud-init-output.log on remote host ...
1
vote
0answers
28 views

Openstack Juno Trusty LXC

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
57 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
73 views

Autostart Unpriviledged LXC Containers

I'm using Ubuntu 14.04 and have installed LXC normally. I've followed the official LXC documentation to set up unprivileged containers under a non-root user. These don't seem to support LXC's ...
1
vote
0answers
351 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
32 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
435 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
416 views

Modifying sysctl values inside lxc container

I have made several linux containers using the normal userspace tools (not docker), and I have been setting up a test environment. I want to set up two containers to try out heartbeat, which requires ...
1
vote
0answers
364 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
162 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
32 views

update lxc in ubuntu server

I have installed lxc-version 0.7.5 by apt-get update apt-get install lxc Now I want to update to either lxc-0.8.0 or lxc-0.9.0. How can I do this?
1
vote
0answers
718 views

LXC on Precise with linux-image-generic-lts-raring … do I get the full namespace support?

Kernel 3.8 adds full namespace support, as far as I am aware. The package linux-image-generic-lts-raring ("Raring Ringtail kernel") offers this on Precise Pangolin installations (screenshot): Older ...
1
vote
0answers
134 views

How to grant access to raw partition for lxc container

I'm using the Linux Containers as set by default in the package lxc. I'd like to give one of the container an exclusive access to one partition. Does anybody know, how to configure it? I'd like to ...
1
vote
0answers
78 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
11 views

Why is my cgroup size so small, how to fix?

I'm trying to build some Docker images, and I get an 'out of disk space' error. 2014/12/04 14:42:48 write /sys/fs/cgroup/devices/docker/10860.../devices.deny: no space left on device Looking at ...
0
votes
0answers
77 views

Systemd, cgroup, and LXC

After much trial and error, I was finally able to get Spice working in a Fedora LXC container under Ubuntu 14.04. However, the same can't be said of an Ubuntu 14.04 container. It appears that the ...
0
votes
0answers
23 views

WINE programs/processes isolation

I would like to completely isolate from each other two Windows programs running in WINE. I intend to block them from sharing memory, interprocess communication, files and using any possible ...
0
votes
0answers
42 views

Enabling systemd in Ubuntu 12.04 lxc container

Following is my setup I am running Ubuntu 12.04.1 Precise. I have and lxc container on it running upstart. I want to replace upstart with systemd. I modified the container's lxc with "virsh -c ...
0
votes
0answers
179 views

lxc/kvm containers fail to start

I have MAAS+Juju setup ready and was successfully able to deploy some openstack charms on specific machines. Then, I read that its safe and good practice to place these openstack charms in their own ...
0
votes
0answers
94 views

MAC address NAT with ebtables for IPv4 and IPv6?

I have a virtual machine running in VMware. It has Ubuntu 14.04 on it. I want to install LXC containers on it, and have them use the same address space as the virtual machine. So, I created a bridge ...
0
votes
0answers
47 views

Problem with NAT port forwading to LXC container

I have been trying to implement an instance of nginx in a LXC container on Ubuntu 14.04 as per https://www.digitalocean.com/community/tutorials/getting-started-with-lxc-on-an-ubuntu-13-04-vps Can ...
0
votes
0answers
38 views

How to get HDMI sound devices inside LXC?

I created LXC container in 12.04.3 Server and installed Gnome Display Manager to it. Now GDM works well, but I don't have HDMI sound. ubuntu@quintilis:~$ aplay -l aplay: device_list:252: no ...
0
votes
0answers
61 views

CentOS lxc on Ubuntu 12.04

I am trying to use CentOS 6.5 lxc on Ubuntu 12.04, but I have problems with installing rpm package on CentOS. Here's the error: [root@pgr ~]# rpm -ivh ...
0
votes
0answers
72 views

Link aggregation on a LXC bridge

I'm working on a server with a number of various interfaces (eth0-3) and I currently just use one for both host traffic and another for my LXC bridges traffic. Since I have a few spare ports just ...
0
votes
0answers
35 views

Can I share a host process with linux container?

On my Ubuntu 12.04 host, I have created a linux container p2. On the host I have nginx installed and running. My question - Can I share the running nginx on host with one or more linux container? By ...
0
votes
0answers
17 views

Guest session on server

I want to execute user supplied codes as guest session so it will not affect the opperationg system. When the server is running, is it possible to log create a guest session on server and execute user ...
0
votes
0answers
69 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 ...
0
votes
0answers
45 views

Linux Container Creation

I am new to linux containers and when I create a linux container with the help of the command lxc-create, it comes up with the following error : configuration path /var/lib/lxc not found The command ...
0
votes
0answers
49 views

cloning lxc container using python3-lxc

I am experimenting with lxc on ubuntu 14.04. In order to manage a couple of lxc instances I am using python3-lxc. Using pyhthon3-lxc, I do fail to clone an existing container: >>> import lxc ...
0
votes
0answers
31 views

Returning to host machine from linux container

I have installed lxc on my server, then created an lxc container (ubuntu template and name is master). Next I started my container master, then logged in by command lxc-console, then I logout from ...
0
votes
0answers
214 views

Prerouting SSH to lxc container?

I'm trying to ssh on my container but i'm getting these errors OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying ...
0
votes
0answers
49 views

unable to create more than one device with dmsetup inside lxc

I am using lxc for running encryption app.  The app run "dmsetup" on devices added in the container/VM. On running the "dmsetup create clear_sdb1" the device gets created as /dev/mapper/clear_sdb1  ...
0
votes
0answers
99 views

lxc-create with non default user

When using "lxc-create -t ubuntu" how does one specify the user of the new container? I don't want the default ubuntu:ubuntu but to specify my own unique username and password. I'm using lxc ...
0
votes
0answers
62 views

How to bind LXC instance to a virtual interface in Ubuntu 12.04?

I would like to bind my LXC instance to a virtual interface, eth0:1. All the other tutorials/guides I've seen involve setting the main interface to br0, and restarting the networking service, which is ...
0
votes
0answers
438 views

Trying to install vnc4server inside a docker (LXC) container

I'm trying to install vnc4server inside a docker (http://www.docker.io) container. Its a LXC container. The config file to setup this container reads: from ubuntu maintainer deb@sinhalabs.com run ...
0
votes
0answers
27 views

problems with lxc while chrooting a live 13.10 distro

Since 10.04 I'm used to customize a live, edubuntu-based distro we give to our students and all went in the best way until 13.10 came out; while with other releases I went at the end of customization ...
0
votes
0answers
159 views

LXC with Openstack

I have successfully deployed OpenStack Havana using Juju and MAAS. Virt type is LXC. What kind of images should I use to be able to launch LXC containers from Openstack and how to overcome the lack of ...
-1
votes
0answers
20 views

Ubuntu Trusty Tahr 14.04 LTS - Create lxc

Please, i try to create a lxc-container on Ubuntu 14.04 but i have an error message root@localhost:~sudo lxc-create -t ubuntu -n u4 Checking cache download in /var/cache/lxc/trusty/rootfs-amd64 ... ...