Re: [lxc-users] "error: LXD still not running after 5 minutes" - failed lxd.migrate - how to recover?

2018-08-08 Thread Stéphane Graber
On Wed, Aug 08, 2018 at 09:06:40PM +0200, Tomasz Chmielewski wrote: > I've tried to migrate from deb to snap on Ubuntu 18.04. > > Unfortunately, lxd.migrate failed with "error: LXD still not running after 5 > minutes": > > root@b1 ~ # lxd.migrate > => Connecting to source server > => Connecting

Re: [lxc-users] "error: LXD still not running after 5 minutes" - failed lxd.migrate - how to recover?

2018-08-08 Thread Stéphane Graber
On Wed, Aug 08, 2018 at 11:26:10PM +0200, Tomasz Chmielewski wrote: > On 2018-08-08 22:26, Stéphane Graber wrote: > > > > Not sure how to recover now? The containers seem intact in > > > /var/lib/lxd/ > > > > What do you get if you do "journalctl -u snap.lxd.daemon -n 300" and > > -- Logs begin

Re: [lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread David Favor
wrote: Has anybody invented a procedure, a script, etc., to convert a running machine to a LXC container? I was thinking to create a container of the same OS, and then use rsync, excluding /proc /tmp/ /sys etc. Any ideas? Use the fabulous lxd-p2c script.

Re: [lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread Stéphane Graber
On Wed, Aug 08, 2018 at 07:04:31PM -0400, Saint Michael wrote: > Has anybody invented a procedure, a script, etc., to convert a running > machine to a LXC container? I was thinking to create a container of the > same OS, and then use rsync, excluding /proc /tmp/ /sys etc. Any ideas? We have that

[lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread Saint Michael
Has anybody invented a procedure, a script, etc., to convert a running machine to a LXC container? I was thinking to create a container of the same OS, and then use rsync, excluding /proc /tmp/ /sys etc. Any ideas? ___ lxc-users mailing list

Re: [lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread Fajar A. Nugraha
I've converted (manually) some lxc containers to lxd and back in the past. IIRC the biggest difference was that lxd does not need to output anything to console, while lxc needs it (e.g. for lxc-attach). Depending on what container distro and version you use, it might not matter (e.g. it should

Re: [lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread Fajar A. Nugraha
Sorry, my mistake. I meant "lxc-console". And I just rechecked, apparently there's the equivalent "lxc console" command as well. Ignore my comment about "lxc-attach" earlier. You should be able to use lxd rootfs for lxc as long as: - you have the correct uid mapping (it's simpler if you just use

Re: [lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread Saint Michael
The question is how can I use that for plan LXC. I can install a box with LXD, bring the computer in, but then I want a plain LXC container. Is it doable? On Wed, Aug 8, 2018 at 7:17 PM David Favor wrote: > wrote: > > Has anybody invented a procedure, a script, etc., to convert a running > >

Re: [lxc-users] Convert virtual machine to LXC container

2018-08-08 Thread Saint Michael
LXD does not support lxc-attach? I thought that LXD was a superset of LXC, that added on top of it. Maybe somebody care to explain how LXC and LXD compare. On Wed, Aug 8, 2018 at 11:21 PM Fajar A. Nugraha wrote: > I've converted (manually) some lxc containers to lxd and back in the past. >

Re: [lxc-users] LXC container and Systemd

2018-08-08 Thread Andrey Repin
Greetings, Goran! > # cat /proc/self/uid > cat: /proc/self/uid: No such file or directory > I do not log into the container but attach to it. How do you attach? -- With best regards, Andrey Repin Wednesday, August 8, 2018 14:28:13 Sorry for my terrible english...

Re: [lxc-users] LXC container and Systemd

2018-08-08 Thread 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. 2018-08-08 13:28 GMT+02:00 Andrey Repin : > Greetings, Goran! > >> # cat /proc/self/uid >> cat: /proc/self/uid: No such file or directory > >> I do not log into

[lxc-users] "error: LXD still not running after 5 minutes" - failed lxd.migrate - how to recover?

2018-08-08 Thread Tomasz Chmielewski
I've tried to migrate from deb to snap on Ubuntu 18.04. Unfortunately, lxd.migrate failed with "error: LXD still not running after 5 minutes": root@b1 ~ # lxd.migrate => Connecting to source server => Connecting to destination server => Running sanity checks === Source server LXD version:

Re: [lxc-users] "error: LXD still not running after 5 minutes" - failed lxd.migrate - how to recover?

2018-08-08 Thread Tomasz Chmielewski
On 2018-08-08 21:06, Tomasz Chmielewski wrote: I've tried to migrate from deb to snap on Ubuntu 18.04. Unfortunately, lxd.migrate failed with "error: LXD still not running after 5 minutes": (...) Not sure how to recover now? The containers seem intact in /var/lib/lxd/ It seems it's