unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: david larsson <david.larsson@selfhosted.xyz>
To: Marius Bakke <marius@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: Ganeti with Guix tutorial from the Guix blog post
Date: Sun, 27 Sep 2020 21:28:31 +0200	[thread overview]
Message-ID: <49ec669510143f777104a80764a24f8a@selfhosted.xyz> (raw)
In-Reply-To: <871riowr9z.fsf@gnu.org>

On 2020-09-26 16:23, Marius Bakke wrote:
> david larsson <david.larsson@selfhosted.xyz> 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 <someVM>". 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 <someVM>. 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.


  reply	other threads:[~2020-09-27 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25 19:06 Ganeti with Guix tutorial from the Guix blog post david larsson
2020-09-26 14:23 ` Marius Bakke
2020-09-27 19:28   ` david larsson [this message]
2020-10-10 21:57     ` Marius Bakke

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=49ec669510143f777104a80764a24f8a@selfhosted.xyz \
    --to=david.larsson@selfhosted.xyz \
    --cc=help-guix@gnu.org \
    --cc=marius@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.
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).