Questions tagged [lxc]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
3k views

Hard drives do not want to go to sleep/standby automatically on Ubuntu 16.04 server with LXD/LXC 2.0

I have small server with five drives put in following layout: Physical drives /dev/sda (SSD EVO 850) /dev/sdb (HDD TOSHIBA DT01ACA300) /dev/sdc (HDD TOSHIBA DT01ACA300) /dev/sdd (HDD WD1502FAEX-...
0 votes
1 answer
954 views

How to reinstall conjure-up?

After trying to get a local kubernetes cluster running with conjure-up kubernets-core on Ubuntu 16.04.3, I wanted to reinstall everything and start over from scratch since my configuration did not ...
2 votes
3 answers
4k views

How can I install the Vyos software .iso inside an LXC container?

I have a problem with the installation of the Vyos software inside an LXC container. The .iso is vyos-1.1.8-amd64.iso.
2 votes
0 answers
1k views

Configuring Eclipse/PyDev to work with projects on remote server and remote interpreter (workarounds and pitfalls)

Question duplicate: https://stackoverflow.com/questions/51693969/configuring-eclipse-pydev-to-work-with-projects-on-remote-server-and-remote-inte I have the following set up: Ubuntu 16.04-64 on host;...
1 vote
4 answers
10k 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 ...
2 votes
0 answers
626 views

How to install web browser on lxc (ubuntu 16.04) and display the page on the local host

I am quite new with linux containers. I set a p2p network with the command: sudo brctl addbr br-peer$IDX_PEER sudo tunctl -t emu$IDX_PEER sudo ifconfig emu$IDX_PEER 0.0.0.0 promisc up sudo brctl ...
2 votes
1 answer
526 views

Upgrade to 16.10: PAM-CGFS errors

Since upgrading my Ubuntu host server installation from 15.10 to 16.04.1 yesterday these errors fill my log: PAM-CGFS[28483]: Failed to create a cgroup for user root Googling this turns up nothing ...
0 votes
1 answer
402 views

Will NAT bridged LXC unprivileged containers routes the http calls to host http server via the lan network?

User A has a http server running on host Ubuntu machine with IP "HostIP" and port 8081. Now user A creates an unprivileged lxc container (container1) User A logs into lxc-attach -n container1. Now the ...
1 vote
2 answers
1k views

LXC & OverlayFS

Goal - To configure/install a webapp on Host & make sure its accessible through an lxc container. Why - To isolate the host yet provide access to the web app and ssh access to our clients. ...
3 votes
2 answers
7k views

LXD container set static ip

There've been a lot of questions and threads about this but none of them solves my problem. I want to assign a specific ip to a specific container WITHOUT configuring it inside the container. The ...
0 votes
1 answer
113 views

LXD Cannot Bridge network device

I'm trying, (and failing) to use LXD and MaaS on my home machine to create a Pod. I commisioned and deploy a machine via MaaS on my local network. When I ssh into it I install LXD and bridge-utils. ...
0 votes
1 answer
3k views

I cant get a command into my lxc container or get into my container at all (says error: not found)

A newbie attempting lxc container on 16.04. It's running but I cant issue command in it or get into it at all (tried 'uptime' here but any command is the same). Also it doesn't seem to have an IP ...
0 votes
1 answer
315 views

Publicly Available Containers via Ubuntu 18.04 -- help question

First off, let me start by saying I am no expert in server talk. I've been teaching myself as I go along, and I really only know entry level basics to server management. I am trying to consolidate ...
1 vote
0 answers
152 views

SSH to created container

I create container through lxc-create -t ubuntu -n hadoop24. But I can not ssh to ubuntu@hadoop, I can ssh to [email protected]. ssh: Could not resolve hostname hadoop24: Name or service not known ...
4 votes
1 answer
4k views

LXD containers get no IP

I wanted to start experimenting with containers, so I followed this tutorial and did: sudo apt-get install lxd lxd-client zfsutils-linux sudo lxd init and answered the questions as follows Do you ...
8 votes
2 answers
1k views

What is the workaround for LXD-nested pivileged docker (/dev/.lxc/proc/ error)?

Launching a privileged docker container in an LXD fails with this: docker: Error response from daemon: linux runtime spec devices: lstat /dev/.lxc/proc/1482/fdinfo/12: no such file or directory. ...
2 votes
1 answer
2k views

LXD/LXC: understanding images and updating

I would like to understand what the difference is between getting a new base image (e.g. Ubuntu 16.04) and apt updating running containers. Do I need to update the containers myself, or can I rely on ...
1 vote
0 answers
340 views

Deploying LXC inside DRBD mount

So I'm trying to deploy Ubuntu using LXC inside a DRBD mount. First I've changed /etc/lxc.conf so lxc.lxcpath points to /plesk which is where I'll mount DRBD. Then I created the machine with lxc-...
0 votes
1 answer
972 views

How to bring a bridge interface down when physical interface gets unplugged?

I have configured a bridge for LXC in /etc/network/interfaces. # Internet iface enx0050b6130ce2 inet manual # Bridge for LXC iface br0 inet dhcp bridge_ports enx0050b6130ce2 bridge_fd 0 ...
0 votes
1 answer
1k views

LXC starts up, but the networking is not set up - what is preventing this?

On Ubuntu 14.04 Trusty, I had LXC running, but recently I upgraded from 1.0.7 to 1.1.2 as per the instructions here on Launchpad. However, I found that I could not start my containers any more. After ...
0 votes
0 answers
338 views

LXD: Getting DHCP IP but no ping outside

So I setup a clean VM in VirtualBox. I setup bridge devices as described by several tutorials. I create a VM, I get a DHCP address. But after that I got no ping from the container to any IP on the ...
0 votes
0 answers
409 views

Wine on 64 bit Ubuntu : Must Build Biarch Wine On Ubuntu?

https://wiki.winehq.org/Ubuntu says Ubuntu's implementation of Multiarch is still incomplete, so for now you can't simply install 32-bit and 64-bit libraries alongside each other. If you're on a ...
0 votes
1 answer
935 views

LXC bridge with eth0

My host eth0 is connected to my office network. I want bridging the LXC container with host's eth0. I have changed lxc.network.link of the container to eth0, but it prevents the container to be ...
0 votes
1 answer
308 views

Creating a network with lxd on xenial-backports

I want to start using lxc container on an Ubuntu 16.04 Xenial machine. I am using lxd 2.21 from the xenial-backports repository. It works fine up to the point where I want to give my containers ...
1 vote
1 answer
256 views

LXD 2.0 - lxd.migration to snap hang waiting for lxd process to start - /var/lib/lxd directory gone

As the title said migration to snap went wrong and I lost all the /var/lib/lxd directory except for the storage_pool and images which were symbolic links. Obviously I lost all configurations but I ...
2 votes
0 answers
360 views

What code reads /etc/network/interfaces?

Some time back ifconfig, ifup and friends got replaced. Generally /etc/network/interfaces seems to work in Ubuntu. I'm running an LXC container which does not have ifup my /etc/network/interfaces is ...
4 votes
1 answer
3k 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 ...
0 votes
1 answer
823 views

Openstack horizon not accessible after installation through conjure-up

I have managed to get openstack installed using conjure-up. I followed the below steps for the installation sudo apt-get update; sudo apt-get upgrade -y; sudo snap install lxd; sudo snap install ...
0 votes
1 answer
67 views

Maas and Juju handshake!

Here is my setup; I have a PowerEdge 2900 running Ubuntu 16.04 server with lxd and Juju installed on it, (this machine hosts 5 containers with very important server apps for our infrastructure). ...
4 votes
1 answer
9k views

How can I create a secondary lxd bridge?

I want try to create a network infrastructure with containers, but how can I configure another lxd (eg.: lxcbr1) bridge for my lxc container? on the host I type: sudo brctl addbr lxcbr1 but when I ...
1 vote
0 answers
731 views

Why can't I remove /usr/local/var/cache/lxc/?

sudo rm -r /usr/local/var/cache/lxc/ fails due to /bin/rm: cannot remove '/usr/local/var/cache/lxc/artful/rootfs-amd64': Operation not permitted. I ran some checks which lead me to think that the ...
1 vote
1 answer
2k views

lxc error: saving config file for the container failed

I recently upgraded my lxd to 2.20-0ubuntu4~16.04.1~ppa, but now i cant start my imported containers. I can successfully import a containers, with lxd import NAME and i can do lxc config show NAME ...
0 votes
2 answers
4k views

How to determine lxc-container backing store type (directory / btrfs / aufs etc.)?

Say one has setup a BTRFS partition, and created several LXC containers on it. How can, in hindsight, be determined what backing store type each container is using (so whether each uses a 'directory' ...
1 vote
0 answers
344 views

Can't forward ports to LXC

Trying to access container's apache from host. Container IP is 10.211.55.24 and if I try curl 10.211.55.24:80 it works. This is the default lxc profile: config: environment.http_proxy "" user....
2 votes
2 answers
2k views

LXD Containers and Host on DHCP

I'm working on containers at the moment and having trouble with configuring them to use the network's DHCP, so that they can be accessed via hostname (container name) directly. This'll mean apps on ...
12 votes
6 answers
30k 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 /var/...
2 votes
0 answers
1k views

systemctl commands won't work in an lxc container

I ssh into my container and I run this command: systemctl restart nginx.service And the terminal spits outs one of these bad boys: Failed to connect to bus: No such file or directory Anybody ...
2 votes
1 answer
573 views

Centos7 LXC Shell Access on Ubuntu 17.04 host

I know this is probably google skills deficiency on my behalf but for the love of god I cant shell into a CentOS 7 container on an Ubuntu 17.04 host. user@ubuntu1704:~$ lxc shell centos7 user@...
0 votes
1 answer
1k views

Adding lxd containers on Windows 10 hyper V host networking issue

While creating LXD containers on Ubuntu 16.04 sitting on Windows 10 Hyper V having external virtual switch network configuration, containers do not get connected with the external network. All the ...
1 vote
1 answer
932 views

lxd availability on CentOS [closed]

I want to implement lxd and juju on CentOS (or Redhat). I have found the matrix https://www.flockport.com/lxc-and-lxd-support-across-distributions/, in which it is clearly stated, that LXD is not ...
1 vote
0 answers
522 views

How to use gnome-keyring in lxc ubuntu container?

I have tried to start the installed gnome-keyring in a lxc Ubuntu 16.04 container by executing sudo gnome-keyring-daemon --start. However, I got the following errors. ** (gnome-keyring-daemon:21983): ...
1 vote
1 answer
3k views

In LXD container, can I mount a disk image such that it is private to the container?

Inside of an LXD container, I have created a disk image file and finally figured out how to mount it. However, a side effect of mounting the image makes it visible and readable to the host operating ...
1 vote
1 answer
3k views

Disable IPv6 from boot inside LXD/LXC container

I'm using an ubuntu:xenial spawned container in LXD/LXC and can't work out why it keeps booting with an IPv6 link local address (fe80::). If it's at all relevant, I'm also using Xenial as the ...
10 votes
3 answers
7k 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 ...
2 votes
2 answers
3k 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 ...
0 votes
1 answer
2k 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 ...
6 votes
2 answers
2k views

How do I open an existing LXD container?

I have Ubuntu 16.04 installed, xfce desktop for what it's worth. I have LXD installed, with my images and containers on my large second drive, with symbolic links to said images and containers ...
5 votes
1 answer
2k 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 ...
2 votes
1 answer
2k views

Ping to LXC container

Please, I try to do ping 10.0.3.8 (ip of LXC container) from VMB but it didn’t work ! Have you an idea please ? Here is an explanation of what I want do: (red arrow) The blue arrows means that the ...
1 vote
0 answers
205 views

How to configure the lxd bridge in trusty?

According to this article, you can set up basic lxd networking with: lxc network create testbr0 lxc network attach-profile testbr0 default eth0 However, the lxc network command doesn't exist in the ...

1 2 3
4
5
9