Re: [lxc-users] not allowed to change kernel parameters inside container

2019-05-25 Thread Sergiusz Pawlowicz
Use KVM and problem solved.

S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users


Re: [lxc-users] docker in LXD from snap?

2019-03-14 Thread Sergiusz Pawlowicz
On Thu, 14 Mar 2019 at 16:55, Tomasz Chmielewski  wrote:
>
> Is the following guide also relevant for running docker in LXD installed
> from snap?
>
> https://stgraber.org/2016/04/13/lxd-2-0-docker-in-lxd-712/

yes, I am using docker - but container must be privileged for docker
to run properly.

s.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users


[lxc-users] newest snap 6729 does not start on bionic

2018-04-18 Thread Sergiusz Pawlowicz
newest snap 6729 does not start up lxd, linked current -> 6643 and
everything is working well again

i am not able to trace the problem, unfortunately
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

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

2018-04-14 Thread Sergiusz Pawlowicz
it's not a bug, it is a feature

man netplan
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] dynamic cgroup memory limit

2018-03-31 Thread Sergiusz Pawlowicz
On 31 March 2018 at 16:57, Tian-Jian Wu  wrote:
> please allow my silly question , how?
> I know it's ok to set memory limit in config file and it's set to kernel
> later.
> But after container started how to change memory limit?  What command?

it is clearly described on:

https://insights.ubuntu.com/2016/03/30/lxd-2-0-resource-control-412

lxc config set my-container limits.memory 256MB

s.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] dynamic cgroup memory limit

2018-03-30 Thread Sergiusz Pawlowicz
On 31 March 2018 at 06:48, Tian-Jian Wu  wrote:
> is it possible to start a container with set memory limit (let's say 1G in
> this case) and set its memory limit value to another , for example, 500MB,
> later??

Sure it is, you are able to modify these limits anytime live.

S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] LXC 2.1 to be released on Tuesday (call for testing)

2017-09-25 Thread Sergiusz Pawlowicz
Hi, I'm getting:

The configuration file contains legacy configuration keys.
Please update your configuration file!

but I do not see the update script inside the ubuntu xenial package:

# find / -xdev -name lxc-update-config
#

# dpkg -l | grep lxd
ii  lxd  2.18-0ubuntu1~ubuntu16.04.1~ppa1
 amd64Container hypervisor based on LXC - daemon
ii  lxd-client   2.18-0ubuntu1~ubuntu16.04.1~ppa1
 amd64Container hypervisor based on LXC - client

S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Image "ubuntu:x" not found (no 16.04 images on "ubuntu:")

2017-03-30 Thread Sergiusz Pawlowicz
On Thu, Mar 30, 2017 at 5:34 PM, Simos Xenitellis
 wrote:
> Hi All,
>
> I just tried "lxc image list ubuntu:" and I do not see any 16.04 images.
> (i.e. lxc launch ubuntu:x mycontainer   fails).
>
> I attach the output of "lxc image list ubuntu:".
>
> I suppose it is a temporary issue, just logging it here.

I have the same issue.

It's really strange, today I am not able to launch any installation,

$ lxc launch ubuntu: test
Creating test
error: Couldn't find the requested image

It looks like aliases got lost on  https://cloud-images.ubuntu.com/releases ?

$ lxc image list ubuntu:

++--++-+-+--+---+
|   ALIAS| FINGERPRINT  | PUBLIC |
DESCRIPTION   |  ARCH   |   SIZE   |  UPLOAD
DATE  |
++--++-+-+--+---+
| p (5 more) | 973c3a42737a | yes| ubuntu 12.04 LTS amd64
(release) (20170307) | x86_64  | 156.00MB | Mar 7, 2017 at 12:00am
(UTC)  |
++--++-+-+--+---+

What is "p (5 more)"?

Did I miss something?

cheers,
Serge
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] cloud-init network config error

2017-03-15 Thread Sergiusz Pawlowicz
On Tue, Mar 14, 2017 at 8:49 PM,   wrote:

