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

learn more… | top users | synonyms

5
votes
3answers
9k 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
214 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
0answers
30 views
+50

Openstack LXC containers missing DNS

In my newly deployed openstack environment, I noticed that CEPH was failing within the 3 LXC containers. 016-05-03 02:18:38 INFO juju-log Unknown hook update-status - skipping. Reading package ...
0
votes
0answers
27 views

Configure the LXC/LXD network bridge after uppgrading from 15.10 to 16.04

The upgrade to 16.04 breaks the LXC/LXD network bridge configuration used in 15.10. What changes do I need to make to get the new setup working? I want the guest to be on the same network as the ...
1
vote
0answers
8 views

How to set up X11 forwarding in byobu inside a LXC container

I currently SSH into a LXC container running in a Ubuntu host machine. I have managed to set up X11 forwarding from the container to my local machine but when I start byobu (inside the container) the ...
0
votes
0answers
6 views

lxc - p2p1 does not come back after lxc-stop

I can start the container, connect to it, networking works, etc. Everything looks ok. But when I stop the container and try to restart it, p2p1 is no more available and restarting fails. When I ...
0
votes
0answers
42 views

Running Ubuntu Desktop in LXC/LXD on top of Ubuntu Server

Is it possible to have Ubuntu Desktop running in an LXC/LXD container on top of Ubuntu Server, displaying Ubuntu Desktop's X session on the screen? Whether it makes sense or not, my idea is to ...
0
votes
0answers
11 views

What is the difference between LXCs and LXDs?

Which one to use in a distributed application where security and modularity is key.
0
votes
2answers
64 views

How to check is an LXD container runs unprivileged?

I am configuring my LXD containers to run unpriviledged as root. How can I check that they indeed run as such? Is it enough that ps -ef on the host shows that all processes running in containers ...
0
votes
0answers
102 views

lxc nvidia error: xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

In the process of trying to have lxc container (host 16.04, lxc 14.04) share nvidia I run into this error when starting X in the container: startx -- vt8 I get the following error: ...
0
votes
1answer
73 views

How to use lxc profile set?

I would like to edit LXD profiles from the command line. This is done by lxc profile set: lxc profile get <profile> <key> Get profile configuration. lxc profile ...
3
votes
0answers
268 views

Unity 8 - Stuck at login screen

i recently installed Ubuntu Xenial in order to install Unity 8 and test how it work with my graphic card (Intel HD 3000). First I updated the system and then installed U8: sudo apt install unity8-lxc ...
1
vote
0answers
159 views

Unity 8 lxc stucks after login. Unity 8 mir black screen without sursor

I installed Unity 8 mir and unity 8 lxc on Ubuntu 16.04, When log to unity 8 mir, a black screen displayed (without cursor). When log to Unity 8 lxc, It stucks at the loin screen (LightDM). Then I ...
0
votes
1answer
71 views

unable to use nvidia graphics in lxc container after upgrade to ubuntu 16.04

I have upgraded my system from 15.10 to 16.04 and the container from 14.04 to 16.04. I have used the default cuda/nvidia driver in both. cuda 7.5 and nvidia 361.42 When I start the container I get ...
0
votes
1answer
45 views

Why using (or not) dedicated bridges with LXD?

Question: Are there specific drawbacks of using a single bridge, as opposed to a dedicated one per container? Details: I have a host which runs a few LXD containers. I initially decided to have one ...
0
votes
0answers
8 views

How to use a video device in a lxd container?

