Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

LXD Networking, LXC Containers in a different subnet don't reply

I have a network 10.0.0.0/24. In this network I have the following machines that matter for the question: 10.0.0.207 - my Ubuntu Server LXD Host 10.0.0.215 - my Firewall, and the default gateway for ...
SimonS's user avatar
  • 807
0 votes
0 answers
128 views

when I use the LXC IP on the browser it gives "This site can’t be reached"

Basically I want to establish website with the LXC. so I installed LXD and created LXC called app1, then installed apache2. All are running, but when I use the LXC IP on the browser it gives "...
Astro's user avatar
  • 101
2 votes
0 answers
532 views

How to move a linux container to a remote server running proxmox 7.0?

I am currently in the process of migrating a server running several linux containers to a server managed by proxmox. In the past when i moved a linux container to a different host i just used the LXD ...
harald's user avatar
  • 403
1 vote
0 answers
225 views

Why does this systemd service not run at the right time (loading encryption keys from a network drive which are required for lxc containers)?

In Debian with systemd, I use zfs and lxc. My zfs datasets are encrypted and their keys can be loaded from a network host via my /etc/zfs/zfs-load-key.sh script. My LXC containers are started by lxc....
divB's user avatar
  • 582
1 vote
1 answer
297 views

cannot shh into lxc container even after changing config file

I am using Ubuntu 18.04. I have created an lxc-container called ctn and can log into it by using lxc-attach, ending up as the root user. When running the following with the ip shown by running lxc-ls: ...
thaumoctopus's user avatar
0 votes
1 answer
717 views

Does LXC support XFS filesystem?

I am working on my local system and I want to run both docker and LXC containers. Docker provides storage options that only works with XFS to limit the storage volume inside containers. But that ...
user3271961's user avatar
1 vote
0 answers
737 views

LXC routing container subnet routing

I have a CentOS 7 box with 2 NICs - one ethernet port, and one wireless. I would like to create an lxc container that acts as a router that meets the following requirements: When running hostapd, ...
Zane's user avatar
  • 11
1 vote
2 answers
4k views

nftables does not write to syslog

Running Debian 10 on a LXC container: # apt-get -y install nftables # nft --version nftables v0.7 (Scrooge McDuck) # nft flush ruleset # nft add table inet filter # nft add chain inet filter input # ...
Julen Larrucea's user avatar
1 vote
0 answers
166 views

virt-sandbox error creating an OS container with lxc backend in virt-manager

I am attempting to create an OS container through virt-manager with the lxc backend. virt-sandbox exits without any information on why it fails. Where can I find logs for it? Can I run virt-sandbox ...
Ananth's user avatar
  • 61
0 votes
1 answer
66 views

When should we use containerized application on Linux

I would like to create a Linux server but I'm stuck on one question: How to know when I should use Docker or Lxc for a given application instead of installing it natively ? For example, on my server ...
locobastos's user avatar
1 vote
1 answer
5k views

LXC container cannot ping outside

I'm currently creating a new container on a fresh server and I'm facing a network issue. Basically the container cannot reach anything on the Internet i.e. every request timeout. Here are the ...
Forbinn's user avatar
  • 11
0 votes
1 answer
434 views

How to get a Linux container to connect to the internet through a bridge?

My Linux host has a bridge device br0, and I have created an arch Linux container but it isn't able to access the internet. When the container is started the veth device appears on the host: [host]# ...
river's user avatar
  • 101
2 votes
1 answer
2k views

Is lxd/lxc a suitable replacement to virtual machines (vSphere, for example) for server infrastructure? [closed]

I would like to move my servers to virtual machines. This is because it'll make it easier for me to fire up more machines and back them up in case the physical server is damaged (I'm not aware of ...
The Quantum Physicist's user avatar
-2 votes
1 answer
741 views

Even with root user Im receiving 'Operation not permitted' when try creating gluster volume between Ubuntu 14.04 LXC containers

Even with root user Im receiving 'Operation not permitted' when try creating gluster volume between Ubuntu 14.04 LXC containers. Need test the solution locally before install it on prodution and even ...
Mark's user avatar
  • 47
5 votes
2 answers
12k views

Jenkins web server not responding to HTTP requests in Ubuntu/Dell PowerEdge R640

I have a system (the "host") that runs several containers, using LXC (i.e. the "guests"). I've installed Jenkins inside the guests and they appear to be working as intended, except that they don't ...
code_dredd's user avatar
1 vote
2 answers
2k views

Accessing LXC frm host over local network

Hay! I searched a lot, but it seems this is not common issue. Comments are much appreciated! # Set variables HOST=192.168.0.254 LXC=192.168.0.105 I am dealing with LXC (NGINX, MySQL) and I am not ...
Georgi Tsvetanov Tsenov's user avatar
2 votes
1 answer
1k views

LXC container not connecting to bridge on startup

