From: Alex Vong <alexvong1995@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>, 21410@debbugs.gnu.org
Subject: Re: Environment containers
Date: Wed, 28 Oct 2015 21:10:11 +0800 [thread overview]
Message-ID: <CADrxHD8hs0UC0Jeqq4BXNMdGAX=Q_bbrw7k31KJkYxjuYO8PSg@mail.gmail.com> (raw)
In-Reply-To: <87r3kgwpb8.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]
Hi everyone,
On 27/10/2015, Ludovic Courtès <ludo@gnu.org> wrote:
> Alex Vong <alexvong1995@gmail.com> skribis:
>
>> On 26/10/2015, Thompson, David <dthompson2@worcester.edu> wrote:
>>> On Mon, Oct 26, 2015 at 10:37 AM, Taylan Ulrich Bayırlı/Kammer
>>> <taylanbayirli@gmail.com> wrote:
>>>
>>>> Also, for Debian 8 users and maybe others, this might help:
>>>>
>>>> sudo sysctl -w kernel.unprivileged_userns_clone=1
>>>
>>> Yes, user namespaces are a must-have for this to work. I will prepare
>>> patches that mention this in the manual and add a test to 'guix
>>> environment' that can detect if user namespaces are unavailable and
>>> display a more helpful error message.
>>>
>> I think the patch could be considered a fix for
>> <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21410> as well. How do
>> you think?
>
> Do you still experience the test failures mentioned in that report? If
> not, could you email 21410@debbugs.gnu.org, specifying which commit
> works for you?
>
Yes, there are 4 tests still failing with the latest master branch
without unprivileged container.
But there is a new problem, tests/guix-environment-container.sh fails
even when running the tests as root. The test log is in the
attachment. I am running Debian 8, could anyone verify this? I would
also like to try it on Debian unstable, but currently my PC cannot
boot, I am using my old laptop.
> I suspect 0e3cc31 helped.
>
> Thanks,
> Ludo’.
>
Cheers,
Alex
[-- Attachment #2: guix-environment-container.log --]
[-- Type: text/x-log, Size: 2326 bytes --]
+ set -e
+ guix environment --version
warning: daemon is running as root, so using `--build-users-group' is highly recommended
guix environment (GNU Guix) 0.9.0
Copyright (C) 2015 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ tmpdir=t-guix-environment-9613
+ trap 'rm -r "$tmpdir"' EXIT
+ mkdir t-guix-environment-9613
+ guix environment --container --ad-hoc --bootstrap guile-bootstrap -- guile -c '(exit 42)'
accepted connection from pid 9621, user root (trusted)
+ test 42 = 42
+ mount_test_code='
(use-modules (ice-9 rdelim)
(ice-9 match)
(srfi srfi-1))
(define mappings
(filter-map (lambda (line)
(match (string-split line #\space)
;; Empty line.
(("") #f)
;; Ignore these types of file systems.
((_ _ (or "tmpfs" "proc" "sysfs" "devtmpfs"
"devpts" "cgroup" "mqueue") _ _ _)
#f)
((_ mount _ _ _ _)
mount)))
(string-split (call-with-input-file "/proc/mounts" read-string)
#\newline)))
(for-each (lambda (mount)
(display mount)
(newline))
mappings)'
+ guix environment --container --ad-hoc --bootstrap guile-bootstrap -- guile -c '
(use-modules (ice-9 rdelim)
(ice-9 match)
(srfi srfi-1))
(define mappings
(filter-map (lambda (line)
(match (string-split line #\space)
;; Empty line.
(("") #f)
;; Ignore these types of file systems.
((_ _ (or "tmpfs" "proc" "sysfs" "devtmpfs"
"devpts" "cgroup" "mqueue") _ _ _)
#f)
((_ mount _ _ _ _)
mount)))
(string-split (call-with-input-file "/proc/mounts" read-string)
#\newline)))
(for-each (lambda (mount)
(display mount)
(newline))
mappings)'
accepted connection from pid 9627, user root (trusted)
++ wc -l
+ test 4 -eq 3
+ rm -r t-guix-environment-9613
next prev parent reply other threads:[~2015-10-28 13:10 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 1:27 Environment containers Thompson, David
2015-10-26 10:45 ` Daniel Pimentel
2015-10-26 12:16 ` Alex Vong
2015-10-26 14:33 ` Ludovic Courtès
2015-10-26 14:37 ` Taylan Ulrich Bayırlı/Kammer
2015-10-26 14:38 ` Thompson, David
2015-10-27 5:11 ` Alex Vong
2015-10-27 10:58 ` Ludovic Courtès
2015-10-28 13:10 ` bug#21410: " Alex Vong
2015-10-28 13:10 ` Alex Vong [this message]
2015-10-28 14:45 ` Ludovic Courtès
2015-10-28 15:14 ` Alex Vong
2015-10-28 15:20 ` Thompson, David
2015-10-28 15:56 ` Ludovic Courtès
2015-10-28 16:08 ` bug#21410: " Thompson, David
2015-10-28 16:08 ` Thompson, David
2015-10-28 16:20 ` bug#21410: " Alex Vong
2015-10-28 16:20 ` Alex Vong
2015-10-29 19:24 ` Ludovic Courtès
2015-10-29 19:25 ` Thompson, David
2015-11-20 14:51 ` bug#21410: " Ludovic Courtès
2015-11-20 14:51 ` Ludovic Courtès
2015-11-21 13:36 ` Alex Vong
2015-11-21 13:36 ` Alex Vong
2015-11-21 15:57 ` Ludovic Courtès
2015-11-21 17:47 ` Mathieu Lirzin
2015-11-21 21:27 ` Ludovic Courtès
2015-11-23 15:08 ` Alex Vong
2015-11-21 21:27 ` Ludovic Courtès
2015-11-21 17:47 ` Mathieu Lirzin
2015-11-21 15:57 ` Ludovic Courtès
2015-10-29 19:25 ` Thompson, David
2015-10-29 19:24 ` Ludovic Courtès
2015-10-28 15:56 ` Ludovic Courtès
2015-10-28 15:20 ` Thompson, David
2015-10-29 10:25 ` Taylan Ulrich Bayırlı/Kammer
2015-10-26 16:23 ` Christopher Allan Webber
2015-10-26 17:50 ` Thompson, David
2015-10-28 15:32 ` Ricardo Wurmus
2015-10-28 19:09 ` Efraim Flashner
2015-10-29 12:36 ` Thompson, David
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADrxHD8hs0UC0Jeqq4BXNMdGAX=Q_bbrw7k31KJkYxjuYO8PSg@mail.gmail.com' \
--to=alexvong1995@gmail.com \
--cc=21410@debbugs.gnu.org \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.