Re: [lxc-users] Where are volumes mounted with LXD 4.x from snap

2020-07-08 Thread David Favor
Kees Bakker wrote: Hey, With LXD (4.0.1) from snap things are quite different with respect to mounted file systems. In the past (before snap was more or less enforced), you could simply go to /var/lib/lxd/storage-pools and you'd see the LVM containers being mounted there. I've installed Ubuntu

Re: [lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread David Favor
wrote: Has anybody invented a procedure, a script, etc., to convert a running machine to a LXC container? I was thinking to create a container of the same OS, and then use rsync, excluding /proc /tmp/ /sys etc. Any ideas? Use the fabulous lxd-p2c script. _

Re: [lxc-users] LXD share /var/lib/mysql from host to container and map user/group

2018-07-14 Thread David Favor
Tony P wrote: Hi David. Those are excellent points. Actually, I regret not mentioning my purpose in the original e-mail. To clarify, I don't intend to run a host mariadb and a container mariadb simultaneously. Also, this is definitely not for production. This is primarily for my development en

Re: [lxc-users] LXD share /var/lib/mysql from host to container and map user/group

2018-07-14 Thread David Favor
Tony P wrote: Hi Andrey. Actually, I should have mentioned this first but I don't mean "share" in the sense of sharing a data-dir with two database instances. Rather, I mean "share" in the context of Host to Container. I will only be running mysql in the container, not the host. So my objective

Re: [lxc-users] LXD share /var/lib/mysql from host to container and map user/group

2018-07-09 Thread David Favor
Tony P wrote: What's the correct way to share the mysql/mariadb data dir of the host system to a container and map the permissions correctly? I have been struggling with this for a couple of days. I'm sorry if this question has been asked before, but I have searched thoroughly and not been able

Re: [lxc-users] bionic image not getting IPv4 address

2018-05-03 Thread David Favor
Fajar A. Nugraha wrote: On Thu, May 3, 2018 at 7:57 PM, Tomasz Chmielewski wrote: Indeed, I can confirm it's some netplan-related issue with /etc/netplan/10-lxc.yaml. Working version for bionic containers set up before 2018-May-02: network: ethernets: eth0: {dhcp4: true} version: 2

Re: [lxc-users] bionic image not getting IPv4 address

2018-05-03 Thread David Favor
Fajar A. Nugraha wrote: On Thu, May 3, 2018 at 10:14 AM, David Favor wrote: Be aware there is a bug in Bionic packaging, so if you upgrade machine level OS from any previous OS version to Bionic, LXD networking becomes broken... so badly... no Ubuntu or LXD developer has figured out a fix

Re: [lxc-users] bionic image not getting IPv4 address

2018-05-02 Thread David Favor
Mark Constable wrote: On 5/3/18 12:42 PM, Tomasz Chmielewski wrote: Today or yesterday, bionic image launched in LXD is not getting an IPv4 address. It is getting an IPv6 address. If you do a "lxc profile show default" you will probably find it doesn't have an IPv4 network attached by default.

Re: [lxc-users] Inotify does not work in a privileged container

2018-04-23 Thread David Favor
Simos Xenitellis wrote: According to this, https://github.com/lxc/lxd/issues/2004 the "Failed to reset devices.list ..." can be ignored. There should be some additional lines earlier (not shown) that have a hint towards the real issue. This "InCronD" is probably using "inotify". Search for "ino

Re: [lxc-users] [Solved] Re: How to get rid of pesky extra dhcp IP

2018-04-21 Thread David Favor
jjs - mainphrame wrote: Thanks for the additional info and pointers. BTW I'd noticed that the ip command showed the extraneous IP missed by ifconfig. But not showing the extra IP was not the problem, rather that the extra IP existed at all. In any event, the removal of netplan and cloud packa

Re: [lxc-users] LXC Copying a running container

2018-04-21 Thread David Favor
Tomasz Chmielewski wrote: On 2018-04-20 21:58, Saint Michael wrote: I need to transfer a copy of a container that cannot be stopped. I don´t mid if the data is slightly out of sync. Is there a way to do this? I tried lxc-copy and it fails because the source is running. rsync? On a destination

Re: [lxc-users] [Solved] Re: How to get rid of pesky extra dhcp IP

2018-04-19 Thread David Favor
t with the above Netplan config file + get your system working, then start making whatever experimental changes seem useful. Netplan is very unforgiving + in many cases syntax errors emit no errors/warnings, so you have to do eyeball syntax checking. Jake On Mon, Apr 16, 2018 at 6:13 AM, D

Re: [lxc-users] [Solved] Re: How to get rid of pesky extra dhcp IP

2018-04-16 Thread David Favor
jjs - mainphrame wrote: Confirmed, removing netplan solves the problem. Thanks for the hint. Jake On Sat, Apr 14, 2018 at 10:39 AM, jjs - mainphrame > wrote: Thanks for the clue. Looking into this. Jake On Sat, Apr 14, 2018 at 10:31 AM, Sergiusz Pawl

Re: [lxc-users] LXC containers networking

2018-04-09 Thread David Favor
Bhangui, Avadhut Upendra wrote: Hello, I’m pretty new to using LXC containers. I have a requirement that the solution running inside the container should be able to communicate to services in public cloud and also with some services on the host machine. 1. How do I setup the n

Re: [lxc-users] authentication in containers jacked-up!

2018-04-09 Thread David Favor
Ray Jender wrote: So in Ubuntu 16.04.4 I created 4 LXD containers using LXC. From the host I created the first container then did $ lxc copy containter1 container2 , 1 to 3 and 1 to 4. It was a challenge for me to make them accessible from the outside world but I conquered that. Now ho

Re: [lxc-users] MySQL Unable to install on 14.04 Container

2017-07-11 Thread David Favor
Gabriel Marais wrote: Hi Guys Recently I have been trying to install MySQL on a Ubuntu 14.04 container. The files are downloaded fine, and installation continues to the point where one needs to specify the root password for MySQL - At this point, after specifying the password, the installat

Re: [lxc-users] How to check DNS records of containers

2017-07-11 Thread David Favor
Adil Baig wrote: In the new LXD (2.5+) is there automatic DNS resolution for containers on the host? I'd like to configure a virtual host on Apache (on the host mahcine) to proxy requests to a container using its DNS rather than its IP. How can i do this? Mention your OS. If you're using U

Re: [lxc-users] /etc/resolv.conf occasionally does not get written in LXC container with static conf

2017-06-24 Thread David Favor
Marat Khalili wrote: Thank you for sharing, I was suspecting systemd too. It is very sad that such drastic measures as incrontab are needed :( Yes. Most of the Ubuntu bugs I've opened recently have to do with systemd oddities. Very ugly. ___ lxc-use

Re: [lxc-users] Need help with static IP address -- Simplest use case.

2017-06-24 Thread David Favor
Michael Johnson wrote: Hi All. I'm utterly failing to configuring a simple static IP address for a single container. http://links.davidfavor.com/wf/click?upn=npdP0-2FMHcGNgMeleDP-2B5CwDT8yGN7SPfWqbXTvyBZ-2Bok79XNVC27qhCKP5ZEg9iC_dR-2FDpsqbqS0pG-2FvtYnlwlYDAXhLtx9yTSf3jZyR4W4FJm5kgQqvrKRmmJ9iEt

Re: [lxc-users] /etc/resolv.conf occasionally does not get written in LXC container with static conf

2017-06-24 Thread David Favor
Marat Khalili wrote: Occasionally after reboot of the host the /etc/resolv.conf file in some container comes up containing only two comment lines (taken from /etc/resolvconf/resolv.conf.d/head). It should be filled in accordance with dns-nameservers line in /etc/network/interfaces (network con

Re: [lxc-users] Broken on Gentoo linux-4.8.17-hardened-r2, LXD 2.11, and lxc 1.0.8

2017-06-05 Thread David Favor
Michael Johnson wrote: Hi All. I'm very new to lxd and having very little success. What is the absolute bare minimum required to get a container up? I've installed lxd. I've started lxd. When I run: lxd init, if I answer all the question with default, I get this: error: Failed to run: iptab

Re: [lxc-users] Broken on Gentoo linux-4.8.17-hardened-r2, LXD 2.11, and lxc 1.0.8

2017-06-05 Thread David Favor
Ron Kelley wrote: Mike, I don’t know anything about Gentoo Linux, but can you consider using Ubuntu 16 or 17 as your LXD host? These OS installs definitely support LXD out of the box. As for the network bridge question; You don’t have to connect any network interface to the container. You

Re: [lxc-users] basic understanding - clarification sought

2017-04-08 Thread David Favor
gunnar.wagner wrote: hi everybody, I am a novice to LXC/LXD and am trying to get a basic understanding together. I have grasped some things which I am not sure about whether I got them wrong or write. Maybe this groups is able and willing to confirm or set things straight for me 1.

Re: [lxc-users] Experience with large number of LXC/LXD containers

2017-03-27 Thread David Favor
Serge E. Hallyn wrote: On Tue, Mar 14, 2017 at 02:29:01AM +0100, Benoit GEORGELIN - Association Web4all wrote: - Mail original - De: "Simos Xenitellis" À: "lxc-users" Envoyé: Lundi 13 Mars 2017 20:22:03 Objet: Re: [lxc-users] Experience with large number of LXC/LXD containers On Sun,

Re: [lxc-users] lxd process 100% CPU

2017-01-28 Thread David Favor
Colin Holywell wrote: I recently upgraded the lxd installation on my Ubuntu 16.04 system. I used the lxd-stable repo to update the packages Ubuntu provides (version 2.0 I think?) to version 2.7. Everything upgraded fine but now once or twice a day the lxd process starts gobbling up a bunch of C

Re: [lxc-users] Current state of LXC as it relates to VoIP / realtime transcoding

2016-11-12 Thread David Favor
Kevin Long wrote: Greetings, first post to the list. I’ve been doing some initial research, started with docker and also LXC by way of Proxmox (which I use for virtualization). Basically, I’m looking at rolling out Freeswitch for a whole bunch of my customers in an automated fashion, and usi

[lxc-users] sudo dpkg-reconfigure -p medium lxd no longer works, what's the alternative

2016-10-19 Thread David Favor
net12 # sudo dpkg-reconfigure -p medium lxd Warning: Stopping lxd.service, but it can still be activated by: lxd.socket net12 # dpkg-reconfigure no longer allows reconfiguring lxd networking. Someone let me know alternatives. Thanks. ___ lxc-users m

Re: [lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread David Favor
Mark Constable wrote: On 19/10/16 05:02, David Favor wrote: Looking for best way to change 10.87.167.115 to 144.217.33.224 (static/public IP). Prefer doing this in a way where communication between host/container + container/container works without adding iptables rules, which become complex

[lxc-users] Looking for LXD-2.4.1 Static IP Setup Documentation

2016-10-18 Thread David Favor
Many conflicting suggestions. Looking for documentation for how to accomplish the following. My project consists of migrating 100s of LXC containers to LXD, where each container has a static/public IP. ___ Environment + example test container... net12 # lsb_release -a No LSB modules are ava