all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <ngillmann@runbox.com>
To: guix-devel <guix-devel@gnu.org>
Subject: Re: Network with QEMU generated image (guix system vm)?
Date: Wed, 28 Sep 2016 10:19:57 +0000	[thread overview]
Message-ID: <87shsk4982.fsf@we.make.ritual.n0.is> (raw)
In-Reply-To: <87vaxg49to.fsf@we.make.ritual.n0.is>

ng0 <ngillmann@runbox.com> writes:

> ng0 <ngillmann@runbox.com> writes:
>
>>  > Hi,
>>
>>  > It should be enough to add “-net user” on the run-vm.sh command line
>>  > (info "(guix) Running GuixSD in a VM"), and then having a DHCP client
>>  > run inside the VM, such as ‘dhcp-client-service’.
>>
>>  > Does that help?
>>
>>  > Ludo’.
>>
>> I will double check on dhcp-client-service, but afaik I already tried
>> all variations of dhcp we can have in guix.
>> I will try passing just this again.
>>
>>  >  > It should be enough to add “-net user” on the run-vm.sh command line
>>  >  > (info "(guix) Running GuixSD in a VM"), and then having a DHCP client
>>  >  > run inside the VM, such as ‘dhcp-client-service’.
>>
>>  >  Ah, yes this probably needs some documentation. Also should include an
>>  >  explanation why the flag isn't added by default and how to connect to
>>  >  a ssh server running in the vm.
>>
>>  >  > Currently I can't ping
>>
>>  >  You can't ping a vm anyway since it emulates the TCP/UDP layers I
>>  >  think and no ICMP. [0]
>>
>> Thanks for the answer, but as I've written in my initial question I
>> don't want to ping the VM.
>> I am creating a VM from a guix branch with ./pre-inst-env guix system
>> and a config.scm of a specific system. I've read my initial post again
>> and I can understand how you could draw this conclusion.
>> So, I am not trying to ping the VM. I am inside the VM and my service
>> needs an outbound connection to get an initial file into its home. To
>> debug my service I need to test if I can ping gnu.org because connection
>> fails in every configuration I have. With the normal qemu VMs running
>> Gentoo in NixOS I have, I can use ping which is normal expected behavior.
>
> Adding: this is about gnunet-service, previously not published. I can't
> continue with git service due to the reasons you will see in the
> reminder I've sent about it in the thread.
>
> Do I have to add a networking bridge in GuixSD for the VM to work?
> Currently nscd in the VM is discovered at 10.0.2.2 and the VM gets
> 10.0.2.15. If so, can you either point me to documentation or what I
> have to search for or provide some quick instructions how I set this up
> on GuixSD?
>
>>  >  [0] http://unix.stackexchange.com/questions/78953/qemu-how-to-ping-host-network
>
> Thanks
> -- 
>               ng0
>
>

So obviously you need to add ntp-service if you just use %base-services
+ some minor additions.... I thought it was part of base. This fixes the
resolution of names, but introduces problems with ntpd (unexpected
origin timestamps).
I still can't ping, but I will let the VM run for a while now to see if
something needs to get in sync.
-- 
              ng0

  reply	other threads:[~2016-09-28 10:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-24 19:44 Network with QEMU generated image (guix system vm)? ng0
2016-09-24 19:47 ` ng0
2016-09-24 20:16 ` Jan Nieuwenhuizen
2016-09-24 20:33   ` ng0
2016-09-24 20:52     ` Jan Nieuwenhuizen
2016-09-24 21:17       ` ng0
2016-09-26 17:30         ` Jan Nieuwenhuizen
2016-09-27  7:25           ` ng0
2016-09-27 18:47           ` Aljosha Papsch
2016-09-27 20:14             ` ng0
2016-09-28  8:34 ` Ludovic Courtès
2016-09-28  8:49   ` David Craven
2016-09-28  9:12     ` ng0
2016-09-28 10:06       ` ng0
2016-09-28 10:19         ` ng0 [this message]
2016-09-28 10:36           ` David Craven
2016-09-28 10:52             ` ng0
2016-09-28 11:18               ` David Craven
2016-09-28 12:42     ` ng0
2016-09-28 13:52       ` David Craven
2016-09-28 17:02       ` Leo Famulari

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87shsk4982.fsf@we.make.ritual.n0.is \
    --to=ngillmann@runbox.com \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.