unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: George myglc2 Clemmer <myglc2@gmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: 30467@debbugs.gnu.org
Subject: bug#30467: GuixSD fails to display login prompt on headless server
Date: Thu, 15 Feb 2018 16:29:11 -0500	[thread overview]
Message-ID: <86y3jundqw.fsf@gmail.com> (raw)
In-Reply-To: <20180215165455.09a9efa3@scratchpost.org>

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

Hi Danny & Leo,

Thanks for the quick response!

On 02/15/2018 at 15:54 Danny Milosavljevic writes:

> Hi George,
>
> Leo added a comment to the services/base.scm code:
>
> ;;; FIXME This doesn't work as expected. According to agetty(8), if this option
> ;;; is not passed, then the default is 'auto'. However, in my tests, when that
> ;;; option is selected, agetty never presents the login prompt, and the
> ;;; term-ttyS0 service respawns every few seconds.
>                                 #$@(if local-line
>                                        #~(#$(match local-line
>                                               ('auto "--local-line=auto")
>                                               ('always "--local-line=always")
>                                               ('never "-local-line=never")))
>                                        #~())
>
> So try specifying local-line ?

Not clear what you wanted so I didn't try this.

> Also, can you try updating again?
>
> I've pushed some agetty consolidation to guix-master (only) today.

I did that, see below ...

> Also, you have
>
>  (kernel-arguments '("console=ttyS1,115200"))
>
> AND
>
> (agetty-service (agetty-configuration (tty "ttyS1")
> 							 (baud-rate "115200")))
> Starting today, the second one will be automatically configured by
> %base-services.

I removed agetty-service but agetty didn't run, see below ...

> So please keep your config the same and reconfigure and let's see what
> happens.

I did git-pull & make to get guix (GNU Guix) 0.14.0.1879-06a9 and 'guix
system reconfigure' >>> the console is still blank.  (my G36)

> In the long run please remove your agetty-service, it should automatically appear
> (it recovers the settings from the "console" kernel-argument).

Then I removed agetty-service, reconfigured and rebooted >>> the console
is still blank. (my G37, sys.scm attached)

FWIW, I don't see agetty running ...

g1@g1 ~$ pstree -a -A
shepherd --no-auto-compile/gnu/store/hjfwjz9g0jrjcyggybi
  |-dhclient -nw -pf /var/run/dhclient.pid enp4s0enp3
  |-guix-daemon --build-users-group guixbuild--
  |-mingetty --noclear tty6
  |-mingetty --noclear tty5
  |-mingetty --noclear tty4
  |-mingetty --noclear tty3
  |-mingetty --noclear tty2
  |-mingetty --noclear tty1
  |-nscd -f/gnu/store/gh3xhwgh927md5ifzdmg0cgpqc0as1sh-ns
  |   `-7*[{nscd}]
  |-ntpd -n -c/gnu/store/1l1yf5dss8r9pqxklaax32s6bkah09c
  |   `-{ntpd}
  |-sshd -D -f/gnu/store/7z8qc04s48cgzvpc77715r3ckh7qr
  [...]
  |-syslogd --rcfile/gnu/store/y5nrfbj52vlnj77iyk
  |-udevd
  `-8*[{shepherd}]

TIA - George


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

;;; GuixSD headless server
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules
 admin
 base
 certs
 cups
 disk
 emacs
 freeipmi
 linux
 virtualization
 rsync
 screen
 ssh
 version-control
 wget
 xorg 
 )
(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (kernel-arguments '("console=ttyS1,115200"))
  ;; RAID1 root using 1 NVMe SSD + 2 HDs
  (bootloader (grub-configuration (target "/dev/nvme0n1")
				  (terminal-outputs '(console))
				  (terminal-inputs '(serial console))
				  (serial-speed 115200)				  
				  ))
  (initrd (lambda (file-systems . rest) (apply base-initrd file-systems
					       #:extra-modules '("raid1")
					       rest)))
  (mapped-devices (list (mapped-device
			 (source '("/dev/nvme0n1p1" "/dev/sda1" "/dev/sdb1"))
			 (target "/dev/md3")
			 (type raid-device-mapping))))
  (file-systems (cons (file-system
			(title 'device)
			(device "/dev/md3")
			(mount-point "/")
			(type "ext4")
			(dependencies mapped-devices))
		      %base-file-systems))
  (swap-devices '("/dev/nvme0n1p2" ))
  (users (cons* (user-account (name "g1")
			      (group "users")
			      (supplementary-groups '("wheel" "kvm"))
			      (home-directory (string-append "/home/" name)))
		(user-account (name "admin")
			      (group "users")
			      (supplementary-groups '("wheel" "kvm"))
			      (home-directory (string-append "/home/" name)))
		%base-user-accounts))
  (packages (cons*
	     cups
	     emacs-no-x-toolkit
	     emacs-guix
	     emacs-zenburn-theme
	     freeipmi
	     git
	     glibc-utf8-locales
	     gnu-make
	     mdadm
	     magit
	     nss-certs
	     openssh
	     parted
	     qemu
	     rsync
	     screen
	     smartmontools
	     tree
	     wget
	     xauth
	     %base-packages))
  (services (cons* (dhcp-client-service)
		   (ntp-service)
		   (service openssh-service-type (openssh-configuration
						  (x11-forwarding? #t)))
		   %base-services)))

  parent reply	other threads:[~2018-02-15 21:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15 15:01 bug#30467: GuixSD fails to display login prompt on headless server George myglc2 Clemmer
2018-02-15 15:54 ` Danny Milosavljevic
2018-02-15 16:23   ` Leo Famulari
2018-02-15 21:29   ` George myglc2 Clemmer [this message]
2018-02-16  0:24     ` George myglc2 Clemmer
2018-02-16  0:53     ` Danny Milosavljevic
2018-02-16  1:38       ` George myglc2 Clemmer
2018-02-17 17:04         ` Danny Milosavljevic
2018-02-22  1:35           ` George myglc2 Clemmer
2018-02-22  3:29             ` George myglc2 Clemmer
2018-02-22 11:41             ` Danny Milosavljevic
2018-02-23 15:46               ` George myglc2 Clemmer
2018-02-24 14:51                 ` Danny Milosavljevic
2018-02-26 17:02                   ` George myglc2 Clemmer
2018-02-26 17:32                     ` Danny Milosavljevic
2018-02-26 18:50                       ` George myglc2 Clemmer
2018-02-27 12:08                         ` Danny Milosavljevic
2018-02-27 13:39                           ` George myglc2 Clemmer
2018-02-17 17:05         ` Danny Milosavljevic
2018-03-08 14:16 ` myglc2
2018-03-09 23:23   ` Ludovic Courtès

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=86y3jundqw.fsf@gmail.com \
    --to=myglc2@gmail.com \
    --cc=30467@debbugs.gnu.org \
    --cc=dannym@scratchpost.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).