I'm struggling to get an lxc container to startup with proper networking. /etc/network/interfaces: auto lxcbr0 iface lxcbr0 inet static address 192.168.5.69 netmask 255.255.255.0 ...
whatsisname's user avatar
0 votes
1 answer
753 views

ssh chroot to lxc container

I have a PC with sshd service (192.168.1.1). The PC contains two users user1 and user2. I installed lxc service and configured a container. How can I configure ssh server on 192.168.1.1 that ...
Алексей Мальченко's user avatar
0 votes
0 answers
2k views

LXC can not take IP from DHCP

I am trying to assign an IP to lxc so that it become visible to other machine on network. host-machine:~$ /etc/network/interfaces auto lo iface lo inet loopback auto enp4s0 iface enp4s0 inet manual ...
Nitigya Sharma's user avatar
3 votes
2 answers
2k views

How do I change default MTU for lxdbr0 for containers created using LXD?

I'm running Linux containers created by LXD on Ubuntu 14.04.05. I have a lxdbr0 interface setup, but its default MTU is 1500. How do I update it?
bits's user avatar
  • 131
4 votes
2 answers
12k views

How to build a custom LXD image from install ISO

I have an operating system installation ISO. My goal is to run the second operating system on top of the kernel of Ubuntu host running LXD. I cannot find any base image for the said operating system. ...
John Mayer's user avatar
2 votes
2 answers
3k views

lxc-net doesn't like static ip for a bridged container

I've just started to use LXC containers and I found that even if I set a particular ip address on lxc container config file, lxc-ls --fancy shows always another ip, which is pingable and the /etc/...
JumpAlways's user avatar
2 votes
1 answer
2k views

Container can't ping github.com but host can

I have the following setup: [ LXC Container running Debian ] <--> virbr0 <--> [Fedora 24 host] DNS resolve works for every single domain I've tried to so far from the host and from the ...
AreusAstarte's user avatar
3 votes
1 answer
424 views

Why LXC requires restart?

LXC documentation says: Just before you create your first container, you probably should logout and login again, or even reboot your machine to make sure that your user is placed in the right ...
Jacek L.'s user avatar
  • 131
1 vote
1 answer
2k views

How to open the console of a container as a non-root user in LXD 2.0

I'm new to container things and fiddling with LXD-2.0 on an ubuntu-16.04 host with a Alpine3.4 container. Questions: How to open the console of the container with a non-root user? lxc exec ...
John Wang's user avatar
1 vote
1 answer
93 views

Why host stops when halting LXC guest?

I'm following these directions to create an LXC box on Debian 7 (wheezy): http://fabiorehm.com/blog/2013/07/18/crafting-your-own-vagrant-lxc-base-box/ I start a container/guest using this command: ...
swbandit's user avatar
  • 113
0 votes
1 answer
772 views

LXC Networking: Access other container from another container throug host's domain

This is my first question here so sorry for any mistakes I make. I've not found any solution for my question yet here in serverfault. I setup two LXC Containers: one ("A") with Dovecot and Postfix, ...
nee6AGag's user avatar
1 vote
1 answer
5k views

Mount Block Device in LXD

I have been experimenting with LXD on Ubuntu Server 16.04 and i'm trying to figure out how to mount a linux block device from the host in the container. I was able to successfully add the device using ...
Tristan Vigil's user avatar
4 votes
0 answers
547 views

Automate the LXD configuration interactive setup?

I realize lxd init has an interactive setup for networking, etc. I'm looking to automate some VM's running LXD and was wondering if there is a nice CLI command that documents this configuration as a ...
coderkid's user avatar
  • 193
2 votes
2 answers
2k views

IPv6 and LXC connectivity

I am struggling a bit on how to equip my LXC configuration with IPv6 currently. What's the setup? Ubuntu 16.04 LTS LXC2-beta from the Ubuntu PPA's (feature IPv6 connectivity) I use a netcup IPv6 ...
Fohlen's user avatar
  • 121
1 vote
1 answer
1k views

Can't ping my LXC container

I have set up a linux container on my server. The problem I have right now is that I cannot ping my linux container from my laptop, but I can ping the hypervisor. I created the LXC by using: lxc-...
Adam Sunde's user avatar
2 votes
1 answer
4k views

FreeIPA in LXD/LXC containers - cannot switch user

The Setup consists of one FreeIPA-Server and one Client, which both reside in unprivileged LXD-Containers on the same Host. Both containers and the host machine run Ubuntu 16.04. All Settings are ...
zenyatta's user avatar
1 vote
1 answer
39 views

lxc 1.1.2 on Debian Squeeze

I am running lxc 0.8.0 inside Debian Squeeze (Linux kernel 3.4.34). Does anyone run lxc 1.1 or newer inside Linux kernel 3.4? As I know, docker require Linux kernel version at least 3.16. What is the ...
Waveter's user avatar
  • 574
3 votes
1 answer
4k views

CGroups memory limit not working

