From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +Pu2CQW8BF/qaAAA0tVLHw (envelope-from ) for ; Tue, 07 Jul 2020 18:16:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +OaTBQW8BF/DHAAAB5/wlQ (envelope-from ) for ; Tue, 07 Jul 2020 18:16:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 50BB2940655 for ; Tue, 7 Jul 2020 18:16:36 +0000 (UTC) Received: from localhost ([::1]:36988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jss8w-0006zg-0z for larch@yhetil.org; Tue, 07 Jul 2020 14:16:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jss8p-0006zO-9v for help-guix@gnu.org; Tue, 07 Jul 2020 14:16:27 -0400 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:51636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jss8n-0002mh-HO for help-guix@gnu.org; Tue, 07 Jul 2020 14:16:26 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 1773A26617 for ; Tue, 7 Jul 2020 14:16:24 -0400 (EDT) User-agent: mu4e 1.4.9; emacs 26.3 From: Christopher Lemmer Webber To: help-guix@gnu.org Subject: Port forwarding and `guix system vm` Date: Tue, 07 Jul 2020 14:16:23 -0400 Message-ID: <87blkrgphk.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2600:3c02::f03c:91ff:feae:cb51; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.29 X-TUID: bQTbA58L4l2E Hello! I've been trying to figure out how to do port forwarding with `guix system vm` and have not (alas) yet succeeded. Here's what I've tried so far: # testing forwarding http `guix system vm guix-config-dustycloud.scm --share=$HOME/tmp/guix-vm-exchange=/exchange` -nic hostfwd=tcp::8088-:80 # testing forwarding ssh `guix system vm guix-config-dustycloud.scm --share=$HOME/tmp/guix-vm-exchange=/exchange` -nic hostfwd=tcp::10022-:22 In both the case of trying to ssh and trying to access via a web browser, it just hangs. I can also add all the rest of the -nic stuff the manual recommends: `guix system vm guix-config-dustycloud.scm --share=$HOME/tmp/guix-vm-exchange=/exchange` -nic user,model=virtio-net-pci,hostfwd=tcp::8088-:80 ... same problem. (However, it looks like the script adds the virtio-net-pci and stuff these days, so I'm not sure that stuff is necessary...) Any ideas? config looks like: (operating-system (host-name "dustycloud") (timezone "America/") (locale "en_US.UTF-8") ;; TODO: this will need to switch out depending on if this is in a local VM or not (bootloader (grub-configuration (target "/dev/sda"))) (file-systems (cons (file-system (device "/dev/sda1") (mount-point "/") (type "ext4")) %base-file-systems)) (users (cons (user-account (name "cwebber") (group "users") ;; Adding the account to the "wheel" group ;; makes it a sudoer. (supplementary-groups '("wheel")) (home-directory "/home/cwebber")) %base-user-accounts)) (packages (cons* tcpdump nss-certs ;for HTTPS access gnutls git rsync openssh lynx %base-packages)) (services (cons* (service openssh-service-type (openssh-configuration (password-authentication? #f) (authorized-keys `(("cwebber" ,(local-file "/home/cwebber/.ssh/id_rsa.pub")))))) (service mcron-service-type (mcron-configuration (jobs (list %gc-job)))) (service nginx-service-type (nginx-configuration (server-blocks (list (nginx-server-configuration (server-name '("www.dustycloud.org" "dustycloud.org")) (root "/srv/http/dustycloud.org") (listen '("80"))))))) %base-services)))