[lxc-users] How set lxc.init_cmd?
Serge E. Hallyn
serge at hallyn.com
Tue Aug 22 22:37:47 UTC 2017
Quoting Lao Andy (yjfpb04 at gmail.com):
> On Mon, Aug 21, 2017 at 10:39 PM, Serge E. Hallyn <serge at hallyn.com> wrote:
> >
> > Quoting 加油站加 (yjfpb04 at gmail.com):
> > > Hi folks,
> > >
> > > Could anyone kindly tell me how to modify the init_cmd?
> > >
> > > I tried:
> > > root at bob-VirtualBox:~# lxc config set aaaa lxc.init.cmd /init
> > > error: Bad key: lxc.init.cmd
> > > root at bob-VirtualBox:~# lxc config set aaaa lxc.init_cmd /init
> > > error: Bad key: lxc.init_cmd
> > > root at bob-VirtualBox:~# lxc --version
> > > 2.16
> > > root at bob-VirtualBox:~# lxd --version
> > > 2.16
> >
> > You can set it in raw.lxc.
> >
>
> Thanks, it works.
>
> By the way, how to set multiple raw.lxc lines?
> I set two different raw.lxc, but only one setting was saved!
Yeah, you have to make it a single multiline. This issue
https://github.com/lxc/lxd/issues/1259
is a good guide.
More information about the lxc-users
mailing list