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

learn more… | top users | synonyms

0
votes
0answers
7 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
14 views

How to let built-in DHCP assign a static IP to LXC container based on name, not MAC address

I know, that I can assign static IP manually, using /etc/network/interfaces. I also know, that I can read the MAC address of the LXC container (e.g. by looking for lxc.network.hwaddr entry in ...
1
vote
1answer
30 views

juju error executing lxc-clone local-provider

I'm trying to use juju with local-provider to setup juju-gui (and owncloud eventually). After "juju deploy juju-gui", juju status shows the error: agent-state-info: '(error: error executing ...
0
votes
0answers
7 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
1answer
30 views

Snapshot of a LXC container

Please, is it possible to migrate a container to a new node and restart it there ? And How? should i take a snapshot of the container or i transfer the repository to the new node ? (Beginner with ...
0
votes
0answers
26 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 ...
9
votes
5answers
4k views

How do I get the IP address of an LXC container?

I've written a few scripts to manage LXC containers, and I can get their IP addresses via ifconfig, assuming I'm connected to the console. I now want to connect to these containers via ssh. How do I ...
0
votes
0answers
14 views

Lxc with ovs and of-controller

For one of my project I have a setup as below on ubuntu 13.04 openflow controller(floodlight controller) | openflow switch | ____ |_________ | | ...
0
votes
0answers
17 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 ...
10
votes
2answers
6k views

What should i choose? LXC vs OpenVZ

As an alternative to Virtualizing several Ubuntu Servers im looking into the possibility of using containers. But I am not sure if I should go for OpenVZ or LXC. Can anyone recommend one of them, or ...
0
votes
1answer
20 views

How to bootstrap puppetmaster on lxc on Ubuntu?

Installation of puppet master on Ubuntu has always been a matter of luck and a lot of patience to me - there are many seemingly unrelated things to do which has to be done in the precise order, many ...
1
vote
0answers
71 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. ...
1
vote
0answers
20 views

Error Installing lxc 1.0.0

I am trying to install lxc 1.0.0 but I get this error when I run this command I have added the following repos to my sources.lst file deb http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu saucy main ...
1
vote
1answer
275 views

Forward port to LXC guest using UFW

I am trying to forward port 2222 on my host 192.168.2.252 to a LXC guest on 10.0.3.11. How do I do it using the UFW-framework? In other words I want to do this but with the ufw-framework. iptables ...
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 ...
0
votes
0answers
23 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
23 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
37 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
39 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) ...
8
votes
1answer
178 views

How do I “clean up” a machine after using the local provider?

I'm doing some testing and sometimes I have issues with containers and juju. How do I clean up a machine so that I can start using the local provider "from scratch" without reinstalling?
2
votes
2answers
2k views

Web Based Management For LXC Containers?

I need a way to manage LXC containers on Ubuntu Server 12.04 - similar to what Proxmox is. Googling indicates that openstack is one option - would this work?
0
votes
0answers
76 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 ...
1
vote
1answer
90 views

lxc-create says container already exists

I'm trying to create a container on a non-standard location, but lxc-create complains the roots already exists, when, in fact, it seems it doesn't. What am I doing wrong? ...
0
votes
1answer
235 views

How do I install a kernel module in an LXC guest machine?

I am attempting to install OpenStack DevStack on an LXC guest machine. One of DevStack's packages requires a new kernel module, but when I try to run modprobe on the LXC guest I get an error: ...
1
vote
2answers
131 views

Practical number of concurrent LXC limit on one node

Is there any practical limit on the number of concurrent LXC containers to run on one box. Obviously, this depend on the node spec (cpu, ram,..) but really what I am wondering is the cost of running ...
2
votes
1answer
69 views

Getting data from the outside into my linux container?

I'm trying to seperate my database and my PHP application by using LXC. I'm currently having some issues getting my code deployed to one of the containers - I don't understand how this should work. ...
1
vote
0answers
112 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
1answer
145 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 ...
0
votes
0answers
125 views

Ubunu cgroup architecture: cgroup-lite vs cgroup-bin and default config for lxc, libvirt-bin?

It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in ...
0
votes
0answers
169 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
18 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
82 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
vote
0answers
90 views

juju fails to spawn local LXC containers

The setup is ubuntu 12.04 updated to the 3.8 kernel to be able to use juju locally, container created using bootstrap, but it does not start: jmerelo@amy:~$ sudo lxc-start -n jmerelo-local-machine-1 ...
2
votes
1answer
144 views

How to change charm service IP from default 10.0.0.X if running juju on local?

I set up a private cloud on local following by https://juju.ubuntu.com/get-started/local/ and configured network followed by How do I run Juju on a local server? (The difference is the IP address in ...
0
votes
0answers
33 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.
2
votes
1answer
746 views

Allow loop mounting files inside LXC containers?

I'm trying to set up a MaaS server inside an LXC container. When I import the PXE files, it needs to be able to mount loop devices. I have set the following options in the container config file to ...
1
vote
1answer
879 views

lxc-start: failed to spawn

I tried following the steps to create and start an lxc container from here: https://help.ubuntu.com/lts/serverguide/lxc.html My host is running an up to date 64-bit Precise (12.04), and I'm trying to ...
1
vote
1answer
94 views

LXC: Can I guarantee a certain level of CPU resources to a given container

We're going to use LXC to multi-purpose our hardware while keeping the various applications easy to manage, develop, upgrade, and logically segregated. What I want to know is if I can guarantee ...
0
votes
0answers
251 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: ...
1
vote
0answers
71 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 ...
0
votes
1answer
201 views

unable to start lxc container

I have installed lxc in ubuntu server, every thing was working fine. Today I have updated lxc from version 0.7.5 to version 1.0.0.alpha2. After I update lxc, I am unable to start lxc containers. ...
4
votes
1answer
746 views

lxc containers hangs after upgrade to 13.10

I have 3 lxc containers. They were all working fine on 12.10 and I upgraded the containers with do-release-upgrade on the containers to 13.04 and 13.10 and that worked great. Then I upgraded the ...
4
votes
2answers
401 views

How to manage Juju's LXC containers using virsh?

I use the lxc driver for juju and I have created a local environment; actually the well-known Wordpress from https://juju.ubuntu.com/docs/getting-started.html. I then tried export ...
0
votes
0answers
22 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!
1
vote
0answers
25 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?
0
votes
0answers
184 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 ...
5
votes
1answer
964 views

Where are lxc containers security borderlines?

My question is around the security of an LXC container. If I am running multiple containers on my box, and give users a separate ssh access to their owned container, can any of those container hack ...
0
votes
0answers
331 views

How to assign an address to an LXC container which is in the same subnet as host?

My host has address 192.168.1.222 and I want my LXC container to have address 192.168.1.88. With the veth interface I could only assign an address that's in different subnet, e.g. 192.168.2.88. But ...
0
votes
1answer
709 views

How do I install lxc 0.9.0 on ubuntu Saucy

Ubuntu Saucy is shipping with lxc 1.0.0 alpha, it appears to be broken with Docker. How do I install 0.9.0 on it?
1
vote
1answer
92 views

Configure a container for using it with juju

Is there a way to use juju o LXC containers that have not been created by juju bootstrap? The only configuration options for local containers are the root-dir and the admin-secret, which I understand ...