[lxc-users] Setting up containers with multiple logical volumes

2014-02-11 Thread Joshua Schaeffer
I'm trying to figure out how to create an LXC using multiple LVM logical volumes. I'd like to dohave the root filesystem of the LXC on its own LV, the /var directory of the LXC on its own LV, and the /tmp directory of the LXC on its own LV. Here is what I've done sofaron the host: ===

Re: [lxc-users] Setting up containers with multiple logical volumes

2014-02-11 Thread Joshua Schaeffer
Based on the documentation I read, this can be the same, however all I really care about is that the LV gets mounted to that location on the host. On Tue, Feb 11, 2014 at 1:13 PM, Alvaro Miranda Aguilera wrote: > > On Wed, Feb 12, 2014 at 4:11 AM, Joshua Schaeffer < > jschaeffer0.

Re: [lxc-users] Setting up containers with multiple logical volumes

2014-02-13 Thread Joshua Schaeffer
have already mounted your lv inside the container, unmount it, > mount it somewhere else, and try as I tell you, for me it works. > > if you have time, I wrote this: > > http://kikitux.net/lxc/lxc.html > > > > > > On Wed, Feb 12, 2014 at 9:34 AM, Joshua Schaeffer <

Re: [lxc-users] Setting up containers with multiple logical volumes

2014-02-17 Thread Joshua Schaeffer
mount it somewhere else, and try as I tell you, for me it works. if you have time, I wrote this: http://kikitux.net/lxc/lxc.html On Wed, Feb 12, 2014 at 9:34 AM, Joshua Schaeffer mailto:jschaeffer0...@gmail.com>> wrote: Based on the documentation I read, this can be the same,

Re: [lxc-users] Setting up containers with multiple logical volumes

2014-02-17 Thread Joshua Schaeffer
or 'testme1' lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn 'testme1' Thanks, Josh On 02/17/2014 09:55 AM, Serge Hallyn wrote: Quoting Joshua Schaeffer (jschaeffer0...@gmail.com): I still can&

Re: [lxc-users] Setting up containers with multiple logical volumes

2014-02-18 Thread Joshua Schaeffer
Okay thanks for the pointers. I'll be able to try this out tonight and report back. On Mon, Feb 17, 2014 at 10:30 PM, Serge Hallyn wrote: > Quoting Serge Hallyn (serge.hal...@ubuntu.com): > > Quoting Joshua Schaeffer (jschaeffer0...@gmail.com): > > > Yes it failed to st

Re: [lxc-users] Setting up containers with multiple logical volumes

2014-02-18 Thread Joshua Schaeffer
00 Everything seems to be working correctly now. Thanks for all your help, Josh On 02/17/2014 10:30 PM, Serge Hallyn wrote: Quoting Serge Hallyn (serge.hal...@ubuntu.com): Quoting Joshua Schaeffer (jschaeffer0...@gmail.com): Yes it failed to start: 1. lxc-create -n testme1 -t debian 2. r

[lxc-users] Building LXC 1.1 on Debian 8

2015-03-26 Thread Joshua Schaeffer
I've been using LXC's on Debian 7 for over a year now and everything has been working great, but I've just been using the version that is packaged with the distro and I figured it's probably time to get up to date and start taking advantage of the newer features and unprivileged containers. So I've

Re: [lxc-users] Building LXC 1.1 on Debian 8

2015-04-02 Thread Joshua Schaeffer
= veth lxc.network.link = lxcbr0 lxc.network.name = eth0 lxc.id_map = u 0 165536 65536 lxc.id_map = g 0 165536 65536 root@thinkhost:~# cat /etc/sub* | grep lxcuser lxcuser:165536:65536 lxcuser:165536:65536 Thanks, Joshua On Thu, Apr 2, 2015 at 2:49 PM, Serge Hallyn wrote: > Quoting Jos

Re: [lxc-users] Building LXC 1.1 on Debian 8

2015-04-02 Thread Joshua Schaeffer
eged containers and make them > autostart. This is called mithlond, > > https://github.com/Meseira/mithlond > > This is build for Debian Jessie, thus you should find some useful things > inside, i hope ;-) > > Xavier > > > Le 02/04/2015 22:49, Serge Hallyn a écrit : >

