Re: [lxc-users] LXD move container to another pool ?

2018-08-09 Thread Fajar A. Nugraha
On Thu, Aug 9, 2018 at 7:57 PM, Pierre Couderc wrote: > > On 08/09/2018 11:30 AM, Fajar A. Nugraha wrote: > > > Basically you'd just need to copy /var/lib/lxd and whatever storage > backend you use (I use zfs), and then copy them back later. Since I also > put /var/lib/lxd on zfs (this is a custo

Re: [lxc-users] LXC container and Systemd

2018-08-09 Thread Fajar A. Nugraha
On Thu, Aug 9, 2018 at 8:11 PM, Goran wrote: > I did as you told. What I can say is that the user/group directive are > the problem. > > With this config it works: > > Now we're getting somehwere :D > [Unit] > Description=Grafana service > After=network.target > > [Service] > # User=grafana >

Re: [lxc-users] LXC container and Systemd

2018-08-09 Thread Goran
I did as you told. What I can say is that the user/group directive are the problem. With this config it works: [Unit] Description=Grafana service After=network.target [Service] # User=grafana # Group=grafana # WorkingDirectory=/usr/share/grafana # ExecStart=/usr/bin/grafana-server -config=/etc/g

Re: [lxc-users] LXC container and Systemd

2018-08-09 Thread Goran
I tried but no success. 2018-08-09 9:54 GMT+02:00 Andrey Repin : > Greetings, Goran! > >> I log into Arch Linux OS. Form there I attach to the container > >> # lxc-attach -n monitor > >> The container itself is hosting Arch Linux too. > > Try > lxc-attach -n monitor -- su -l > > > -- > With best r

Re: [lxc-users] LXD move container to another pool ? (updated)

2018-08-09 Thread Pierre Couderc
On 08/09/2018 11:30 AM, Fajar A. Nugraha wrote: Basically you'd just need to copy /var/lib/lxd and whatever storage backend you use (I use zfs), and then copy them back later. Since I also put /var/lib/lxd on zfs (this is a custom setup), I simply need to export-import my pool. /var/lib/

Re: [lxc-users] LXD move container to another pool ?

2018-08-09 Thread Pierre Couderc
On 08/09/2018 11:30 AM, Fajar A. Nugraha wrote: Basically you'd just need to copy /var/lib/lxd and whatever storage backend you use (I use zfs), and then copy them back later. Since I also put /var/lib/lxd on zfs (this is a custom setup), I simply need to export-import my pool. /var/lib/

Re: [lxc-users] LXD move container to another pool ?

2018-08-09 Thread Pierre Couderc
Thank you very much, I think this is the good way ! On 08/09/2018 11:30 AM, Fajar A. Nugraha wrote: On Thu, Aug 9, 2018 at 4:11 PM, Pierre Couderc > wrote: I want to "format"  my LXD  computer   : So I would like to  : - create a LXD storage on an auxili

Re: [lxc-users] LXD move container to another pool ?

2018-08-09 Thread Fajar A. Nugraha
On Thu, Aug 9, 2018 at 4:11 PM, Pierre Couderc wrote: > I want to "format" my LXD computer : > > So I would like to : > > - create a LXD storage on an auxiliary (btrfs) disk, something like : lxd > storage create mytmp btrfs source=/mnt/my_btrfs_unit/lxd_subvolume (is > this possible ?) > >

[lxc-users] LXD move container to another pool ?

2018-08-09 Thread Pierre Couderc
I want to "format"  my LXD  computer   : So I would like to  : - create a LXD storage on an auxiliary (btrfs) disk, something like : lxd storage create mytmp btrfs source=/mnt/my_btrfs_unit/lxd_subvolume (is this possible ?) - move my contianer to this new storage . How ? - fulley reinstall

Re: [lxc-users] LXC container and Systemd

2018-08-09 Thread Fajar A. Nugraha
On Tue, Aug 7, 2018 at 11:13 PM, Goran wrote: > I'm starting Grafana on top of Arch Linux without problem. But when I > install Grafana into an Arch Linux LXC container on top of Arch Linux > OS I can't start it. > > The error is: > > systemd[24509]: grafana.service: Failed to determine user cred

Re: [lxc-users] LXC container and Systemd

2018-08-09 Thread Andrey Repin
Greetings, Goran! > I log into Arch Linux OS. Form there I attach to the container > # lxc-attach -n monitor > The container itself is hosting Arch Linux too. Try lxc-attach -n monitor -- su -l -- With best regards, Andrey Repin Thursday, August 9, 2018 10:52:02 Sorry for my terrible englis