I am trying to limit memory usage for a LXC container using CGroups, but I can't limit the memory. # lxc-cgroup -n maxdaniel981 memory.limit_in_bytes 134217728 lxc_container: failed to assign '...
maxdaniel98's user avatar
1 vote
0 answers
121 views

Strange messages in my syslog on Debian

I am getting strange messages on my /var/log/syslog that aren't usual. I am running a Debian Jessie LXC Container inside of a Debian Wheezy machine. But I believe this is not the problem. An example ...
gtbono's user avatar
  • 237
3 votes
3 answers
3k views

service apache2 restart leads to "Error: No space left on device"

If I do me@server:/home/me# service apache2 restart on my LXC-VPS (node-server is not under heavy load) I'm getting Error: No space left on device df -h tells me that there is plenty enough ...
MyFault's user avatar
  • 953
2 votes
2 answers
1k views

Debian Linux routing additional IP to LXC

I'm trying to route an additional IP of my server from Hetzner to a LXC instance (on Debian Jessie). I've found this guide http://www.jotschi.de/technik/2012/04/18/hetzner-lxc-linux-subnet-...
K.A.B.'s user avatar
  • 23
5 votes
1 answer
9k views

IPv6 Neighbor Discovery/Routing Failing for Kernel 3.10

Stupid mistakes led to all of this, read Update 5 Intro I'm trying to setup a Linux Router (LXC, 3.10.0-123.el7.x86_64) with IPv6. The provider is Hetzner and I got 2 subnets, one /56 and a /64. They ...
Thomas Rosenstein's user avatar
1 vote
1 answer
1k views

Change shell prompt based on container name?

I have been doing a lot of work using Linux containers, and I keep forgetting which of the terminals on my screen is running inside which container, particularly when I leave them open overnight. How ...
Johannes Ernst's user avatar
0 votes
1 answer
570 views

Forwarding all traffic coming into eth0 on host to eth1 on LXC container

I'm trying to monitor all the traffic coming into my computer using software running in an LXC container. The software on the LXC expects to be monitoring eth1. Thus, I would like to Create an ...
Isaac Dykeman's user avatar
4 votes
2 answers
8k views

LXC container shows host's full RAM amount and CPU count

I've been using LXC containers for a few years and have recently expanded the types of applications that run inside of container environments. I'm starting to limit resources at the container level ...
ewwhite's user avatar
  • 200k
1 vote
1 answer
2k views

Setup public IP address on LXC container

Can anyone tell me how to setup a network interface for each LXC container so that each container can have its own dedicated IP address? Here's what the /etc/network/interfaces file on my host node ...
Francis's user avatar
  • 131
1 vote
0 answers
62 views

(Unexpected?) blkio controller behavior

I'm using docker 1.4.0 with lxc-1.0.6 and cgroup-lite-1.1.5 on Ubuntu 12.04. I have 3 hard disks (/dev/[sdb-sdd]) that I write to from 3 distinct containers. They have only one XFS partition, mounted ...
ivotron's user avatar
  • 111
1 vote
3 answers
2k views

Missing packages after clean Debian install

I've just installed a clean version of Debian (Wheezy) using the netInstall image. I feel like there's a lot of missing package (that are usually installed by default when I used to use the full ...
Erwald's user avatar
  • 185
38 votes
6 answers
41k views

Mount Docker container contents in host file system

I want to be able to inspect the contents of a Docker container (read-only). An elegant way of doing this would be to mount the container's contents in a directory. I'm talking about mounting the ...
dflemstr's user avatar
  • 593
1 vote
0 answers
1k views

lxc command always "get error 4 in libc-2.12.so"

I've tried several time to find out why suddenly my LXC not working, I use dmesg | tail it shows: lxc-start[2777]: segfault at fffffffffffffffc ip 000000390347b82c sp 00007fffd9046c18 error 4 in ...
Bayu Permadi's user avatar
1 vote
2 answers
597 views

What is Linux containers after all? [closed]

I've been reading many documentations on Linux containers. I also tried it out the CentOS way and the Ubuntu way . Wikipedia says it is an operating system–level virtualization. Linuxcontainers....
beginer's user avatar
  • 279
7 votes
1 answer
2k views

Why are cgroups (blkio serviced bytes) and iotop producing diverging results

I work with lxc user space tools on ubuntu 14.04 and I want to perform some stress tests and benchmarking within a container. I know that free and htop are not working properly in a container. I am ...
Tropp Meaison's user avatar
1 vote
1 answer
2k views

IP address reuse on macvlan devices

I'm trying to create easy to use and possibly simple testing environment for some product and got some strange behaviour of macvlan's. What I'm trying to achieve: make a toolset for one-line start/...
Alex Bubnov's user avatar
82 votes
7 answers
214k views

How to specify hostname for the running container?

I'm having trouble setting the hostname on a running docker container. I'm also having trouble understanding how to specify hostname after the image is started. I started a container from an image I ...
Miguel Ping's user avatar