All Questions
Tagged with lxc virtualization
43 questions
0
votes
1
answer
157
views
LXD Container IPv4 Interface Management
Ubuntu 18.04.4
lxd 3.0.3
lxc 3.0.3
I have had several containers running without issue for a long time. Today I was making changes to my network and one of the containers picked up a DHCP address.
...
0
votes
0
answers
333
views
Docker in unprivileged LXC container freezes host system
I am running docker in an unprivileged LXC container (alpine) on a proxmox host system. The container has nesting enabled. What i discover is that on high memory consumption in the container, the ...
0
votes
1
answer
193
views
Can I make a single computer out of 3 with lxd cluster?
I'm setting up a LXD cluster on 3 machines.
Though I'm concerned if a single container (a virtual machine) use all the resources of 3 machine.
I mean
Does a single container use all 3 machine's CPU?...
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 ...
2
votes
3
answers
5k
views
How to resize lxc/lxd images, if i am using LVM backend?
I'm using LXD few years and I'm glad to use this platform in my testing environment. But few days ago, I couldn't install Microsoft SQL server 2017. The reason was, that I used default ZFS backend.
...
2
votes
0
answers
258
views
LXD external static ip
I'm using LXD for managing LXC containers. I used the "standard" bridged NAT setup up to now. But know I got an additional static ip which is external available. I want to attach it to my container ...
1
vote
0
answers
1k
views
Linux router set up in LXC on the host machine
I came to you to seek help, maybe clear some things up... You must agree with me, networking is not that easy to grasp!
todays topic: Having a LXC router running on the host machine, doing same job ...
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. ...
0
votes
1
answer
996
views
LXC CentOS Container does not work with multiple IP addresses
Hoping someone can help me as i've been pulling out the only hair I have left (which is not much) trying to figure this out.
I'm unable to assign multiple IPs to any CentOS 7 container, only the ...
0
votes
2
answers
2k
views
Boot Proxmox container into grub?
Is there anyway to boot a Proxmox container into grub? Every time I start it it goes straight into the login screen.
I'm using the Proxmox web interface and the Proxmox version is 4.2-17.
1
vote
0
answers
420
views
Using net.ipv4.ip_forward=0 for LXC containers causes DUP! ICMP packets on VMs
I run LXC Linux containers and so I have net.ipv4.ip_forward=1 set on the host so that I can ping internet (google.com) from inside the LXC container.
However, when I run VirtualBox VMs in the same ...
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:
...
1
vote
1
answer
148
views
How to assign an IPv4 address to a second network interface of an LXC container?
I am running an lxc container which I want to connect to two different bridges (br0 and br1). When I configure the container's config file (/var/lib/lxc/testcontainer/config) as shown below, only the ...
6
votes
2
answers
4k
views
What is the difference between containers and virtual machines?
I want to comprehend all that differ a container from a virtual machine. A filesystem with all operational system can be observed for both of these virtualization methods. But in a Docker container, e....
1
vote
1
answer
150
views
Upgrading Debian Squeeze with OpenVZ to Debian 7/8 with LXC
I have a few servers which are running Debian 6 (Squeeze) which uses OpenVZ to run containers. The containers are some Debian 6 and some Debian 7.
Squeeze was the last version of Debian to support ...
1
vote
1
answer
653
views
LXC (proxmox) JBD high (100%) IO utilisation
We have a dedicated server running a number of smaller guest VMs containing for example, HTTP server, MySQL and some real-time applications.
However we find that JBD inside the guests are often ...
1
vote
0
answers
112
views
What is the network connection speed between two containers communicating via a virtual bridge running on the same host?
Does a virtual bridge (added to /etc/network/interfaces) limit the transfer speed of data from the memory of one lxc/docker container to another?
For example does the memory throughput drop to that ...
3
votes
2
answers
3k
views
LXD 2.0 on Debian 8.4
I'm running Debian 8.4 and would like to set-up recently released LXD 2.0. Is this feasible, or should I stick with LXC? It seems all focus is on using LXD with Ubuntu.
3
votes
2
answers
4k
views
Where are network namespaces in lxc / lxd?
I am trying to understand namespaces in the context of lxd / lxc.
I have two containers which respective eth0 is bridged to br1 and br2 on the host. This is done via a Virtual Ethernet interfaces
...
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 ...
0
votes
0
answers
84
views
Prevent container from shutting down at console exit
As the manual clearly states, an LXC container automatically destroys (shuts down) itself when you exit the console. However, we're using these machines as servers (sshd, sometimes apache, ...) and I ...
2
votes
2
answers
406
views
LinuxContainers arch-linux double login tty
Since upgrading to LXC 1.0 with the new Arch Linux template when I create a new instance I have a double tty when invoking:
lxc-console --name <container>
This is the output:
Arch Linux 3.19....
5
votes
4
answers
845
views
Setting the noatime flag for filesystems inside an lxc container
My host filesystem is ext4 mounted with the noatime flag. But inside an lxc-container, the flag is absent.
Here's the output of mount on the host:
/dev/sdb1 on /home type ext4 (rw,noatime)
And here'...
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 ...
2
votes
0
answers
146
views
LXC containers act differently on difrent servers [closed]
I have two physical servers A and B. I wanted to upgrade them from Ubuntu 12.04 to 14.04.
Here is my current setup (if I'm left out any info here, let me know and I'll add it):
Server A:
Ubuntu 12....
2
votes
1
answer
3k
views
Can a Docker container uses the full CPU power and memory of the host OS?
I am new to Docker, but I have experience of using VM and hypervisor. Referring to Docker introduction and this image, Docker containers are isolated but share the same host OS.
If we deploy only 1 ...
4
votes
2
answers
1k
views
Ubuntu LXC 14.04 Error
I had installed LXC in ubuntu 14.04. I had used an existing template and created a VM by executing the below command.
/usr/share/lxc-templates/lxc-ubuntu -p /lxc/vm0
After the installation getting ...
0
votes
1
answer
446
views
Linux Containers (LXC) : lx-execute and networking
I have a question about LXC Containers.
I have some containers, if I lxc-start them, they come up with networking fine, but I want to just be able to run commands against them using lxc-execute, ...
5
votes
2
answers
1k
views
Does LXC container performance depends of host load?
I am wondering if LXC could offer a full isolated benchmarking environment.
Let's say we have 2 identical machines, with the same fresh Linux and without network connection.
First machine has a load ...
0
votes
3
answers
2k
views
Interface for accessing to guest OS via libvirt
Is there any possible (not necessary native) ways to get access (e.g., terminal usage is the main purpose for me) to guest OS with *nix using libvirt/LXC(not as libvirt module) capabilities? And I don'...
2
votes
1
answer
579
views
Is it possible to limit/throttle page faults with LXC container virtualization?
It's possible to limit a container to 512MB of RAM and 4GB of swap. However, if that container uses memory frequently that has been swapped out wouldn't it dominate the the IO resources of the storage ...
8
votes
3
answers
580
views
Technology for short-lived private VMs
I'm trying to build a system that will run short-lived (CI and test builds) of software components, it's mandatory according to my requirements that each live on a private host. I'm taking that ...
0
votes
2
answers
801
views
Networking (dhcpcd) under LXC
I would like to boot an Arch Linux instance using LXC. Just about everything works, but I'm encountering the following error when trying to configure an interface using dhcpcd:
# dhcpcd eth0
dhcpcd[...
2
votes
2
answers
6k
views
When I restart my LXC environment, the container does not re-bind to the IP address
The IP does no longer respond to a remote ping
With restart I mean:
lxc-stop -n vm3
lxc-start -n vm3 -f /etc/lxc/vm3.conf -d
--
/etc/network/interfaces
auto lo
iface lo inet loopback
up route ...
2
votes
2
answers
802
views
Proper way to expose VirtualBox' machine to network via "one MAC" security locked switch port
Say, we need to expose LXC container (LXC) or Virtualbox VM (VBM) to public network with its own IP-adress (within additionaly assigned network — ADD-net) which is to be routed through main host. When ...
3
votes
1
answer
4k
views
modprobe inside an LXC container
I need to run a WebDAV server inside of an LXC container, but I'm being told that modprobe is not available (even as root). I've seen that this was requested by developers, but how can I get around ...
1
vote
2
answers
928
views
Real life virtual bridge setup on Debian
How do I get the bridge setup done with multipe IP addresses.
Ideally, I would have 4 virtual systems each with it's own IP address but also an intranet address (like 10.#.#.#).
So that they can ...
3
votes
1
answer
1k
views
With CentOS 6 and LXC, "ifconfig" is unable to see network interface (but busybox "ifconfig" works fine)
I've just started working with LXC under CentOS 6 (via the libvirt adapter). If I create an LXC container, I'm unable to see any network interfaces when using the native system tools:
# ifconfig -a
#...
0
votes
1
answer
480
views
How can I set up my own DHCP subnet on Rackspace?
Update: As per grawity and MonkeeSage's comments, it seems my question was pointed in the wrong direction. I've updated the title and question below...
I'm currently evaluating LXC as an option for ...
0
votes
3
answers
4k
views
LXC container network/routing issues
I have been experimenting with LXC virtualisation in order to run virtual machines on a dedicated server, but am having trouble setting up the networking properly.
I am using veth bridged networking, ...
1
vote
2
answers
1k
views
Linux Containers: share box ip address?
I would like to run services like mysqld, apache and vsftpd in separated environment: w/o access to other processes, w/o access to devices, w/o access to binaries and don't execute uploaded files. As ...
9
votes
3
answers
8k
views
use LXC under heavier virtualization (Xen, KVM,Hyper-V,VMVare)
Is it possible to use LXC under heavier virtualization (Xen DomU, KVM, Hyper-V, VMVare) ? I would like to use it as security (isolation) tool, the ability to limit resource consumption is not priority ...
9
votes
3
answers
5k
views
Why LXC when there is linux-vserver?
I am no LXC expert, but as far as I know it is really similar to linux-vserver.
If that is correct, I wonder why there is another player in the already crowded virtualization camp? What does LXC ...