unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ngillmann@runbox.com>
To: guix-devel@gnu.org
Subject: Network with QEMU generated image (guix system vm)?
Date: Sat, 24 Sep 2016 19:44:50 +0000	[thread overview]
Message-ID: <87pont13rh.fsf@we.make.ritual.n0.is> (raw)

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

I feel like this should be documented better, because I can't figure it
out.

I should not waste time on figuring out how a service I need to test in
the VM can get internet access.

Currently I can't ping, git can't clone, gnunet-service can't get its
hosts lists, etc. I just need to test one service, I don't want to spend
days on figuring out why I can get no in/out connection.

Can someone please help me, so that we can improve configuration?


Appended are 2 versions of the testvm.scm I used in my branch of
gnunet-service.


[-- Attachment #2: testvm.scm --]
[-- Type: application/octet-stream, Size: 1891 bytes --]

;; bare bones, no X11 server.
(use-modules (gnu) (gnu system nss))
(use-service-modules networking dbus avahi desktop)
(use-package-modules certs suckless admin xorg)
(use-package-modules gnunet emacs version-control avahi ssh)

(operating-system
  (host-name "testvm")
  (timezone "UTC")
  (locale "en_US.UTF-8")

  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems
   (list (file-system
          (mount-point "/")
          (device "dummy")
          (type "dummy"))
         %binary-format-file-system))

  (users (list (user-account
                (name "bobthecrashtestdummy")
                (comment "")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"
                                        "gnunet"))
                (home-directory "/home/bobthecrashtestdummy")
                (password ""))))

  (services (cons* ;;(slim-service #:auto-login? #t
                   ;;              #:default-user "bobthecrashtestdummy")
                   (console-keymap-service "de")
                   ;;(static-networking-service "eth0" "10.0.2.10"
                   ;;                           #:name-servers '("10.0.2.3")
                   ;;                           #:gateway "10.0.2.2")
                   ;;(avahi-service)
                   ;;(dbus-service (list avahi))
                   (gnunet-service)
                   (dhcp-client-service)
                   ;;(lsh-service)
                   %base-services))
                   ;;(xfce-desktop-service)
                   ;;%desktop-services))

  (pam-services
   (base-pam-services #:allow-empty-passwords? #t))

  (packages (cons* git st sudo nss-certs xterm
                   avahi findutils grep which xmodmap
                   tcpdump gnunet gnunet-gtk tree
                   %base-packages)))

[-- Attachment #3: testvm-new.scm --]
[-- Type: application/octet-stream, Size: 1826 bytes --]

;; bare bones, no X11 server.
(use-modules (gnu) (gnu system nss))
(use-service-modules dbus avahi networking desktop)
(use-package-modules certs suckless admin xorg tmux)
(use-package-modules gnunet emacs version-control avahi ssh)

(operating-system
  (host-name "testvm")
  (timezone "UTC")
  (locale "en_US.UTF-8")

  ;;(bootloader (grub-configuration (device "/dev/sda")))
  ;; (file-systems
  ;;  (list (file-system
  ;;         (mount-point "/")
  ;;         (device "dummy")
  ;;         (type "dummy"))
  ;;        %binary-format-file-system))
  (bootloader (grub-configuration (device "/dev/vda")))
  (file-systems
   (cons
    (file-system
      (device "/dev/vda1")
      (mount-point "/")
      (type "ext4"))
    %base-file-systems))
  
  (users (list (user-account
                (name "z")
                (comment "")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"
                                        "gnunet"))
                (home-directory "/home/z")
                (password ""))))

  (services
   (cons* (console-keymap-service "de")
          ;; (static-networking-service "eth0" "192.168.1.209"
          ;;                            #:name-servers '("192.168.1.1")
          ;;                            #:gateway "192.168.1.255")
          ;;(avahi-service)
          (gnunet-service)
          ;;(dhcp-client-service)
          (xfce-desktop-service)
          ;;%base-services))
          %desktop-services))

  (pam-services
   (base-pam-services #:allow-empty-passwords? #t))

  (packages (cons* git st sudo nss-certs xterm
                   avahi findutils grep which xmodmap
                   tcpdump gnunet gnunet-gtk tree
                   tmux
                   %base-packages)))

[-- Attachment #4: Type: text/plain, Size: 23 bytes --]


-- 
              ng0

             reply	other threads:[~2016-09-24 19:45 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-24 19:44 ng0 [this message]
2016-09-24 19:47 ` Network with QEMU generated image (guix system vm)? ng0
2016-09-24 20:16 ` Jan Nieuwenhuizen
2016-09-24 20:33   ` ng0
2016-09-24 20:52     ` Jan Nieuwenhuizen
2016-09-24 21:17       ` ng0
2016-09-26 17:30         ` Jan Nieuwenhuizen
2016-09-27  7:25           ` ng0
2016-09-27 18:47           ` Aljosha Papsch
2016-09-27 20:14             ` ng0
2016-09-28  8:34 ` Ludovic Courtès
2016-09-28  8:49   ` David Craven
2016-09-28  9:12     ` ng0
2016-09-28 10:06       ` ng0
2016-09-28 10:19         ` ng0
2016-09-28 10:36           ` David Craven
2016-09-28 10:52             ` ng0
2016-09-28 11:18               ` David Craven
2016-09-28 12:42     ` ng0
2016-09-28 13:52       ` David Craven
2016-09-28 17:02       ` Leo Famulari

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pont13rh.fsf@we.make.ritual.n0.is \
    --to=ngillmann@runbox.com \
    --cc=guix-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).