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
159 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
34 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".
1
vote
1answer
92 views

Deploying multiple services in LXC containers in a VM hangs

To get started with juju, I installed it on a local machine(actually a xUbuntu VM running on windows). juju-gui got deployed successfully. Then used the gui to deploy mysql. But it's been hours and ...
1
vote
1answer
255 views

Upgrading lxc version

Trying to upgrade the lxc version from 0.7.5 to 0.8.0. Executed following command : apt-get install lxc But it didnt work the package is still 0.7.5. apt-get install lxc=0.8.0 Gives error saying ...
3
votes
0answers
145 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
185 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
376 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
56 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
66 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
552 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
273 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
133 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
33 views

How to give a Juju charm a static ip address - wordpress

I have a wordpress charm installed via juju. In order for me to access this charm through public ip, I port forwarded the ip into my server's public ip address. Recently, the ip address of the ...
1
vote
0answers
87 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
262 views

lxc container creation fails with `call to cgmanager_move_pid_abs_sync(blkio) failed: invalid request` (…)

I cannot create the lxc container. It used to work a few days later on this system, though. When I do sudo lxc-create -n abc -t ubuntu, the container's creation process seems to finish successfully ...
1
vote
0answers
253 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
264 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
134 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
30 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
693 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
111 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
76 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
6 views

network bridge not forwarding traffic from span port on router

I want to run several security network tools in LXC containers like ntopng, suricata, snort, etc. I hooked one of my server's NIC's up to a port that is spanned to my firewall... so basically this ...
0
votes
0answers
7 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
42 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 ...
0
votes
0answers
37 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
43 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
19 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
12 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
30 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
33 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
34 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
19 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
115 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
34 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
67 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
55 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
82 views

LXC 0.9.0 error

I am using lxc 0.9.0 and which we compiled and then created busybox container named 'yashu' but started it ,it gives following error yashu@yashu-pc:~$ sudo lxc-start -n yashu lxc-start: failed (98) ...
0
votes
0answers
318 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
22 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
146 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
114 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
37 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
331 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: ...
0
votes
0answers
31 views

python3-lxc and lxc parallel installation not possible!

every time i try to install one of the package lxc and python3-lxc the other one is removed from my system. How i can fix this problem? I need both for a project. Thank You!
0
votes
0answers
393 views

Network configuration in LXC- unable to ping IPs except LXC container IP

I have installed ubuntu server 12.04. I have installed LXC container. I started LXC container using lxc-start -n conrainername logged in using lxc-console -n contaniername -t 1. I prompted to ...
0
votes
0answers
132 views

Proper way to create a launcher for an LXC or ssh remote app?

I created a Unity launcher for an Eclipse-based IDE. This worked nicely; I could launch the IDE and/or switch to it with Meta-5 and all was good. Then I wanted to upgrade to 13.04, but the builds ...
-1
votes
0answers
8 views

LXC CPU and I/O priority alongside with KVM

I am switching most of my linux guests to LXC. In KVM i configured priorities with a script and config. The script just executed nice and ionice commands to kvm pid. Now I have LXC with linux and ...
-1
votes
0answers
21 views

juju not able to start lxc containers, because br0 not set up after reboot (bug #1271144)

I am about to set up a MAAS with Juju to deploy Openstack into it. I am using Ubunutu Server LTS 14.04.1 with Juju version 1.20.5-trusty-amd64. When i want to start an lxc container, i get ...