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
167 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
107 views

LXC Is it possible to run a 12.04 container on 14.04

Other than the kernel only, is it possible to emulate an older install of Ubuntu? I looked in /usr/share/lxc/templates and it only has "lxc-ubuntu".
3
votes
0answers
250 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
205 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
423 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
197 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 ...
2
votes
0answers
103 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
83 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
628 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
297 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
35 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
60 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
36 views

How to make a HDD device file /dev/sdxY available in lxc container?

I created a lxc container with sudo lxc-create -n ubuntu-trusty-amd64 -t ubuntu -- --arch amd64 --release trusty on Ubuntu 14.04 with lxc 1.0.5-0ubuntu0.1 and realized that there're no device files in ...
1
vote
0answers
262 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
26 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
405 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
399 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
344 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
148 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
715 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
131 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
9 views

How to modify rootfs of an unprivileged LXC container?

I have configured for namespaces for unprivileged LXC containers using this docuement https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-unpriv I can create and start containers using lxc-create ...
0
votes
0answers
17 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
30 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
104 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
81 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
30 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
33 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
60 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
69 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
31 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
16 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
60 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
44 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
47 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
29 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
205 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
92 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
415 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
157 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 ...
0
votes
0answers
130 views

unable to login into lxc-container

I have installed lxc in ubuntu server and created two lxc container. Every thing working fine untill I update lxc to latest version. After lxc update, I am able to create new containers, start and ...
0
votes
0answers
38 views

Run an application from a separate installation of Ubuntu

Is it possible to run using lxc application from already installed distribution on another partition? Specifically it would be steam on wine.
0
votes
0answers
389 views

102.04 LXC unable to create macvlan

I'm having problems creating a macvlan for a container on 12.04. In a terminal it works fine: $> ip li add link eth0 mac0 type macvlan But when in a container config it give the error: ...