Hi Andreas, did that fix it for you?

I've just run up against the same problem (or at least, the same symptoms)
and in my case the problem was in the Virtualbox settings: after importing
the appliance into Virtualbox I need to

* go to Machine -> Settings
* click the "Network" tab
* open the "Advanced" settings (click the triangle)
* check the checkbox labelled "Cable Connected"

This is using Virtualbox Version 5.0.20 r106931 on MacOS Sierra (10.12.4
(16E195))

I don't know whether Bas' fix would have worked because I was unable to run
nixos-rebuild switch because no networking ... but trying to run dhcpcd by
hand was reporting "no carrier" messages.


Hope this helps, if you don't already have it running


-dan

On 5 April 2017 at 07:51, Bas van Dijk <v.dijk....@gmail.com> wrote:

> Hi Andreas,
>
> You could enable DHCP by turning on:
>
>   networking.useDHCP
>
> If you need to set a static address look into:
>
>   networking.interfaces.<name?>.ip4
>
> Then after a nixos-rebuild switch your machine should have a network
> connection provided that you configured the host the right way.
>
> Bas
>
> Op 4 apr. 2017 21:29 schreef "Andreas Meyer" <a.me...@nimmini.de>:
>
> Hello!
>
> I installed a virtualbox using nixos-17.03.889.9626bc7db7-x86_64-linux.ova
> but I have no networkconnection.
>
> ifconfig shows the interface is there but
> sudo ifconfig enp0s3 10.0.0.2 up has no effect.
>
> :-(
>
>   Andreas
>
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


-- 
d...@telent.net
http://ww.telent.net
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to