From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: question about pty,agetty for an intermediate virtual server image Date: Fri, 31 Mar 2017 19:43:21 -0400 Message-ID: <20170331234321.GA10435@jasmine> References: <20170331125956.rhlwjg45vwo3pgwh@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu6CW-0000Qp-9d for guix-devel@gnu.org; Fri, 31 Mar 2017 19:43:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu6CR-0004OX-Ef for guix-devel@gnu.org; Fri, 31 Mar 2017 19:43:28 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41691) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cu6CR-0004ON-5B for guix-devel@gnu.org; Fri, 31 Mar 2017 19:43:23 -0400 Received: from localhost (unknown [172.56.28.204]) by mail.messagingengine.com (Postfix) with ESMTPA id 1F6FB24370 for ; Fri, 31 Mar 2017 19:43:22 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20170331125956.rhlwjg45vwo3pgwh@abyayala> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 31, 2017 at 12:59:56PM +0000, ng0 wrote: > before I go ahead and create an intermediate image - I'd like to explore > the option of getting IN-Berlin closer into the creation of the 'deploy' > process of Guix which is being worked on - I need to find out how the > redirection to "/sbin/agetty --keep-baud 115200 38400 9600 ttyS0 vt102" > can be honored. > As far as I understand, we use mingetty which according to the mingetty > manpages is not suited for tasks agetty can do. >=20 > IN-Berlin runs a Consoleserver which redirects ssh logins to it via > "virsh console $vserver" to the /sbin/agetty (on debian vservers) on > your server. The KVM configuration can be seen below. >=20 > How can I achieve this (the agetty part) with GuixSD? You can use the agetty-service, like this (kernel-arguments ;; Adjust these arguments as desired. '("console=3DttyS0,115200n8 gfxpayload=3Dtext earlyprintk=3Dserial,tty,11= 5200")) (services (cons (agetty-service (agetty-configuration (tty "ttys0") (term "vt102") (keep-baud? #t) (baud-rate "115200,38400,9600))) %base-services)) =20 And you will probably want a non-graphical GRUB menu as well (this should be parameterized eventually...): diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm index b18b8be6d..d94b1a266 100644 --- a/gnu/system/grub.scm +++ b/gnu/system/grub.scm @@ -197,7 +197,7 @@ system string---e.g., \"x86_64-linux\"." insmod efi_uga fi =20 - terminal_output gfxterm + terminal_output console " "")) =20 Finally, you can test it in QEMU by appending '-serial pty' to the QEMU invocation. When it starts, QEMU will tell you which pty it's using, and you can connect to it with something like `screen`. --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlje6ZUACgkQJkb6MLrK fwjJyQ/+J8B+4NPsvlDb5wD14sybArWOcVsZP75IEDrC2dNuWFbmeBBaLaMh+xGI 7DapKHQbDI5qup3Fmi0Z4kNt7yLs1w1izwDkmi6/jHBaSr9VENqMKAK47aMvrYiU 6qGXbhY5apUPfoWZ3sOvRR27VqdZwyAq8Wt7fHrUeFGegw7fjfwOLhyODfoLDI0l aSKGI94UFVbXU2QEIJ43Wql34ZwcUeA/gszjusAMPTgH1xpJZ4P0WR5Ls/ncKr/A MZ+zUiHZd7HHrj01OZKBpTZ5IDcD1d5L5ssEIl2sflCCOqpS6kyz9bnlQNbUH3fq qXqO8G/fNg9c3+aNgKMtC8Qxt749AjCptPymtPNI0iMuXsuuu4rKGcKXpydCINao PQzpDeZSyqHzEK2Q7QbOT1/C2/duNJldaX3hNvxUXku/I7cQ9Li6wfmOZIbDrz+x RXi5OCM/QEIlKfZIEwtAr8wWI5V2b8SxljZS8mQuK3Avp3uSIPKEQ4eSHwbBVvxa RGhLGd6TUqUN+NCK+Vnk+ALRGf8hH4mzwJydsEvbPXW+vTorOma/NuhRo1Zialkq dZErZjbEcHKttLhQQ7z5UmDq2MYPM1aM56F2kklVcpkQsw62fbflEP2nTzWFa84T AgsAv0H8e4OSJPkS7MK+pn9UiVuR5r2V+lzB3Tidu3m1cZ0A50k= =+ks1 -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--