From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UOvnCQDocF8eEgAA0tVLHw (envelope-from ) for ; Sun, 27 Sep 2020 19:29:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kJ2pBQDocF9YfwAAbx9fmQ (envelope-from ) for ; Sun, 27 Sep 2020 19:29:04 +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 6D8929402B2 for ; Sun, 27 Sep 2020 19:29:02 +0000 (UTC) Received: from localhost ([::1]:59992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMcM1-0000IA-E6 for larch@yhetil.org; Sun, 27 Sep 2020 15:29:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMcLq-0000HK-Vg for help-guix@gnu.org; Sun, 27 Sep 2020 15:28:52 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]:45602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMcLn-0006vO-2r; Sun, 27 Sep 2020 15:28:50 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1601234917; bh=Tl2QnwsCAbgk8MUJCgJ1TAzUtABctZPMUeujsYs6LoM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Bwg80mfrMHscJDwIWnyXZfb7GMU0KoIb6bLcOUn4YvjQYARIZckl4GPtcmIhH61nW oMaBVOLSfidFFk8cBGB1vwWAQVgwMHsmw4eoNSGh3H8ejtQqHOXkH+CI9X2L3M8j1w 8L+6xKrbedI3yvYAET3Fr+wihCpgU+nVV1nWIazhgIY8wFe50jElBZ8He56I5k9mSo UaD6wW2N8lNSQAiB/2sYht7LdBVw0+BM5IbEWwGO8Zpi2hJENCXOR5q9mFfYatNVH6 a3e69RhqbeJw0WIPjYsiFfz0ySTbld7z4y9UgJUSodQ8/bbSSIymxSHNPMBUmGdQCt Bnz7v2EoOJFPQ== X-Fuglu-Suspect: 5231e0f32f884b82a5ba27cf603bcf01 X-Fuglu-Spamstatus: NO Received: from [127.0.0.1] (localhost [127.0.0.1]) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 27 Sep 2020 21:28:31 +0200 From: david larsson To: Marius Bakke Subject: Re: Ganeti with Guix tutorial from the Guix blog post In-Reply-To: <871riowr9z.fsf@gnu.org> References: <871riowr9z.fsf@gnu.org> Message-ID: <49ec669510143f777104a80764a24f8a@selfhosted.xyz> X-Sender: david.larsson@selfhosted.xyz Received-SPF: pass client-ip=217.64.149.7; envelope-from=david.larsson@selfhosted.xyz; helo=server0.selfhosted.xyz X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/27 15:28:37 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=selfhosted.xyz header.s=dkim header.b=Bwg80mfr; dmarc=pass (policy=none) header.from=selfhosted.xyz; 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: -1.71 X-TUID: lc3qA3/qkLCJ On 2020-09-26 16:23, Marius Bakke wrote: > david larsson writes: > >> Hi! >> >> First of all - thanks for a great post about using Ganeti with Guix! > > Thanks. :-) > >> I need some help with the networking setup part since I am stuck at >> the >> end stages of the blog post tutorial - I am unable to run >> "gnt-instance >> console ". So, I have things setup enough to create these VM's >> successfully but I can't ping the hosts or connect to them using >> gnt-instance console . Any ideas what the issue might be? > > If the serial console is not responding (i.e. pressing RET does not > make > a login screen appear), it is likely the instance has failed to boot. > A > typical cause is lack of bootloader. In that case the instance will > use > 100% of a core reading the same virtual disk sector over and over... This happens for the busterVM1 that I created as in the tutorial. Do you have any suggestion on how to verify that no bootloader is installed and how to install it? By the way, is it possible to use drbd for a Guix instance VM? > > You can configure a SPICE server with "gnt-instance modify -H > kvm:spice_bind=0.0.0.0" and connect remotely with 'spicy' (from > spice-gtk) to the host IP and the allocated instance port (gnt-instance > info foo | grep port). Then you should be able to see what QEMU is up > to. I did this and indeed busterVM1 has just stopped on the Seabios boot screen. Grub is not loaded. > > Clues may also be found in > /var/log/ganeti/os/add_$provider_$instance_$date. I only guix+default files in that folder, nothing for debootstrap+buster > >> One thing I noticed was that the arp -n output are giving me >> "(incomplete)" listings in the "HWaddress" column (arp from the >> net-tools package), which IMU means that ethernet/layer2 frames are >> not >> passed around correctly - usually meaning that bridges aren't setup >> properly, right? This applies to the 192.168.1.200 lan address and the >> ip address assigned to the VM hosts which I manually set to >> 192.168.1.210 instead of ip=pool as in the example. My local network >> is >> setup to use 192.168.1.0/24 addresses. > > It could be useful to see the relevant system configuration, as well as > output of 'ovs-vsctl show' and 'gnt-instance info the-instance' (and > maybe also 'gnt-network info'). I worked it out, and I can now ssh into the guix1 VM, like this(presenting it here for posterity if it helps someone): - This I had already done: interface name was enp0s25 instead of eth0 in my case (ip link show) - mac-address needed fixed in my case since the 2 cluster members had the same address, and then restart the networking service. (ip link set enp0s25 address ab:cd:ef:ab:cd:ef && herd restart networking) - I also had to open ports in my router between the cluster nodes - port 22 tcp for SSH and for the ganeti stuff the ports 1811/tcp,1814/udp,1815/tcp,80/tcp,5080/tcp. - I made sure to generate the root user's SSH key before creating the guix+default cluster node to have ssh access to the node itself. - I had to manually create the path /srv/ganeti/file-storage - I had some issue creating the guix+default cluster node with recent commits (possibly a bug), and had to resort to an old commit close in time to the blog post - I picked -O "commit=7e6df0e99305c800a24b9217776f8b75dad3bab9" from July 19th which worked. Thanks for your help so far! > >> I think it would be great if blog posts like these had comments >> enabled, >> so that people trying to follow a tutorial would be able to discuss >> and >> help eachother directly on the blog post page. > > That is an interesting suggestion. The blog is entirely static, but > perhaps we could link in a mailing list or something (no joke!). :-) That sounds nice.