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

learn more… | top users | synonyms

1
vote
1answer
24 views

Juju LXC Containers getting wrong DHCP?

I'm using a networking similar to this one: http://www.openstackbasement.com/maas-network-hardware When I run: juju deploy --to lxc:0 mysql juju deploy --to lxc:0 keystone etc... According to ...
-1
votes
0answers
22 views

Difference between **LXC ** and **MIR** [on hold]

I installed lxc for unity 8 on my ubuntu 15.10. But it doesn't allow me to login as admin. Neither it is working with guest account. The ask ubuntu user advised me to install mir and after instlling ...
3
votes
0answers
41 views

Automouting NFS share inside NAT'd LXC container fails

I have 2x Ubuntu 14.04 LXC setups One is on bare metal hardware and containers are assigned IP adresses directly from the network The other one is on an ESXi virtual machine and using NAT via the ...
3
votes
5answers
2k views

lxc-create hangs and finally fails

I was trying to place some juju charms on linux containers and the containers failed to start. To debug the issue I sshed into the node where this happened and tried creating an LXC container manually ...
0
votes
0answers
12 views

lxc container not resolvable with IPv6

I set up a container on Ubuntu 14.04 trusty. The container also uses Ubuntu 14.04 trusty as template. The network is set up as bridged. My network interface from the hosts (eth0) is bound to the ...
0
votes
1answer
18 views

How do I set an LXC container to start on boot in 15.10?

