[systemd-bugs] [Bug 75733] New: systemd-nspawn: run command as user in i686 container on x86_64 OS fails

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 3 15:37:48 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=75733

          Priority: medium
            Bug ID: 75733
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd-nspawn: run command as user in i686 container
                    on x86_64 OS fails
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: ullysses.a.eoff at intel.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

I'm using systemd 210 from rawhide on Fedora 20 x86_64.  I've created a
container with i686 yum packages installed.  When attempting to run a
systemd-nspawn command with "-u <user>" specified, I get the following error:

Spawning container mycontainer-i686 on /srv/mycontainer-i686. Press ^] three
times within 1s to abort execution.
get_user_creds() failed: Success

Container mycontainer-i686 failed with error code 1.

This does not happen if the container has x86_64 yum packages installed
instead.

Steps to Reproduce:
-------------------

$ su -
$ mkdir /srv/mycontainer-i686
$ mkdir -p /srv/mycontainer-i686/etc/yum/vars
$ echo i386 > /srv/mycontainer-i686/etc/yum/vars/basearch
$ echo i686 > /srv/mycontainer-i686/etc/yum/vars/arch
$ yum -y --releasever=20 --nogpg --installroot=/srv/mycontainer-i686
--disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release
vim-minimal
$ systemd-nspawn -D /srv/mycontainer-i686 adduser jail
$ systemd-nspawn -D /srv/mycontainer-i686 passwd -d jail
$ systemd-nspawn -u jail -D /srv/mycontainer-i686 whoami

I also tried installing systemd from rawhide into the container, but still get
the same error.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140303/6aec082b/attachment.html>


More information about the systemd-bugs mailing list