I would like to use the host video device (/dev/video0 for instance) in a lxd container. There is information about how to configure devices in lxd but it only mentions char and block devices (which ...
0
votes
0answers
51 views

Moving LXD containers to clean install of 16.04

I have a load (~14) of LXD containers running on my 14.04 development machine. I would like to do a clean install of 16.04 but I need to keep my containers. What is the best approach to achieve ...
0
votes
2answers
37 views

How to import LXC containers from a previously used ZFS lxc zpool?

I'm using all default lxc settings with ZFS as the backstore. Which means, I have an lxc zpool and created containers with lxc-create -B zfs -n ubuntu-base -t ubuntu Now, the root fs ran out of ...
1
vote
0answers
103 views

Issue starting LXD containers

I am running Ubuntu 15.10 and kernel Linux odroid 3.10.96-82. My hardware is an ODROID-XU4 ARM based SBC with the Exynos5244 CPU. I am having an issue getting LXD containers to start on this system ...
0
votes
0answers
20 views

LXD duplicates root subuid and subgid entries

I have had LXC installed and have a number of unprivileged containers running as root. To achieve this, I created entries in /etc/subuid and /etc/subgid for root, as follows: root:200000:65536 ...
1
vote
1answer
310 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
0answers
13 views

lxcbr0 stop container communication

I'm creating LXC containers to be used by different users but required each container to connect to lxcbr0 to provide remote access. How can I restrict with LXC that containers on a default bridge ...
0
votes
0answers
31 views

LXC unprivileged container: apt-get fails to download anything inside

I'm running Ubuntu Xenial and set up simple unprivileged user container from template (also Xenial). When I attach inside and try to just do upgrade or install anything 'apt-get' fails with following ...
0
votes
1answer
41 views

Juju on Maas, Lxc container not deploying

I have the latest juju deployed on maas. I also deployed the gui with: juju deploy juju-gui --to 0 This seem to work fine. But when I deploy an lxc container on that machine the conatiner stays in ...
1
vote
1answer
406 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
1answer
125 views

LXD 2.0 Local Networking

Today I apt-get upgraded my machine (14.04) and now I can no longer access any of my local LXD containers. There was a message warning that I needed to reconfigure the container networking but now I ...
0
votes
1answer
68 views

Building LXC, LXD Image

Is it possible when using LXC,LXD images and containers that I can build my OWN image for a specific Ubuntu distro? then I use it as a container. thanks
0
votes
0answers
29 views

how to save lxc.conf after editing?

Trying to get safe browsing with lxc by guide from here https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/ and stucked. I type in terminal sudo gedit /var/log/lxd/u1/lxc.conf editing, ...
5
votes
3answers
6k views

How do I share a directory between an LXC container and the host?

How can I share a folder between the host system (ubuntu 14.04) and an ubuntu lxc container? I tried mounting the folder on the host: sudo mount --bind /media/data/share ...
0
votes
1answer
115 views

lxd: error: remote images exists as <https://images.linuxcontainers.org:8443>

I am using Ubuntu 15.04 desktop version. I have installed lxd successfully on my machine. Unfortunately while trying to add remote images i get following error message. $ lxc remote add images ...
0
votes
0answers
26 views

TCP session establish problem

I have multiple quagga instance running in lxc doing some kind of network simulation. BGP-protocol run fine between quagga containers. But when connecting quagga to Cisco ios, TCP-session which is ...
3
votes
1answer
36 views

Disk usage for the same drive shows 20K in the host and 16G in the container

When comparing the disk usage for a mounted harddrive the usage is completely different when compared between the host and the container. I am running Ubuntu 14.04 on the host and in the lxc ...
0
votes
0answers
13 views

LXD LXC containers Ubuntu 10.04

Regarding the use of the LXC and LXD is their an Ubuntu 10.04 container that is possible to use ? if not is their a method to build Ubuntu 10.04 container ? Thanks
1
vote
0answers
49 views

Where to configure lxd containers?

I installed LXD and created a few containers and while reading about various configurations (specifically about how to run unprivileged containers as root), I saw that the configuration files ...
1
vote
0answers
17 views

Vagrant not shutting down gracefully when shutting down computer

I am working with vagrant 1.7.4, which i use together with lxc 1.1.5 on ubuntu 15.10. I was working with it the last few weeks and never did vagrant halt before shutting down my computer. Now it ...
0
votes
0answers
66 views

Where is the configuration file of a lxc container?

I installed lxd to use linux containers. For some reason I keep using lxc commands to install and start my containers. Since lxd seems to be close to lxc maybe there is a reason for that (but it is ...
2
votes
2answers
911 views

Adding a shared host directory to an LXC/LXD Container

I have been experimenting with LXC/LXD on Ubuntu 14.04 and it's all working great. I just need to figure out how to get shared directories working between my host machine and a container so I can ...
1
vote
2answers
82 views

LXD,LXC containers security

I just want to know dose the Linux containers (LXD) provide security? Such that if on container get infected with a virus will that effect the entire system (kernel+other containers) Or it will ...
0
votes
0answers
28 views

Using aufs inside a lxc container

I'm not able to use aufs inside an unprivileged lxc container. Both host and container OS match (ubuntu-wily-amd64). A simple test on host mounts fine. All directories have are 777 for purposes of ...
0
votes
1answer
89 views

What images can you store in lxd containers?

What kinds of images can you store in LXD containers ?
0
votes
1answer
46 views

LXD snappy add and run continer

I have to install and run Ubuntu Snappy on the Raspberry pi 2. and I have install the LXD container using the command: sudo snappy install lxd.stgraber now i want to start make containers and run ...
2
votes
1answer
82 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
0answers
6 views

nm.d already present while launching multiple lxc application containers. Not able to launch more than 1 container

I want to launch lxc application containers on ubuntu. Am able to launch one container with an application. As am trying to launch second container with same application its giving nm.d daemon already ...
0
votes
0answers
15 views

shell script opens lxc container as root and stops executing the following commands. How to overcome this?

shell scripts executes to root@container and ignores the flags following the lxc-execute command. How to execute commands directly inside the container using shell script?
1
vote
0answers
48 views

Mount ZFS dataset in unprivileged containers

First a bit of information about my configuration: Ubuntu 15.10 ZFS pool created LXC containers stored in pool/lxc Dataset created in pool/mydataset owned by user1 Now I need one of the containers ...
0
votes
0answers
22 views

lxc assign MAC adress after first creation

I found much information in this question. But after system reboots dnsmasq assigns randomly IP addresses ignoring entities inside file: /etc/lxc/dnsmasq-hosts.conf So I checked logs and gets this ...
0
votes
0answers
11 views

Host users in lxc container

I try to build dev environments with different set of libraries in each of containers. It essential for me to use the same users in host and container. Is there anyway to make container use users, ...
1
vote
1answer
82 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 ...
3
votes
0answers
97 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
3k 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 ...