15.10 uses the new db based config system. Getting this done requires adding a directive to the container's config using lxc config edit containernanme. Problem is I can't find the config docs (15.10 ...
0
votes
1answer
19 views

bridge and LXC container on two cloud server

I have problem with the configuration of bridge and lxc container on cloud server. I Have two cloud servers. On each cloud I've created bridge by brctl like: brctl addbr $bridge ip addr add ...
0
votes
0answers
19 views

LXC USB Passthrough 2

Recently i managed to try LXC containers. I've installed Proxmox 4.1 as host and got 3 Ubuntu 14.04 containers. Everything seems to work fine but i cant get my USB Hasp keys passthrough. Each ...
0
votes
0answers
28 views

Network Error in Unity 8 [closed]

I am trying to install the Unity8 desktop preview, but whenever I try to set it up with unity8-lxc-setup, I get the message" Starting the Container" a pause of about a minute or two, and then the ...
0
votes
0answers
19 views

Is there a way for one Linux container to see other containers' network traffic?

I created three Linux containers with default configuration, started sending packets from one to the other, and tried sniffing the network from the third one by putting the nic in promiscuous mode and ...
0
votes
0answers
21 views

LXC multiple unprivileged containers UID & GID questions

I created multiple unprivileged LXC containers successfully. However they all have the same UID and GID as follow: ls -l /.local/share/lxc total 12 drwxrwx--- 3 100000 js 4096 Jan 21 20:20 ...
2
votes
1answer
746 views

How to persist configuration changes accross restart with LXD containers?

I am experimenting with LXD, but I'm stuck with a seamingly simple problem: I can't make my bridge config persistent. The host server has a birdge br0. By default, lxd managed containers will use ...
2
votes
1answer
55 views

Port forwarding between bridged interfaces

So I have a bunch of bridge interfaces bound with my main ethernet device (em1, blame HP). These serve various LXC containers I have running on my server and easily allows me to access them from other ...
0
votes
0answers
55 views

Upgrade failed on lxc container

I was running an upgrade from 15.10 to xenial on an lxc container remotely, while it went offline. Restarted the container and seems to work fine, apache, mysql except it cannot be accessed via ssh ...
1
vote
1answer
246 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
48 views

Working with screen sessions in LXD-managed containers

I have been trying to attach and detach screen sessions in LXD-managed containers; initially, I wasn't able to even start one, but that problem was answered here. However, being able to start a ...
3
votes
1answer
160 views

Start a screen session inside LXD-managed container

I'd like to start a screen session inside an LXD-managed container so that I could detach running processes and maybe re-attach in the future when I want to check on their status. I tried to attach ...
1
vote
0answers
168 views

How-to upgrade LXC container after `do-release-upgrade` to Wily?

I have just done a do-release-upgrade -m server from Linux boson 3.19.0-31-generic #36-Ubuntu SMP Wed Oct 7 15:04:02 UTC 2015 x86_64 Linux-3.19.0-31-generic-x86_64-with-Ubuntu-15.04-vivid to ...
1
vote
2answers
430 views

lxc-create: bad template: download

I'm running Ubuntu 12.04. According to the Ubuntu Server Guide, there should be a -t download template option for the lxc-create command. However I get the following output: sudo lxc-create -t ...
0
votes
0answers
24 views

LXC Ubuntu container. Hash Sum mismatch

I am installed Ubuntu container (wily) onto Ubuntu host(with wily too) with such command: # lxc-create -t download -n es1 -- --dist ubuntu --release wily --arch amd64 Everything fine, I can ping ...
0
votes
1answer
46 views

Error as a result of purging unity8-lxc

user@user-K53SD:~$ sudo apt-get purge unity8-lxc Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: unity8-lxc* 0 ...
1
vote
3answers
281 views

Is it possible to install LXD directly on a Ubuntu Snappy Core?

I'm running a Ubuntu Snappy Core (2015-04-28, version 45). I want to install LXD directly on the snappy host. Is this possible? Thx! --todd
0
votes
1answer
43 views

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs?

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs? Would the drivers need to be installed on the host, guest or both? Do they support exclusive usage by using PCI ...
0
votes
2answers
104 views

apache2 not responding to requests from outside the local network

My apache2 install on 15.10 is responding fine when called from the local network segment. http works externally, https times out. I spent a couple days checking everything the docs suggest. Apache ...
6
votes
2answers
186 views

Allow a LXC container user to write as an external user to a mounted directory

Apologies for the title, the setup is actually quite simple. I have a host with a user called oli and a directory called /media/steve/incoming that oli can read-write-execute in. Within that I have a ...
0
votes
0answers
32 views

How to make a mounted harddrive available inside an LXC container?

I want to make a mounted hard drive available inside an LXC container for a postgres database. when I run sudo lsblk on the host I can see the hard drive in the following way: NAME ...
3
votes
3answers
2k 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 ...
3
votes
1answer
217 views

LXD and Juju management

Would it be practical to create LXD containers on different servers and in the container use Ubuntu and juju? If it is, could juju see LXD containers as different machines?
3
votes
0answers
36 views

How can I kill a stuck LXC container?

I have a new unprivileged LXC container that I just cannot seem to stop. lxc-stop -n dl hangs. lxc-stop -k --nolock -n dl hangs. lxc-ls hangs. lxc-attach -n dl hangs. Nothing works on this container. ...
0
votes
1answer
77 views

debootstrap nested in the LXC container fails to mount proc because of apparmor

The command that is run inside an amd64 LXC container: debootstrap --arch armhf --foreign --variant=buildd --components=main,restricted,universe,multiverse vivid /var/lib/schroot/chroots/vivid-armhf ...
1
vote
2answers
355 views

How to change the mirror of lxc-create?

I have an Ubuntu repository server in my network. I want to create a lxc container using lxc-create. How can i change the default repository of lxc-create to my repository? There isn't any option ...
1
vote
0answers
144 views

Failed to reset devices.list on /lxc/mailserver/system.slice/dovecot.service:

I am running dovecot in an 15.10 lxc container. When I restart the service I get the following error in the syslog. Dec 4 03:02:04 mailserver systemd[1]: Failed to reset devices.list on ...
2
votes
1answer
73 views

Juju lxc deploy not working!

I have a problem deploying services on lxc containers.I have set up maas and juju and have 4 servers deployed. Here is a juju status: environment: maas machines: "0": agent-state: started ...
1
vote
1answer
315 views

unity8 with ubuntu 15.10

I want to use unity8 preview with ubuntu 15.10. But i am unable to log in as administrator. Only guest session is accessible. When i try to login with admin password the screen just hangs and become ...
0
votes
0answers
81 views

Can't create LXC containers due to “E: Couldn't download packages”

I want to install LXC on my Ubuntu 14.04 LTS so can further have a virtual Ubuntu. And I've inputted apt-get update, upgrade, install lxc. Everything seems fine. But when I try to create a virtual OS, ...
0
votes
0answers
32 views

LXC without NAT

I have an LXC Container that I want to be "directly" connected to the Internet, not as a NAT. I have an IPv6 RA agent that would assign it an IPv6 address and/or DHCPv4 for a regular 192.168.1.0/24 ...
10
votes
3answers
22k views

How do I setup an LXC guest so that it gets a dhcp address so I can access it on my network?

I setup LXC using: lxc-create -t ubuntu -n lxcguest1 But I can't access any services running on it from my LAN, it appears to be NATed. How do I set it up so that I can access it (it probably ...
0
votes
0answers
14 views

LXC strorage directory

I am trying to change my lxc storage directory from /var/lib/lxc to something else like /var/directory1 I added the line lxc.lxcpath=/var/directory1 in the lxc configuration file in /etc/lxc/lxc.conf ...
0
votes
0answers
19 views

change lxc storage directory

I am trying to change my lxc storage directory from /var/lib/lxc to something else like /var/directory1 I added the line lxc.lxcpath=/var/directory1 in the lxc configuration file in ...
0
votes
1answer
382 views

Installing a GUI application in LXD/Docker with a GUI installer

I have an old proprietary software which I need to run on newer distro. I hope containers are the solution. The problem is that the old software installs itself from a GUI application which require ...
6
votes
2answers
591 views

How can I run a Snappy / ubuntu-core image with LXD

I would like to run Ubuntu Snappy in an LXC container. There isn't an existing snappy image at the default https://images.linuxcontainers.org repo, but I was wondering if this is something others ...
1
vote
1answer
331 views

How can I restrict an LXD guest to using a single public IP address?

I have an Ubuntu 14.04 LXD container on an Ubuntu 14.04 Server host (using lxd-git-master PPA). I want to prevent it from reaching any other containers or from communicating with the public Internet ...
1
vote
1answer
119 views

Is there a way to configure lxd containers with cloud config at provision time?

Specifically, with the CLI tools- not openstack. I'm looking at what a local dev setup with lxd might look like but am coming up empty handed when it comes to configuring new containers. Are there ...
0
votes
2answers
469 views

How do I allow /dev/net/Tun in a LXD managed LXC container?

I am trying to get Openvpn run inside a LXD/LXC container, and redirect traffic coming to the container to the VPN. The purpose is to replace a fully fledged VM that does exactly that (and toy with ...
0
votes
1answer
43 views

lxd forkstart: the famous error

I just started diving into the cloud computing, trying to hypervisor my ubuntu server. I started with LXD but it raises few issues at early stage. Whenever I want to create a container lxd send this ...
0
votes
1answer
56 views

No network on LXC container running vivid on precise host

I already run trusty containers on my precise host. I have no issues. I'm trying to run a vivid container on the same host. The container work, but there is no network. The container doesn't get ...
0
votes
0answers
22 views

LXC to use IPv6 from HE tunnelbroker

I installed lxc on Ubuntu 14.04 64 bit. All work well. The containers can access internet via the default lxcbr0. Now I get a /64 and a /48 from Hurricane Electric Tunnel Broker ...
0
votes
1answer
224 views

Unprivileged LXC Container fails to boot on startup with 'call to cgmanager_create_sync failed'

I have some issues trying to start an unprivileged LXC container in my machine. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: ...
0
votes
0answers
13 views

lxc-container with 15.04 under 14 LTS

Does anyone have experience with running the 15.04 release under an LXC-container in a setting where the host OS is 14 LTS server? I was running matching Ubuntu version in the container before (that ...
0
votes
0answers
23 views

How can I use LXC to create a working copy of the Ubuntu Development Branch on my system?

What I mean is that the unity8-lxc package allows one to log into a working Unity Next distribution (rather than the unity8 package from Trusty) from LightDM. Is there a way of using LXC to do this ...