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
25 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
16 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 ...
1
vote
0answers
26 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
1answer
30 views

Fedora as LXC container [closed]

I have LXC running with several Ubuntu containers and I am happy with it. The problem is, when I try to setup Fedora using: lxc-create -t fedora -n fedora I get: warning: ...
1
vote
0answers
17 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 ...
0
votes
1answer
15 views

LXC utsname does not work

I have created a LXC by cloning it from already existing LXC by using command lxc-clone -o u1 -n u2. When I start the u2 it comes with a prompt u2 login. Till this point it is fine. However, when I ...
1
vote
0answers
126 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
18 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 ...
0
votes
2answers
142 views

Configure LXC with additional IP ubuntu 14.04

I'm still looking for answer on my question. I have a dedicated server with ubuntu server 14.04, and 2 public ip. I want to add 1 public ip per 1 lxc. I think i've tried everything and nothing helped ...
0
votes
1answer
24 views

I'm trying to get started with LXC containers, and I'm getting a permissions problem on starting an unpriviledged container. How can I fix it?

I'm getting a permissions problem on starting an unpriviledged container. How can I fix it?
0
votes
1answer
41 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
23 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 ...
1
vote
0answers
154 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 ...
1
vote
1answer
71 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
1answer
69 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
1answer
136 views

Juju and Openstack provisioning

I'm new to Juju and Openstack and currently deploying two- and three-node openstack test environment using Juju manual provider. At my first attempt I tried to deploy services to my hosts using --to ...
0
votes
1answer
42 views

juju charm failed in local lxc

So I want to run my web application in the local lxc provider using juju.my web application is maven build application. So I create my charm and try to run it locally. In hooks I have installed java ...
0
votes
0answers
53 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 ...
1
vote
0answers
345 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
1answer
65 views

juju-quickstart: error: bad API response: cannot upload charm to provider storage: 500 INKApi Error

I have been able to use Juju from my home machine, however, when I attempt to use it from my work machine (which sits behind a proxy) I get: (Output from juju quickstart --debug) retrieving the Juju ...
0
votes
0answers
57 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
1answer
214 views

how to add lxc containers to host's DNS so that getaddrinfo() can resolve them?

I'm running LXC containers on Ubuntu 12.04 with a 3.8 kernel. The containers are on a host-only network, so their addresses are managed by dnsmasq. Is there a way to configure the host so that ...
0
votes
1answer
244 views

Juju Icehouse-Openstack LXC

Trying to instantiate an LXC image on a compute node, by changing virt-type (string) field, under nova-compute charm to lxc. This, however, does not update the virt_type, in nova-compute.conf file. ...
0
votes
0answers
28 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
14 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 ...
2
votes
0answers
76 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 ...
1
vote
1answer
126 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 ...
0
votes
0answers
48 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
1answer
279 views

Communication between Linux Containers (lxc)

I have a container for my Apache webserver, and another one for my Mysql server. I have given them 2 static IPs NAME STATE IPV4 IPV6 AUTOSTART ...
2
votes
2answers
124 views

It is possible to hibernate an LXC container?

I know about lxc-freeze and lxc-unfreeze, but as I understand it, these simply pauses the container, similar to sending SIGSTOP and SIGCONT to a process. If I reboot the host, then the containers will ...
0
votes
0answers
41 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 ...
1
vote
2answers
215 views

Can I set up MAAS and Juju on one machine?

Here is what I want to setup: MaaS on a single PC MaaS providing the host OS for 4 VMs (3 LXC + 1 KVM) Using Juju to deploy services on the 4 VMs (nodes on MaaS) How can I accomplish this?
0
votes
0answers
42 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 ...
2
votes
1answer
379 views

Boot problems after installing package `android`. How do I fix it?

I was thinking to play with my android phone through usb, so I did an apt-get install android* on my laptop. This this broke my boot. I can not boot it normally, but if I go into recovery and then ...
3
votes
0answers
218 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
2answers
153 views

what is a configuration to allow access to juju-gui in local provider

I want to install juju-gui using local provider (re lxc) on a cloud instance. However, the problem I have is that juju-gui will be installed into an lxc container itself and that container will be a ...
1
vote
2answers
192 views

Reflink cloning of LXC container on btrfs?

I use btrfs on my system and have created an LXC container with Xubuntu on it. Now I'd like to use that as a base for other containers. Since it's a btrfs, I can use cp --reflink to create a ...
1
vote
2answers
1k views

lxc containers fail to autoboot in 14.04 trusty using 'lxc.start.auto = 1'

In trusty 14.04 containers fail to autoboot despite all settings being set as 14.04 requires. They show all as STOPPED I have correctly configured 2 LXC containers: calypso encelado They run ...
1
vote
1answer
52 views

Juju local shared folder

I'm using juju local and I want to create a shared folder between the host and one of the juju machines. How can I accomplish this? I attempted these instructions with no success : ...
0
votes
1answer
586 views

lxc trusty (ubuntu 14.04) network interface is not starting

My host environment is Ubuntu 12.04 LTS. I have created (as root) a container as follows: lxc-create -n bitshares2 -t ubuntu -- --release trusty I first start as a daemon lxc-start -n ...
0
votes
0answers
25 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 ...
1
vote
2answers
1k 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 ...
0
votes
0answers
189 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 ...
1
vote
1answer
167 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 ...
1
vote
1answer
374 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
362 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 ...
0
votes
1answer
182 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 ...
0
votes
1answer
406 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
46 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
83 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 ...