[lxc-users] some command line questions

Serge Hallyn serge.hallyn at ubuntu.com
Wed Apr 29 07:24:24 UTC 2015


Quoting Fırat KÜÇÜK (firatkucuk at gmail.com):
> i find the command from this document:
> 
> https://github.com/lxc/lxd/blob/master/specs/command-line-user-experience.md
> 
> Document can be updated.

Patches welcome and appreciated.

>  0 ✓ serge at sl ~/go/bin $ lxc config set b2 limits.memory 4G
> 0 ✓ serge at sl ~/go/bin $ lxc start b2
> 0 ✓ serge at sl ~/go/bin $ lxc stop b2
> 0 ✓ serge at sl ~/go/bin $ lxc config set b2 limits.memory 4GB
> 0 ✓ serge at sl ~/go/bin $ lxc start b2
> error: starting the container failed
> 
> So I'd call this a bug in lxc - maybe two - for not warning you at
> 'config set' time about it being invalid, and for not accepting 4GB.
> 
> Quoting Fırat KÜÇÜK (firatkucuk at gmail.com):
> > i tried:
> >
> > lxc config set ilactakip limits.memory 4GB
> >
> > lxc accepted the key but container doesn't start.
> >
> >   lxc_container 1430238697.214 INFO     lxc_cgroup -
> > cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for ilactakip
> >   lxc_container 1430238697.216 INFO     lxc_monitor -
> > monitor.c:lxc_monitor_sock_name:177 - using monitor sock name
> > lxc/92ea7555d42fc75c//var/lib/lxd/lxc
> >   lxc_container 1430238697.219 ERROR    lxc_cgmanager -
> > cgmanager.c:cgm_setup_limits:1247 - call to cgmanager_set_value_sync
> > failed: invalid request
> >   lxc_container 1430238697.219 ERROR    lxc_cgmanager -
> > cgmanager.c:cgm_setup_limits:1250 - Error setting cgroup
> > memory:lxc/ilactakip limit type memory.limit_in_bytes
> >   lxc_container 1430238697.219 ERROR    lxc_start - start.c:lxc_spawn:984
> -
> > failed to setup the cgroup limits for 'ilactakip'
> >   lxc_container 1430238697.286 ERROR    lxc_start -
> > start.c:__lxc_start:1164 - failed to spawn 'ilactakip'
> >
> >
> >
> >
> >
> >
> >
> > 2015-04-28 19:25 GMT+03:00 Fırat KÜÇÜK <firatkucuk at gmail.com>:
> >
> > > Hi,
> > >
> > > ı want to use lxd on my dedicated server to seperate my projects like
> kvm
> > > based VPSs.
> > >
> > > So i cannot find a complete document about lxd
> > >
> > > how can i limit memory of my lxd container?
> > >
> > > I tried something like this but cannot succeeded
> > >
> > > lxc config set ilactakip lxc.cgroup.memory.limit_in_bytes 53687091
> > >
> > >
> > > and how can i rename my container?
> > >
> > > regards.
> > >
> > >
> > >
> > > --
> > > FIRAT KÜÇÜK
> > >
> >
> >
> >
> > --
> > FIRAT KÜÇÜK
> 
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list