> #cloud-config.yml
> network:
>   version: 1
>   config:
> - type: physical
>   name: eth0
>   subnets:
> - type: static
>   ipv4: true
>   address: 10.10.10.20
>   netmask: 255.255.255.0
>   gateway: 10.10.10.1
>   control: auto
> - type: nameserver
>   address: 10.10.10.1
>
> I'm launching the container on Ubuntu 16.04 (v2.0.9) with the following:
>
> lxc launch ubuntu: CONTAINER -c user.network-config="$(cat
> cloud-config.yml)"

You put too much into the network-config file, remove "network":

version: 1
config:
   - type .

cheerio,
S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

[lxc-users] [ error: sql: no rows in result set ]

2017-03-06 Thread Sergiusz Pawlowicz
Hi, how can I debug this?

# lxc copy pcp ruszt:pcp
error: sql: no rows in result set

1) nothing in logs in /var/log/lxd
2) lxc monitor –type=logging also shows nothing interesting

 driver: lxc
  driver_version: 2.0.7
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.4.0-64-generic
  server: lxd
  server_pid: 32166
  server_version: 2.10.1
  storage: zfs
  storage_version: 0.6.5.6-0ubuntu15

cheers,
S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Debian 8 container on Ubuntu 16.04 host

2016-12-15 Thread Sergiusz Pawlowicz
On Fri, Dec 16, 2016 at 9:58 AM, William Cooley  wrote:

>  Has anyone here tried running a Debian 8 container on a Ubuntu 16.04 host
> and had success with making systemd work properly?

There is absolutely no problem with that, these systems are nearly identical.

S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Strange freezes with btrfs backend

2016-12-03 Thread Sergiusz Pawlowicz
> You'd need to set arc to be as small as possible:
> # cat /etc/modprobe.d/zfs-arc-max.conf
> options zfs zfs_arc_max=67108865

What is a sense of using ZFS if you don't use its cache? Non sense. it
will work slower and less reliable than ext4.

S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Strange freezes with btrfs backend

2016-12-02 Thread Sergiusz Pawlowicz
With 1GB of memory is is not recommended to use ZFS not BTRFS,
especially via a disk image file. Just forget about it.

S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] LAN for LXD containers (with multiple LXD servers)?

2016-09-19 Thread Sergiusz Pawlowicz
On Mon, Sep 19, 2016 at 8:48 PM, brian mullan  wrote:

> Automatically builds tunnels through firewalls and NATs without any further
> setup (for example, port forwarding).

I would not appreciate something which "automatically" (whatever it
means) traverse my firewalls, to be honest. We should treat our data
seriously, Brian.

Serge
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] LAN for LXD containers (with multiple LXD servers)?

2016-09-18 Thread Sergiusz Pawlowicz
On Sun, Sep 18, 2016 at 7:11 PM, Tomasz Chmielewski <man...@wpkg.org> wrote:
> On 2016-09-18 21:05, Sergiusz Pawlowicz wrote:
>>
>> On Sun, Sep 18, 2016 at 4:16 PM, Tomasz Chmielewski <man...@wpkg.org>
>> wrote:
>>
>>> While I can imagine setting up many OpenVPN tunnels between all LXD
>>> servers
>>
>>
>> I cannot imagine that :-) :-)
>>
>> Use tinc, mate. Your life begins :-)
>>
>> https://www.tinc-vpn.org/
>
> I did some reading about tinc before, and according to documentation and
> mailing lists:
>
> - performance may not be so great
>
> - it gets problematic as the number of tinc instances grows (few will be OK,
> dozens will work, but beyond that, the things might get slowish)
>
> - if I'm not mistaken, you need to run a tinc instance per LXD client, not
> per LXD server, so that's extra management and performance overhead (i.e. if
> two tinc clients are running on the same server, they would still encrypt
> the traffic to each other)

I think you must read more, because everything you wrote is simply false.

Or, maybe, try it? :-) :-) :-)

cheers!
S.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] LAN for LXD containers (with multiple LXD servers)?

2016-09-18 Thread Sergiusz Pawlowicz
On Sun, Sep 18, 2016 at 4:16 PM, Tomasz Chmielewski  wrote:

> While I can imagine setting up many OpenVPN tunnels between all LXD servers

I cannot imagine that :-) :-)

Use tinc, mate. Your life begins :-)

https://www.tinc-vpn.org/

cheers,
Serge
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users