[lxc-users] Container doesn't connect to bridge

2015-10-23 Thread Joshua Schaeffer
I have a lxc container on version 1.1.2 on Debian that cannot connect to the network. My host has br0 setup and I can access any machine on the network and internet from the host: This is the host: jschaeffer@prvlxc01:~$ sudo ifconfig [sudo] password for jschaeffer: br0 Link encap:Ethernet

Re: [lxc-users] Container doesn't connect to bridge

2015-10-23 Thread Joshua Schaeffer
ment, > > Benoît Georgelin - > Afin de contribuer au respect de l'environnement, merci de n'imprimer ce > mail qu'en cas de nécessité > > -- > *De: *"Joshua Schaeffer" > *À: *"lxc-users" > *Envoyé: *Vendr

Re: [lxc-users] Container doesn't connect to bridge

2015-10-23 Thread Joshua Schaeffer
Oh, also forgot to mention that I'm using OVS to create the bridge. I didn't think this would be a problem if I got the bridge working on the host, but let me know if I've missed something. Thanks, Joshua On Fri, Oct 23, 2015 at 1:36 PM, Joshua Schaeffer wrote: > Here ya go.

Re: [lxc-users] Container doesn't connect to bridge

2015-10-23 Thread Joshua Schaeffer
you look at this file , it should be 1 > cat /proc/sys/net/ipv4/ip_forward > > Also can you send the OVS db content: > > ovs-vsctl show > > > Cordialement, > > Benoît Georgelin - > Afin de contribuer au respect de l'environnement, merci de n'imprimer ce > ma

Re: [lxc-users] Container doesn't connect to bridge

2015-10-23 Thread Joshua Schaeffer
oot@thinkweb:/# ping 8.8.8.8 connect: Network is unreachable Is this because of my routing table on the container? Thanks, Joshua On Fri, Oct 23, 2015 at 3:50 PM, Joshua Schaeffer wrote: > Okay, ip_forward was set to 0 on the host. I changed it to 1, but I still > wasn't able to ping th

Re: [lxc-users] Container doesn't connect to bridge

2015-10-26 Thread Joshua Schaeffer
. Why would adding the gateway to the config work, but not in interfaces. I've never needed to add the gateway to the config before. On Sat, Oct 24, 2015 at 12:50 AM, Fajar A. Nugraha wrote: > On Sat, Oct 24, 2015 at 5:34 AM, Joshua Schaeffer < > jschaeffer0...@gmail.com> wrot

[lxc-users] CGManager error on debian

2016-01-13 Thread Joshua Schaeffer
I'm getting an error when trying to start an unprivileged container on Debian Jessie. LXC version 1.1.2. I installed CGManager using the instructions here: https://linuxcontainers.org/cgmanager/getting-started/. There weren't any problems installing. Creating the container succeeded without issue.

Re: [lxc-users] CGManager error on debian

2016-01-14 Thread Joshua Schaeffer
On Wed, Jan 13, 2016 at 8:45 PM, Fajar A. Nugraha wrote: > On Thu, Jan 14, 2016 at 6:13 AM, Joshua Schaeffer < > jschaeffer0...@gmail.com> wrote: > >> I'm getting an error when trying to start an unprivileged container on >> Debian Jessie. LXC version 1.1.2. >

[lxc-users] Connecting container to tagged VLAN

2016-01-27 Thread Joshua Schaeffer
I'm trying to setup a container on a new VLAN that only allows tagged traffic and I'm getting varied success. Maybe somebody can point me in the right direction. I can ping the gateway from the host but not from the container and I can't see what I'm missing. I'm using LXC 1.1.5 on Debian Jessie. T

Re: [lxc-users] Connecting container to tagged VLAN

2016-01-27 Thread Joshua Schaeffer
On Wed, Jan 27, 2016 at 2:39 PM, Fajar A. Nugraha wrote: > > > Is eth1 connected to your switch as trunk? If no (e.g. you have the same > settings for eth1 and eth2 on the switch side), > Both ports are connected as trunk. As far as the switch side goes each ports is configured the same. Trunked

