I’m trying to get lxd-p2c to work but I have not been able to get past its prompt for an admin password, every time it tells me:
Error: not authorized
First off the bat, I must say that is a vague request on behalf of lxd-p2c followed with an equally vague error message. What is the ‘Admin password’? Admin of what, where? If p2c actually means the root password of the LXD server then that’s what it should ask for. I’ve tried that several times with no luck. I’m happy to open a bug report to request this is made clearer to the user.
I have run:
# lxc config set core.trust_password foopass
On my LXD server (as well as having run lxd init) but entering that password has also failed with the same “Error: not authorized” message.
If I run
# lxc config trust list
On my LXD server, I get an empty list so I presume I need to add my host to be containerised to this list before I can use p2c but I have been unable to find any docs on how to achieve this. My suspicion is that it might involve a command such as
# lxc config trust add ...
but that seems to require a cert file? What cert? Is that the cert fingerprint printed on the source machine when I run p2c?
I also tried running
lxc monitor on my LXD server whilst I ran lxd-p2c on the source machine but it didn’t tell me anything more - no errors or warnings get printed.
There doesn’t seem to be any documentation for lxd-p2c apart from what is available via --help, right?
I am running lxd/lxc 3.0.2 from 16.04 backports (on a Ubuntu 16.04 / amd64 server) and I am testing lxd-p2c built from gh on a Ubuntu 18.04 amd64 machine.