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

learn more… | top users | synonyms

1
vote
0answers
8 views

lxc 2.0.0 failed to start after upgrading

i have Ubuntu 14.04 and i installed lxc then 1.0.8 was installed. But i needed 2.0.x version hence i upgraded it using following commands. sudo add-apt-repository ppa:ubuntu-lxc/daily sudo apt-get ...
4
votes
2answers
567 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://jujucharms.com/docs/stable/getting-started. I then tried export VIRSH_DEFAULT_URI=...
1
vote
1answer
125 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 ...
51
votes
1answer
16k views

How do I configure juju for local usage?

I'm too cheap to pay for EC2, and I don't have enough servers to set up my own openstack, how do I configure juju to use Linux Containers (LXC) on something like my laptop?
1
vote
1answer
141 views

my lxc machines will not start

I am trying to set up a local Juju environment, so I followed the official instructions on https://jujucharms.com/docs/1.25/config-LXC, on a machine running trusty that was installed via MAAS. the ...
0
votes
0answers
25 views

Why is the Xenial lxd image twice the size of Wily and its predecessors?

$ lxc image list ubuntu: +--------------------+--------------+--------+-------------------------------------------------+---------+----------+-------------------------------+ | ALIAS | ...
0
votes
0answers
23 views

I have lxc 1.0.8 in ubuntu 14.04 but want lxc 2.0.3. How can i upgrade? [duplicate]

I got the lxc 2.0.3 tar.gz file and extracted but then can somebody help to proceed forward.
0
votes
0answers
12 views

Running an LXC in parallel to an LXD

I'm a newbie to LXDs. I have an LXC which should start a few services upon its creation. Its works as expected on a machine having no LXDs but if an LXD is running on the same box, services within the ...
0
votes
0answers
22 views

Ulimit for user asterisk inside an LXD container

I have a bare metal ubuntu 16.04 server with a centos 6 LXD container within which I wish to install FreePBX/asterisk which I'm building from source. The building and install process was going very ...
13
votes
9answers
11k 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
1answer
30 views

OpenVPN in LXC: Failed to set devices.allow

I have been trying to get OpenVPN working in a LXD-managed LXC container on Ubuntu 16.04. I have added the tun device to the container config via lxc config edit container and it is properly created. ...
3
votes
2answers
388 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 graphical X session on the physical screen that Ubuntu Server outputs to? ...
0
votes
1answer
30 views

I can't do a complete upgrade in 14.04 due to LXC 2.0.3 related packages

The following packages are held back when I try to upgrade my system [using GUI or command line "sudo apt-get update && sudo apt-get upgrade"]: liblxc1 lxc lxc-common lxc-templates lxc1 ...
0
votes
1answer
38 views

Problem creating lxc container on BQ M10

I attempted to create an lxc container on my BQ Aquarius M10 as follows: libertine-container-manager create -t lxc -d vivid -i lxc After being asked for and entering my password the following was ...
0
votes
0answers
24 views

VLAN trunk to LXD containers

I'm playing around w/ LXD containers on Xenial. What I'd like to do is to have an 802.1q trunk coming into my physical host, and have the tagged traffic reach the containers, where I can choose which ...
1
vote
0answers
55 views

LXD profile. How could it be defined? [SOLVED]

I am not a sysadmin, so I am almost ignorant on this. I have a laptop connected via wlan interface and I want to use lxd containers and the network inside the containers. here https://insights.ubuntu....
1
vote
1answer
70 views

Start a Xenial lxc container on a Trusty machine

I'm having trouble starting a xenial lxc container on my trusty machine. I had no problems installing the container (by following this guide, which also allowed me to create and start some other ...
1
vote
1answer
182 views

Container namespace isn't visible in ip netns list

I wonder why we can't see the namespaces created by lxc-create on the output of "ip netns list" For example I create a namespace like below lxc-create -t download -n cont1 -- -d ubuntu -r trusty -a ...
3
votes
2answers
640 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 ...
1
vote
2answers
441 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 ...
3
votes
1answer
24 views

Cannot launch lxc containers get 'error: a remote name must be provided'

I'm trying to start using lxd/lxc containers using the series of blog posts from Stephane Graber: https://www.stgraber.org/2016/03/19/lxd-2-0-your-first-lxd-container-312/ The problem is that no ...
0
votes
0answers
35 views

Move phys interface to lxc container

I’m trying to move wlan0 to my LXC(Ubuntu 14.04) container "cn1" In config file I have : lxc.network.type = phys lxc.network.link = wlan2 lxc.network.flags = up lxc.network.name = wifi2 I ...
0
votes
0answers
27 views

Network manager shows LXC network as Ethernet

Since I installed LXC, the network manager icon in the top right corner always shows me as being "online" ie the double arrow symbol that appears when you have an Ethernet connection. Since the LXC ...
1
vote
1answer
135 views

Network Bridge inside VM for LXD

I use ubuntu 16.04 in a kvm virtual machine. For lxd containers I try to make a network bridge, so the containers are available in our local network. The interface file looks like this: auto eth0 ...
1
vote
0answers
42 views