Re: [lxc-users] Connecting container to tagged VLAN

2016-01-27 Thread Joshua Schaeffer
On Wed, Jan 27, 2016 at 4:38 PM, Guido Jäkel wrote: > Dear Joshua, > > you wrote, that there's a trunk on eth1 and eth2. But for eth2, i can't > see any VLAN (501 ?) detrunking as with eth1 & eth1.500. In the other hand > you wrote, that eth2 is working. Are you shure, that you realy receive this

Re: [lxc-users] Connecting container to tagged VLAN

2016-01-28 Thread Joshua Schaeffer
On Wed, Jan 27, 2016 at 6:09 PM, Fajar A. Nugraha wrote: > > >> eth2 already works. I set it up for testing outside of all containers >> (i.e. on the host only). From the host: >> >> > That doesn't match what you said earlier. > It actually does. Remember that this LXC host is a virtual machine

[lxc-users] iptables-save inside container

2016-02-05 Thread Joshua Schaeffer
I'm trying to run iptables-save inside a container and it returns nothing (no results, no error... nothing). I found this thread from 2014 and was wondering if it still an issue? https://lists.linuxcontainers.org/pipermail/lxc-users/2014-November/008094.html I am running an unprivileged container

[lxc-users] Setting static arp and DNS options from config file

2016-03-02 Thread Joshua Schaeffer
Newbie question here. I have an unprivileged container using the following network configuration: lxc.network.type= veth lxc.network.link= br0-500 lxc.network.ipv4= 10.240.78.3/24 lxc.network.ipv4.gateway= 10.2

[lxc-users] OpenVPN in Debian Jessie container

2016-05-29 Thread Joshua Schaeffer
I'm trying to setup OpenVPN in an unprivileged container. The host and container are both Debian Jessie on LXC version 1.1.5. When I try to start OpenVPN I get: Sat May 28 20:55:57 2016 us=360137 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) So it makes sens

Re: [lxc-users] OpenVPN in Debian Jessie container

2016-05-30 Thread Joshua Schaeffer
For starters, from "man lxc.container.conf" lxc.hook.autodev A hook to be run in the container's namespace after mounting has been done and after any mount hooks have run, but before the pivot_root, if lxc.autodev == 1. You can never modprobe in unpri

[lxc-users] Mounting ISO files inside LXD container

2016-09-28 Thread Joshua Schaeffer
loop unix-block path=/dev/loop0 root@broodwar:~# ls -l /dev/loop* brw-rw 1 root root 7, 0 Sep 28 16:00 /dev/loop0 Running mount -v gives no extra messages. The ISO file itself is good, I can mount it successfully on the host, just not the container. Does anyone know how to fix this issue? Than

[lxc-users] Accessing /proc files inside container

2016-10-03 Thread Joshua Schaeffer
p 30 23:14 wmem_max -rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_acq_expires -rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_aevent_etime -rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_aevent_rseqth -rw-r--r-- 1 root root 0 Sep 30 23:14 xfrm_larval_drop Thanks, Joshua

Re: [lxc-users] Accessing /proc files inside container

2016-10-06 Thread Joshua Schaeffer
Anybody know how to do this? On Mon, Oct 3, 2016 at 8:26 AM, Joshua Schaeffer wrote: > I have a user that is trying to do an "ipsec start" inside a container and > they are getting the following error: > > [root@utah ~]# ipsec start > /usr/libexec/ipsec/_stackmanager: l

Re: [lxc-users] subuids and subgid range with multiple LXC containers

2017-03-30 Thread Joshua Schaeffer
On Tue, Mar 28, 2017 at 7:07 PM, Serge E. Hallyn wrote: > One thing I've always thought would be useful, but not had the time to > pursue, woudl be to have a concept of 'clients' or somesuch, where each > client can get one or more unique ranges. They can then use those > ranges however they wan

[lxc-users] root device isn't being inherited on ZFS storage pool

