Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lxc]

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

0
votes
0answers
17 views

LXC list available configuration keys lxc-config -l

I am looking for a command that lists available lxc configuration keys. lxc-config shows only a few: # lxc-config -l lxc.default_config lxc.lxcpath lxc.bdev.lvm.vg lxc.bdev.lvm.thin_pool lxc.bdev.zfs....
0
votes
2answers
88 views

lxc 3.0.2 equivalent of lxc.network.type = veth

I have reinstalled from ubuntu 16.04 to 18.04. My lxc container config had the following line: lxc.network.type = veth It no longer seems to work: lxc-ls -l DEBUG -f lxc-ls: confile.c: ...
0
votes
1answer
178 views

Unable to install lxc or lxc-utils in Bionic Beaver Server 18.04

I have a basic up to date install of 18.04 server. Only the universe repository has been added above the default installation. No third party repos. When I try to install package lxc I get the ...
0
votes
0answers
23 views

How to move files from LXC container to local PC?

I have made a script that compress into .tar logs after automation test running. #!/bin/bash LOG_DIR="$logs_location" function collect_logs() { echo "*** collecting logs ***" ...
0
votes
0answers
20 views

lxc container network occasional problem with bridge network on bonding device

I experienced occasional network problem of containers with ubuntu server 18.04.1. Containers can communicate with host IP always but they can communicate sometimes to the other hosts but they are ...
0
votes
0answers
40 views

Ubuntu 18.04 cloud image support for ip6_tables

I am running an Ubuntu 18.04 cloud server on LXD/LXC. # uname -r 4.15.0-30-generic # apt-get -y install linux-image-$(uname -r) It doesn't appear to have support for ip6_tables. How can I get an ...
0
votes
0answers
206 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;...
0
votes
1answer
114 views

LXD: Running an image with a foreign architecture

I want to use LXD to bootstrap a root filesystem for deployment on an embedded ARM system from my AMD64 host running ubuntu 16.04. Previously, I've done this with a script and the chroot command, but ...
1
vote
0answers
29 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 ...
0
votes
0answers
50 views

Nginx in default could never return 200 OK

I want to know the best practice for Nginx setup in the case bellow. I created the environment of nginx(1.15.1) on ubuntu(18.04) on docker(18.03.1-ce) on lxc(2.21 security.nesting=true) on linuxmint(...
0
votes
1answer
110 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 ...
0
votes
2answers
183 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. ...
0
votes
0answers
85 views

LXC/LXD Container in ERROR State

I have a Ubuntu 16.04 LTS system where i created 3 LXD containers. They where working fine. The system was reseted without stopping the containers by accident. Now they are in a ERROR state and I ...
0
votes
1answer
38 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. ...
1
vote
1answer
669 views

LXC + Ubuntu 18.04: “Unable to fetch GPG key from keyserver” when trying to create a new container

I have a fresh install of Ubuntu 18.04 LTS server and trying to setup some containers but I'm getting the keyserver error: > lxc-create -n test -t download Setting up the GPG keyring ERROR: Unable ...
0
votes
0answers
24 views

Ambari Confirm Hosts been too long

I am in Confirm Hosts step in Ambari configuration for install hadoop on agents. Now It's past several hours since the registration. Note: I created containers (lxc) as hosts.
1
vote
0answers
51 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 ubuntu@10.0.3.205. ssh: Could not resolve hostname hadoop24: Name or service not known ...
0
votes
1answer
179 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 ...
0
votes
1answer
242 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 ...
2
votes
1answer
292 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 ...
0
votes
0answers
139 views

How to start/stop Openstack on Ubuntu

I am a new user of Openstack on Ubuntu and I just re-installed OpenStack with NovaLXD on my machine. However, since the all lxd, lxc and my OS updated recently, I cannot use the way I usually did to ...
0
votes
0answers
20 views

LXC container issue

please support I'm new to Linux I have Cisco simulator ruining on lxc. the issue appears when I upgraded to 16.4 I have script to run the simultor the error below: root@ubuntu:/opt/simenv# ...
0
votes
0answers
29 views

All services and startup scripts have been disabled in my 16.04 lxc container

I had Ubuntu 16.04 LTS running inside a LXC container, when I updated my proxmox host os, all the startup services and scripts do not run automatically anymore on this 1 container. I have 2 other ...
1
vote
0answers
88 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
1answer
113 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 ...
2
votes
3answers
778 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.
0
votes
0answers
38 views

lxc host machine is behind a cntlm proxy

I have a Ubuntu 14 running on Virtual box on a windows 7 host I have created an lxc container (ubuntu 14) inside this Ubuntu. The vbox is behind a cntlm proxy for internet access. I can access ...
0
votes
0answers
122 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
0answers
215 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
1answer
346 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
1answer
217 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 ...
0
votes
0answers
39 views

Shipping of containers built using LXC

Using Docker we can create images and if posted to docker hub it can be run on any other box. Is similar thing possible with containers built using LXC? Example: we create a lxc-container on a ubuntu ...
0
votes
1answer
68 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 ...
1
vote
0answers
65 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 ...
0
votes
1answer
468 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 ...
0
votes
0answers
99 views

libvirt destroy lxc permission denied

I'm testing LXC over Libvirt. The container started, but can't destroyed. [root@alfabook alfa]# virsh -c lxc:/// start test-ubuntu Domain test-ubuntu started [root@alfabook alfa]# virsh -c lxc:/// ...
2
votes
0answers
181 views

Proxy server troubles with lxc-create in 16.04-lts

I am trying to create a new ubuntu lxc container using lxc-create but I am having issues with a proxy server significantly into ( > 1000 lines ) the creation of the container. lxc-create -n ...
0
votes
0answers
47 views

chroot showing more cores that allowed in lxd container

I have a server with 4 cores (8 threads) and 32GB Ram. I have installed lxd, and with lxd create a container. I limited the container to use 2 cores and 7GB Ram. When I enter to container and open ...
0
votes
1answer
497 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 ...
1
vote
1answer
1k 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
0answers
171 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
1answer
439 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 ...
1
vote
0answers
128 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....
0
votes
1answer
52 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). ...
0
votes
1answer
363 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-...
1
vote
2answers
793 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 ...
1
vote
0answers
570 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
1answer
311 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
2answers
953 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' ...
0
votes
1answer
532 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 ...