Is the default hypervisor is LXC and how do I change it to KVM?

Is the default hypervisor is LXC, when i install my openstack with juju (sudo openstack-install)? How to change it to KVM? Except the array of EMC, how to use the third array through cinder? Or ...
2
votes
0answers
70 views

Autopilot Landscape fails to install

i am hoping someone can answer this, my autopilot keeps failing. After inspecting a log i noticed that LXC containers cannot communicate with external/public network. To make this clearer i can ping ...
24
votes
2answers
11k views

Public IP Address for LXC container

Ok, so I want to know how to do networking on LXC containers. Not just the sort of vague information you get from the other websites, but a true beginner's guide to making them work.. Since most ...
2
votes
0answers
20 views

lxc change default user

I'm working on LXC containers, I want to change the default user while creating the container, I was trying lxc-create -t ubuntu -n ct1 -- -u user -p password But this only works with "Ubuntu", if ...
0
votes
0answers
21 views

if i install my ubuntu openstack on LXC, can i use cinder with shared storage(DAS/SAN)?

I installed my Ubuntu Openstack on LXC with Juju, and I want to know if I can use Cinder with shared storage (DAS/SAN)? When I want to use the Huawei SAN, I edit the file "cinder.conf" and restart ...
1
vote
0answers
75 views

lxc and google chrome cannot open display

I'm trying to run google chrome from an lxc container, but it fails despite my repeated attempts and various tweaks. ERROR:browser_main_loop.cc(271)] Gtk: cannot open display: :0.0 Here is my ...
5
votes
2answers
3k 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
0answers
59 views

Can someone with root access enter in a LXD container and see its contents?

If I have a running LXD container, can someone enter into the mount point and see/access contents of it? I'm seeking for a method for virtualization that prevents this, KVM could be a good choice, ...
0
votes
0answers
141 views

Bridge/networking/LXD/emby server configuration trouble

It is not exactly clear to me how to google this question, so please forgive me if this is answered before or related to something else answered before. The symptoms: On boot there is no Internet ...
0
votes
1answer
98 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
0answers
36 views

Starting a LXC container hangs

I just installed lxc 1.0.8 on an Ubuntu 14.04 system, created a container [2031] sudo lxc-create -t ubuntu -n lucid -- -d ubuntu -r lucid -a amd64 and started it [2032] sudo lxc-start -n lucid -F ...
1
vote
1answer
88 views

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 lists.....
1
vote
1answer
153 views

(LXD) LXC container not starting services automatically

Using: Ubuntu Server 14.04 x64 LXD 2.0.0 I have several containers (all of them running "alpine-edge") in which I'm running lighttpd + mysql. The problem is that each time I restart the ...
1
vote
2answers
187 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
1answer
215 views

14.04 no internet connection when I up the bridge interface (for LXC container)

I have VM Ubuntu 14.04 32bit running in VMware Workstation on Win 10. I'm trying to set up the LXC container having its own IP address so I set the bridge interface in /etc/network/interfaces (tried ...
1
vote
2answers
187 views

LXD-managed containers (on ZFS) vanish after deleting a different one

I've set up a few containers on Xenial server, using a ZFS dataset for storage (I'm not sure if that's relevant; we'll get to that). They were all working fine. Trying to restart one of them, mail-...
0
votes
0answers
34 views

Access to host X11 from multiple containers (lxc) sharing the same GPU is limited to the last activated container

I have a server and 2 lxc containers sharing the GPU (nvidia gtx980 364.19) Vt7, Vt8 and Vt9 When trying to access the host X11 from any of the containers. It only works from the container that was ...
0
votes
1answer
169 views

Lxd zfs is not clear what to do

Unfortunately lxd has very short and uncomplete document site... I launched a container on my needs but after many successful and wasted tests ! Now i configured lxd and use zfs file system and ...
3
votes
1answer
139 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
25 views

How can i use lxc instead of vmware/virtualbox to virtualize an older version of ubuntu?

For compatibility reasons, i need to run an older version (14.04).Using vmware/and or virtualbox is both slow (gui part) and has a significant impact on my laptop battery life. Is there an easy way to ...
1
vote
1answer
92 views

Landscape Autopilot install stuck on “Add Juju machine in an LXC on 'the-to-be-networking-machine'” (90%)

My question appears to be very similar to the following mostly unanswered question. I have an Autopilot installation (I followed these instructions) with one MaaS master, one Landscape Autopilot ...
2
votes
0answers
335 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
238 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 ...
0
votes
0answers
17 views

Gcompris and Gbrainy are not working in LXC container

We have a server which runs 14.04.4 LTS. Inside of it we have an LXC container with 12.04 Precise in it. We are running edubuntu-desktop with all the packages. For some reason Gnome apps are failing. ...
0
votes
0answers
83 views

Running keepalived with vrrp in unprivileged lxc container

I am trying to get a keepalived running in an unprivileged lxc container, but I get the following error in the syslog. May 8 10:56:01 dnsmasq Keepalived_vrrp[11025]: Initializing ipvs 2.6 May 8 10:...
1
vote
1answer
274 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 ...