2017-05-31 Thread Joshua Schaeffer
ge device: lxduser@raynor:~$ lxc storage list +-++-+-+ | NAME | DRIVER | SOURCE | USED BY | +-++-+-+ | lxdpool | zfs| lxdpool | 15 | +-++-----+--

Re: [lxc-users] root device isn't being inherited on ZFS storage pool

2017-05-31 Thread Joshua Schaeffer
I guess I should have mentioned an important change. When I switched from BTRFS to ZFS I also went from LXD 2.0 to 2.13. On Wed, May 31, 2017 at 10:27 AM, Joshua Schaeffer wrote: > I've recently switch from using BTRFS to ZFS backend, and my containers on > the ZFS backend aren'

Re: [lxc-users] root device isn't being inherited on ZFS storage pool

2017-05-31 Thread Joshua Schaeffer
Thanks for the explanation Stéphane, I will add the device locally. I figured it was a change in versions that caused my discrepancy. Joshua Schaeffer On Wed, May 31, 2017 at 11:25 AM, Stéphane Graber wrote: > On Wed, May 31, 2017 at 11:01:39AM -0600, Joshua Schaeffer wrote: > >

[lxc-users] Adding a second disk to a container

2017-07-12 Thread Joshua Schaeffer
I just want the container to look like it has two disks, one mounted on / and the other mounted under /mnt. Thanks, Joshua Schaeffer ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Adding a second disk to a container

2017-07-12 Thread Joshua Schaeffer
So is adding a storage volume the proper way to add a 2nd, 3rd, 4th... disk to a container, then? What is the relationship between "lxc storage" and "lxc storage volume"? It sounds like when a container is created it gets a container volume. What is the difference between a c

[lxc-users] setgid error inside container

2017-07-20 Thread Joshua Schaeffer
e host. root@bllldap01:~# getent passwd jschaeffer jschaeffer:*:10:10:Joshua Schaeffer:/home/jschaeffer:/bin/bash root@bllldap01:~# ldapwhoami -Q dn:uid=jschaeffer,ou=end users,ou=people,dc=appendata,dc=net root@bllldap01:~# ldapsearch -LLLQ -b "uid=jschaeffer,ou=End Users,o

[lxc-users] MAC address prefix

2017-07-21 Thread Joshua Schaeffer
o set a prefix based on a profile, not just globally. Using LXD 2.15. Thanks, Joshua Schaeffer ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] setgid error inside container

2017-07-24 Thread Joshua Schaeffer
tials. On 07/20/2017 11:09 AM, Joshua Schaeffer wrote: > Hey guys, > > I'm trying to setup my subuid and subgid parameters correctly and I'm clearly > doing something wrong as I keep getting "setgid: Invalid argument" when I try > to su to my user. I have all m

[lxc-users] BIND isn't recognizing container CPU limits

2017-08-03 Thread Joshua Schaeffer
he cores of the host? I can certainly limit BIND to using less threads, but it shouldn't be able to see that many cores in the first place. I'm using LXD 2.15 Thanks, Joshua Schaeffer ___ lxc-users mailing list lxc-users@lists.lin

[lxc-users] No certificate when adding remote

2017-10-01 Thread Joshua Schaeffer
crt     error: No client certificate provided Why would the remote not send its certificate? I have the files: server.ca, server.crt, and server.key in /var/lib/lxd/ for both the server and the remote. I replaced the the default files with my own. I can ve

[lxc-users] Nova LXD - Timeout waiting for vif plugging callback

2018-08-13 Thread Joshua Schaeffer
g_is_fatal set to true (the default). I haven't been able to figure out why the container never gets a response after the vif interface is created. If I set vif_plugging_is_fatal to false the container gets created, but I can't ping the IP address that gets assigned to it. Any help wou

[lxc-users] Managing network devices on different VLAN's in LXD

2018-11-13 Thread Joshua Schaeffer
a container/profile, but I haven't been able to figure out how to do this directly through LXD (i.e using the `lxc network ...` command). Is this possible? Thanks, Joshua Schaeffer ___ lxc-users mailing list lxc-users@lists

