[lxc-users] user 'ubuntu' does not exist within LXD container
Francesco Longo
flongo at unime.it
Thu Mar 23 10:41:21 UTC 2017
Hi all,
I'm playing with Raspberry Pi virtualization, i.e., in few words, creating
LXD containers on top of a Raspberry Pi and attaching to them a couple of
FUSE filesystems mirroring the GPIO /sys/class/gpio filesystem.
I created a simple script that you can find here:
https://github.com/flongo82/raspberry_virtualization/blob/master/launch_virtual_rasp.sh
A first issue I'm dealing with is that when using lxc exec to add the
ubuntu user to the gpio groups it says that the ubuntu user does not exist.
But, if I login into the container the user is actually there but, of
course, it is not part of the gpio group given that the command has failed.
This is the output of the script:
*Creating virtual rasp test!*
*Creating test*
*Starting test *
*Adding group `gpio' (GID 1000) ...*
*Done.*
*usermod: user 'ubuntu' does not exist*
*Device gpio added to test*
*Device devices added to test*
Any idea why this is happening? Is it possible that I need to wait a while
before issuing this kind of lxc exec command after creating the container?
I'm using LXD version 2.12 on top of a
ubuntu-16.04-preinstalled-server-armhf+raspi3.img.xz image.
Thanks,
Francesco
--
------------------------------------------------------------------------------
Dr. Francesco Longo, PhD
Assistant Professor
Dipartimento di Ingegneria
Università degli Studi di Messina
address: Contrada di Dio (S. Agata), 98166, Messina, Italy
email: flongo at unime.it
phone: +39 090 3977335 --- fax: +39 090 3977471
------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170323/dfecbe13/attachment.html>
More information about the lxc-users
mailing list