<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 4/3/20 11:05, Michael Eager wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9c7dc9b6-1729-e92e-7ec5-d13124d1d865@eagerm.com">/var/log/lxd/wiki/lxc.log
contains this:
<br>
lxc wiki 20200403165802.697 ERROR start -
start.c:proc_pidfd_open:1644 - Function not implemented - Failed
to send signal through pidfd
<br>
lxc wiki 20200403165802.700 ERROR conf -
conf.c:lxc_map_ids:3009 - newuidmap failed to write mapping
"newuidmap: uid range [48-49) -> [48-49) not allowed":
newuidmap 27611 0 100000 48 48 48 1 49 100049 951 1000 1000 1 1001
101001 64535
<br>
lxc wiki 20200403165802.700 ERROR start -
start.c:lxc_spawn:1798 - Failed to set up id mapping.
<br>
<br>
</blockquote>
<font face="Droid Serif">I ran into the same error recently but I
was increasing the default map size. I had to:<br>
<br>
1. Stop the container<br>
2. Make the container privileged<br>
3. Start then stop the container<br>
4. Make the container unprivileged<br>
<br>
After that it worked with the new ID's in the unprivileged
container.<br>
</font>
<blockquote type="cite"
cite="mid:9c7dc9b6-1729-e92e-7ec5-d13124d1d865@eagerm.com">
<br>
I'm guessing that remapping UID/GID 48 is not permitted in a
non-privileged container.
<br>
</blockquote>
I would guess the same thing<br>
<blockquote type="cite"
cite="mid:9c7dc9b6-1729-e92e-7ec5-d13124d1d865@eagerm.com">
<br>
Is there a better way to do this?
<br>
</blockquote>
I would also be interested if there is a better way to do this as
the method I listed above may not always be possible for some
situations.<br>
<br>
<pre class="moz-signature" cols="0">--
Thanks,
Joshua Schaeffer</pre>
</body>
</html>