Re: [lxc-users] LXD static IP in container

2020-02-11 Thread Joshua Schaeffer
ether 00:16:3e:21:ac:dc brd ff:ff:ff:ff:ff:ff link-netnsid 0 lxcuser@blllxc02:~$ lxc exec bllmail02 -- ip -4 addr show veth-ext-svc 314: veth-ext-svc@if315: mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netnsid 0     inet 192.41.41.85/26 brd 192.41.41.127 scope global veth-ext-svc   

[lxc-users] Unable to join cluster

2020-03-19 Thread Joshua Schaeffer
20-03-19T05:06:03-0600 lvl=info msg="Updating images" t=2020-03-19T05:06:03-0600 lvl=info msg="Done updating images" t=2020-03-19T11:06:03-0600 lvl=info msg="Updating images" t=2020-03-19T11:06:03-0600 lvl=info msg="Done updating images" Any idea where I can get more information about what is going on to successfully add the node to the cluster? -- Thanks, Joshua Schaeffer ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Mapping multiple ids

2020-04-03 Thread Joshua Schaeffer
leged container. > > I'm guessing that remapping UID/GID 48 is not permitted in a non-privileged > container. I would guess the same thing > > Is there a better way to do this? I would also be interested if there is a better way to do this as the method I listed above may not a

Re: [lxc-users] Unable to join cluster

2020-04-07 Thread Joshua Schaeffer
= 0 futex(0x17e4af0, FUTEX_WAIT, 2, NULL)   = 0 futex(0x17e4af0, FUTEX_WAKE, 1) = 1 futex(0x17e5628, FUTEX_WAIT, 0, NULL ^C)   = ? ERESTARTSYS (To be restarted if SA_RESTART is set) strace: Process 13785 detached On 3/19/20 11:41, Joshua Schaeffer wrote: > Hey all, I'm trying to

Re: [lxc-users] Unable to join cluster

2020-04-08 Thread Joshua Schaeffer
table LXD 4.0.0 > which has just been released. You can install it on 18.04 using "snap > install lxd", but make sure "apt-get remove lxd" first. Thanks, I'll give that a try -- Thanks, Joshua Schaeffer ___ lxc-users mailing

[lxc-users] Intermittent network issue with containers

2020-06-30 Thread Joshua Schaeffer
tting on one or both interfaces. - Looking at the lxd logs to see if anything related shows up. Any pointers on where I could look to get more info would be appreciated. -- Thanks, Joshua Schaeffer ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Intermittent network issue with containers

2020-07-01 Thread Joshua Schaeffer
Thanks Fajar, I'll look into the workaround. On 7/1/20 12:40 AM, Fajar A. Nugraha wrote: > On Wed, Jul 1, 2020 at 1:05 PM Joshua Schaeffer > wrote: >> And the really odd part is that if I try to actually ping *from* the >> container *to* my local box it works AND afte

[lxc-users] AppArmor denies connect operation inside container

2020-07-06 Thread Joshua Schaeffer
s now, but thought I'd ask to see if anybody can point me in the right direction.     lxcuser@host:~$ lxd --version     3.0.3     lxcuser@host:~$ lsb_release -a     No LSB modules are available.     Distributor ID:    Ubuntu     Description:    Ubuntu 18.04.4 LTS     Release:    18.04     Cod

Re: [lxc-users] AppArmor denies connect operation inside container

2020-07-07 Thread Joshua Schaeffer
On 7/6/20 9:35 PM, Fajar A. Nugraha wrote: > Try editing /etc/apparmor.d/usr.sbin.slapd inside the container I added /run/saslauthd/mux rw, to the usr.sbin.slapd profile inside the container and it fixed the problem. -- Thanks, Joshua Schaef

[lxc-users] Moving storage volumes to new pool

2021-01-20 Thread Joshua Schaeffer
    | lxcserver | +--+--+-+-+---+ lxcuser@lxcserver:~$ lxc storage volume move btrfspool1/bllweb05 cephpool1/bllweb05 Error: not found How are you supposed to specify the move command to move a volume from one storage pool to another? -- Thanks, J