[Nix-dev] [missing libgcrypto]: Openssl installed but pkg-config not able to find libgcrypto

2017-03-06 Thread rohit yadav
Hi,

I am trying to build nix with non-default store/state dir. I am building it
on a nixos system. I have installed all the basic packages required to
build nix, however, while running configure command I get the following
error. Please note that I have installed openssl package.

=

checking for OPENSSL... no
configure: error: Package requirements (libcrypto) were not met:

No package 'libcrypto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
-bash: --with-store-dir=/home/royadav/opt/nix/store: No such file or
directory
-bash: --localstatedir=/home/royadav/opt/nix/state: No such file or
directory

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] libgfortran.so missing

2017-03-06 Thread rohit yadav
Hi,

I could not find the above mentioned shared object lib in any of the
nixpkgs. Could please someone let me know which package to install this to
get lib? gcc or gfortran does not install this

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

2017-02-19 Thread rohit yadav
On Sun, Feb 19, 2017 at 11:36 PM, James Cook <james.c...@utoronto.ca> wrote:

> On 20 February 2017 at 04:57, rohit yadav <rohitya...@utexas.edu> wrote:
> >
> >
> > On Sun, Feb 19, 2017 at 10:18 PM, rohit yadav <rohitya...@utexas.edu>
> wrote:
> >>
> >>
> >>
> >> On Sun, Feb 19, 2017 at 10:08 PM, James Cook <james.c...@utoronto.ca>
> >> wrote:
> >>>
> >>> On 19 February 2017 at 23:51, rohit yadav <rohitya...@utexas.edu>
> wrote:
> >>> > Hi,
> >>> >
> >>> > I am trying to upgrade a nixos machine on GCE created from the old
> >>> > tempalted
> >>> > 14.12. I am unable to do so. I receive following error:
> >>> >
> >>> > [root@localhost:~]# nixos-rebuild switch
> >>> > building Nix...
> >>> > error: syntax error, unexpected $undefined, expecting '"', at
> >>> >
> >>> > "/nix/var/nix/profiles/per-user/root/channels/nixos/
> nixpkgs/lib/sources.nix":52:49
> >>> > (use ‘--show-trace’ to show detailed location information)
> >>> > error: syntax error, unexpected $undefined, expecting '"', at
> >>> >
> >>> > "/nix/var/nix/profiles/per-user/root/channels/nixos/
> nixpkgs/lib/sources.nix":52:49
> >>> > (use ‘--show-trace’ to show detailed location information)
> >>> > error: evaluation aborted with the following error message: ‘This
> >>> > version of
> >>> > Nixpkgs requires Nix >= 1.10, please upgrade! See
> >>> >
> >>> > https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_
> evaluate_Nixpkgs’
> >>> > error: getting status of ‘/root/@nix_x86_64_linux@’: No such file or
> >>> > directory
> >>> > warning: don't know how to get latest Nix
> >>> > building the system configuration...
> >>> > error: syntax error, unexpected $undefined, expecting '"', at
> >>> >
> >>> > "/nix/var/nix/profiles/per-user/root/channels/nixos/
> nixpkgs/lib/sources.nix":52:49
> >>> > (use ‘--show-trace’ to show detailed location information)
> >>> >
> >>> > Note: I have already upgrade nix to 1.11 even then it continues to
> >>> > complain
> >>> > about it.
> >>> >
> >>> > Thanks,
> >>> > Rohit
> >>>
> >>> Strange... just to confirm, what does "nix-env --version" show when
> >>> you run it as root?
> >>
> >> As I mentioned earlier, the version is 1.11.6.
> >> [root@localhost:~]# nix-env --version
> >> nix-env (Nix) 1.11.6
> >
> > I notice that nix-env in current-system/sw directory is still nix-1.8. I
> am
> > not sure why it is not updating even though in my root environment, I
> have
> > nix-1.11.6. Any clue, how to fix this?
> >
> > [root@localhost:/var/run/current-system/sw/bin]#  nix-store -q
> --references
> > /var/run/current-system/sw | cut -d'-' -f2- | grep nix
> > nix-1.8
> > nixos-install
> > nixos-version
> > nixos-build-vms
> > nixos-checkout
> > nixos-option
> > nixos-rebuild
> > nixos-manpages
> > nixos-help
> > nixos-generate-config
> > nixos-container
> >
> >
> >>
> >>
> >> Thanks,
> >> Rohit
> >>
> >>
> >
>
> The instructions at
> http://lists.science.uu.nl/pipermail/nix-dev/2013-March/010874.html
> look promising, though it's from 2013, so proceed with caution.
>
> Here's what I think is happening:
>
> a) When you run nixos-rebuild, it doesn't automatically find the
> latest version of nix you installed. Instead, it uses a specific store
> path built in to the nixos-rebuild script.
>
> b) My hope is the instructions in the link above will give you a newer
> nixos-rebuild, which will in turn use a newer version of nix.
>
> c) To answer your question about nix-1.8: well, I think that's not
> exactly the problem (see (a)). But if you installed nix-1.11 using
> nix-env, it ended up under $HOME/.nix-profile.
> /var/run/current-system/sw is separate, and probably still has
> whatever software your image came with, unless you've run
> nixos-rebuild successfully since then.
>

Thanks for the reply James. Yes, I figured that out. So, I upgraded the
system step by step (using each release nixos-xx) from nixos-14.12 to
nixos-16.09. It took only few minutes once I understood the problem. ​I
have perfectly fine working Nixos now with latest release.

>
> James
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

2017-02-19 Thread rohit yadav
On Sun, Feb 19, 2017 at 10:18 PM, rohit yadav <rohitya...@utexas.edu> wrote:

>
>
> On Sun, Feb 19, 2017 at 10:08 PM, James Cook <james.c...@utoronto.ca>
> wrote:
>
>> On 19 February 2017 at 23:51, rohit yadav <rohitya...@utexas.edu> wrote:
>> > Hi,
>> >
>> > I am trying to upgrade a nixos machine on GCE created from the old
>> tempalted
>> > 14.12. I am unable to do so. I receive following error:
>> >
>> > [root@localhost:~]# nixos-rebuild switch
>> > building Nix...
>> > error: syntax error, unexpected $undefined, expecting '"', at
>> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
>> lib/sources.nix":52:49
>> > (use ‘--show-trace’ to show detailed location information)
>> > error: syntax error, unexpected $undefined, expecting '"', at
>> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
>> lib/sources.nix":52:49
>> > (use ‘--show-trace’ to show detailed location information)
>> > error: evaluation aborted with the following error message: ‘This
>> version of
>> > Nixpkgs requires Nix >= 1.10, please upgrade! See
>> > https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_
>> evaluate_Nixpkgs’
>> > error: getting status of ‘/root/@nix_x86_64_linux@’: No such file or
>> > directory
>> > warning: don't know how to get latest Nix
>> > building the system configuration...
>> > error: syntax error, unexpected $undefined, expecting '"', at
>> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
>> lib/sources.nix":52:49
>> > (use ‘--show-trace’ to show detailed location information)
>> >
>> > Note: I have already upgrade nix to 1.11 even then it continues to
>> complain
>> > about it.
>> >
>> > Thanks,
>> > Rohit
>>
>> Strange... just to confirm, what does "nix-env --version" show when
>> you run it as root?
>>
> ​As I mentioned earlier, the version is 1.11.6.
> [root@localhost:~]# nix-env --version
> nix-env (Nix) 1.11.6
> ​​
>
​I notice that nix-env in current-system/sw directory is still nix-1.8. I
am not sure why it is not updating even though in my root environment, I
have nix-1.11.6. Any clue, how to fix this?

[root@localhost:/var/run/current-system/sw/bin]#  nix-store -q --references
/var/run/current-system/sw | cut -d'-' -f2- | grep nix
nix-1.8
nixos-install
nixos-version
nixos-build-vms
nixos-checkout
nixos-option
nixos-rebuild
nixos-manpages
nixos-help
nixos-generate-config
nixos-container

​


>
> Thanks,
> Rohit
> ​
>
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

2017-02-19 Thread rohit yadav
On Sun, Feb 19, 2017 at 10:08 PM, James Cook <james.c...@utoronto.ca> wrote:

> On 19 February 2017 at 23:51, rohit yadav <rohitya...@utexas.edu> wrote:
> > Hi,
> >
> > I am trying to upgrade a nixos machine on GCE created from the old
> tempalted
> > 14.12. I am unable to do so. I receive following error:
> >
> > [root@localhost:~]# nixos-rebuild switch
> > building Nix...
> > error: syntax error, unexpected $undefined, expecting '"', at
> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
> lib/sources.nix":52:49
> > (use ‘--show-trace’ to show detailed location information)
> > error: syntax error, unexpected $undefined, expecting '"', at
> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
> lib/sources.nix":52:49
> > (use ‘--show-trace’ to show detailed location information)
> > error: evaluation aborted with the following error message: ‘This
> version of
> > Nixpkgs requires Nix >= 1.10, please upgrade! See
> > https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_
> evaluate_Nixpkgs’
> > error: getting status of ‘/root/@nix_x86_64_linux@’: No such file or
> > directory
> > warning: don't know how to get latest Nix
> > building the system configuration...
> > error: syntax error, unexpected $undefined, expecting '"', at
> > "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
> lib/sources.nix":52:49
> > (use ‘--show-trace’ to show detailed location information)
> >
> > Note: I have already upgrade nix to 1.11 even then it continues to
> complain
> > about it.
> >
> > Thanks,
> > Rohit
>
> Strange... just to confirm, what does "nix-env --version" show when
> you run it as root?
>
​As I mentioned earlier, the version is 1.11.6.
[root@localhost:~]# nix-env --version
nix-env (Nix) 1.11.6

Thanks,
Rohit
​
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

2017-02-19 Thread rohit yadav
Hi,

I am trying to upgrade a nixos machine on GCE created from the old
tempalted 14.12. I am unable to do so. I receive following error:

[root@localhost:~]# nixos-rebuild switch
building Nix...
error: syntax error, unexpected $undefined, expecting '"', at
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/sources.nix":52:49
(use ‘--show-trace’ to show detailed location information)
error: syntax error, unexpected $undefined, expecting '"', at
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/sources.nix":52:49
(use ‘--show-trace’ to show detailed location information)
error: evaluation aborted with the following error message: ‘This version
of Nixpkgs requires Nix >= 1.10, please upgrade! See
https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_evaluate_Nixpkgs
’
error: getting status of ‘/root/@nix_x86_64_linux@’: No such file or
directory
warning: don't know how to get latest Nix
building the system configuration...
error: syntax error, unexpected $undefined, expecting '"', at
"/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/sources.nix":52:49
(use ‘--show-trace’ to show detailed location information)

Note: I have already upgrade nix to 1.11 even then it continues to complain
about it.

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Unable to ssh into a GCE nixos machine

2017-02-17 Thread rohit yadav
On Fri, Feb 17, 2017 at 1:54 PM, rohit yadav <rohitya...@utexas.edu> wrote:

>
>
> On Fri, Feb 17, 2017 at 1:52 PM, Rickard Nilsson <
> rickard.nils...@telia.com> wrote:
>
>> On 02/17/2017 08:46 PM, rohit yadav wrote:
>>
>>>
>>>
>>> On Fri, Feb 17, 2017 at 1:11 PM, Rickard Nilsson
>>> <rickard.nils...@telia.com <mailto:rickard.nils...@telia.com>> wrote:
>>>
>>> On 02/17/2017 08:05 PM, rohit yadav wrote:
>>>
>>> Hi,
>>>
>>> I followed the following tutorial to create a NixOS VM @GCE but
>>> cannot
>>> login. I did setup all the keys are stated. Anyone faced this
>>> problem
>>> before.
>>>
>>> https://nixos.org/wiki/Installing_NixOS_on_GCE
>>> <https://nixos.org/wiki/Installing_NixOS_on_GCE>
>>>
>>>
>>> Can you tell us a bit more about what errors you get? Maybe try
>>> running your ssh client with verbose logging.
>>>
>>> For GCE, you should be able to look at the serial console through
>>> the web interface. That might give you hints about any services that
>>> might have failed.
>>>
>>> Here is the output of the serial console:
>>> http://pastebin.com/wRYaadFY
>>>
>>> It seems that ssh-daemon is starting fine and all the keys are
>>> downloaded as expected. In verbose mode, it shows the following
>>> http://pastebin.com/BKx94sfN
>>>
>>> Somehow it is not able to authenticate with key.
>>>
>>
>> This is may be a stupid question, but are you connecting as root user?
>
> ​I tried both to connect to nixos machine.
>
> ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o
> StrictHostKeyChecking=ask r...@xxx.xxx.xxx.xxx​
>

​Please ignore this thread. It is working fine. The ssh-key I added had a
space between the strings. it works fine now.​

>
>
>>
>>
>>   / Rickard
>>
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Unable to ssh into a GCE nixos machine

2017-02-17 Thread rohit yadav
On Fri, Feb 17, 2017 at 1:52 PM, Rickard Nilsson <rickard.nils...@telia.com>
wrote:

> On 02/17/2017 08:46 PM, rohit yadav wrote:
>
>>
>>
>> On Fri, Feb 17, 2017 at 1:11 PM, Rickard Nilsson
>> <rickard.nils...@telia.com <mailto:rickard.nils...@telia.com>> wrote:
>>
>> On 02/17/2017 08:05 PM, rohit yadav wrote:
>>
>> Hi,
>>
>> I followed the following tutorial to create a NixOS VM @GCE but
>> cannot
>> login. I did setup all the keys are stated. Anyone faced this
>> problem
>> before.
>>
>> https://nixos.org/wiki/Installing_NixOS_on_GCE
>> <https://nixos.org/wiki/Installing_NixOS_on_GCE>
>>
>>
>> Can you tell us a bit more about what errors you get? Maybe try
>> running your ssh client with verbose logging.
>>
>> For GCE, you should be able to look at the serial console through
>> the web interface. That might give you hints about any services that
>> might have failed.
>>
>> Here is the output of the serial console:
>> http://pastebin.com/wRYaadFY
>>
>> It seems that ssh-daemon is starting fine and all the keys are
>> downloaded as expected. In verbose mode, it shows the following
>> http://pastebin.com/BKx94sfN
>>
>> Somehow it is not able to authenticate with key.
>>
>
> This is may be a stupid question, but are you connecting as root user?

​I tried both to connect to nixos machine.

ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o
StrictHostKeyChecking=ask r...@xxx.xxx.xxx.xxx​


>
>
>   / Rickard
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Unable to ssh into a GCE nixos machine

2017-02-17 Thread rohit yadav
On Fri, Feb 17, 2017 at 1:11 PM, Rickard Nilsson <rickard.nils...@telia.com>
wrote:

> On 02/17/2017 08:05 PM, rohit yadav wrote:
>
>> Hi,
>>
>> I followed the following tutorial to create a NixOS VM @GCE but cannot
>> login. I did setup all the keys are stated. Anyone faced this problem
>> before.
>>
>> https://nixos.org/wiki/Installing_NixOS_on_GCE
>>
>
> Can you tell us a bit more about what errors you get? Maybe try running
> your ssh client with verbose logging.
>
> For GCE, you should be able to look at the serial console through the web
> interface. That might give you hints about any services that might have
> failed.
>
> Here is the output of the serial console:
http://pastebin.com/wRYaadFY

It seems that ssh-daemon is starting fine and all the keys are downloaded
as expected. In verbose mode, it shows the following
http://pastebin.com/BKx94sfN

Somehow it is not able to authenticate with key.


>   / Rickard
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Unable to ssh into a GCE nixos machine

2017-02-17 Thread rohit yadav
Hi,

I followed the following tutorial to create a NixOS VM @GCE but cannot
login. I did setup all the keys are stated. Anyone faced this problem
before.

https://nixos.org/wiki/Installing_NixOS_on_GCE

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
The problem still persist.

- I tried directly launching img file with qemu, and keyboard responds if
keyboard layout is specified. So, I am assuming it to be some VNC issue. I
still dunno know how to specify this to virsh or virt-manager.
- The networking issue still persists. I suspect it to be libvirt related
issue rather than nixops.

-Rohit

On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar <do...@dev.si> wrote:

> Use nixopsUnstable from unstable channel
>
> On Wed, 13 Jan 2016, 01:53 rohit yadav <rohityadav7...@gmail.com> wrote:
>
>> ​Hi,
>>
>> The nixops is able to deploy machine and run (verified using virsh
>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>> obtaining ip address. From "journalctl -xe" it appears to be requesting ip
>> from a non virbr0 port. How to make the virbr0 default? I does not let me
>> configure it using gui.
>>
>> Also, while trying to directly access the machine using virt-manager, the
>> VM console window does not respond to any key-stroke. Any clue as what
>> could be wrong here?
>>
>> Thanks,
>> Rohit
>> ___
>> 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


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
Hi Domen,

Thanks. I rebuilt the configuration with following option
networking.firewall.reversePath = false; and used nixopsUnstable and it
works fine now.

Thanks,
Rohit

On Wed, Jan 13, 2016 at 1:03 PM, rohit yadav <rohityadav7...@gmail.com>
wrote:

> ​It return the following. I am on IRC #nixos channel with name "rowhit"
>
> [image: Inline image 1]
>
> On Wed, Jan 13, 2016 at 12:50 PM, Domen Kožar <do...@dev.si> wrote:
>
>> Are you on IRC? #nixos will be faster.
>>
>> What's the output of: $ virsh -c qemu:///system net-dhcp-leases --network
>> default
>>
>> On Wed, Jan 13, 2016 at 7:44 PM, rohit yadav <rohityadav7...@gmail.com>
>> wrote:
>>
>>> nixops 1.3.1pre1673_a0d5681
>>>
>>> On Wed, Jan 13, 2016 at 12:39 PM, Domen Kožar <do...@dev.si> wrote:
>>>
>>>> Can you run: $ nixops --version
>>>>
>>>> On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav <rohityadav7...@gmail.com>
>>>> wrote:
>>>>
>>>>> The problem still persist.
>>>>>
>>>>> - I tried directly launching img file with qemu, and keyboard responds
>>>>> if keyboard layout is specified. So, I am assuming it to be some VNC 
>>>>> issue.
>>>>> I still dunno know how to specify this to virsh or virt-manager.
>>>>> - The networking issue still persists. I suspect it to be libvirt
>>>>> related issue rather than nixops.
>>>>>
>>>>> -Rohit
>>>>>
>>>>> On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar <do...@dev.si> wrote:
>>>>>
>>>>>> Use nixopsUnstable from unstable channel
>>>>>>
>>>>>> On Wed, 13 Jan 2016, 01:53 rohit yadav <rohityadav7...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> ​Hi,
>>>>>>>
>>>>>>> The nixops is able to deploy machine and run (verified using virsh
>>>>>>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>>>>>>> obtaining ip address. From "journalctl -xe" it appears to be requesting 
>>>>>>> ip
>>>>>>> from a non virbr0 port. How to make the virbr0 default? I does not let 
>>>>>>> me
>>>>>>> configure it using gui.
>>>>>>>
>>>>>>> Also, while trying to directly access the machine using
>>>>>>> virt-manager, the VM console window does not respond to any key-stroke. 
>>>>>>> Any
>>>>>>> clue as what could be wrong here?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Rohit
>>>>>>> ___
>>>>>>> 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


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
​It return the following. I am on IRC #nixos channel with name "rowhit"

[image: Inline image 1]

On Wed, Jan 13, 2016 at 12:50 PM, Domen Kožar <do...@dev.si> wrote:

> Are you on IRC? #nixos will be faster.
>
> What's the output of: $ virsh -c qemu:///system net-dhcp-leases --network
> default
>
> On Wed, Jan 13, 2016 at 7:44 PM, rohit yadav <rohityadav7...@gmail.com>
> wrote:
>
>> nixops 1.3.1pre1673_a0d5681
>>
>> On Wed, Jan 13, 2016 at 12:39 PM, Domen Kožar <do...@dev.si> wrote:
>>
>>> Can you run: $ nixops --version
>>>
>>> On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav <rohityadav7...@gmail.com>
>>> wrote:
>>>
>>>> The problem still persist.
>>>>
>>>> - I tried directly launching img file with qemu, and keyboard responds
>>>> if keyboard layout is specified. So, I am assuming it to be some VNC issue.
>>>> I still dunno know how to specify this to virsh or virt-manager.
>>>> - The networking issue still persists. I suspect it to be libvirt
>>>> related issue rather than nixops.
>>>>
>>>> -Rohit
>>>>
>>>> On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar <do...@dev.si> wrote:
>>>>
>>>>> Use nixopsUnstable from unstable channel
>>>>>
>>>>> On Wed, 13 Jan 2016, 01:53 rohit yadav <rohityadav7...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> ​Hi,
>>>>>>
>>>>>> The nixops is able to deploy machine and run (verified using virsh
>>>>>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>>>>>> obtaining ip address. From "journalctl -xe" it appears to be requesting 
>>>>>> ip
>>>>>> from a non virbr0 port. How to make the virbr0 default? I does not let me
>>>>>> configure it using gui.
>>>>>>
>>>>>> Also, while trying to directly access the machine using virt-manager,
>>>>>> the VM console window does not respond to any key-stroke. Any clue as 
>>>>>> what
>>>>>> could be wrong here?
>>>>>>
>>>>>> Thanks,
>>>>>> Rohit
>>>>>> ___
>>>>>> 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


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
nixops 1.3.1pre1673_a0d5681

On Wed, Jan 13, 2016 at 12:39 PM, Domen Kožar <do...@dev.si> wrote:

> Can you run: $ nixops --version
>
> On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav <rohityadav7...@gmail.com>
> wrote:
>
>> The problem still persist.
>>
>> - I tried directly launching img file with qemu, and keyboard responds if
>> keyboard layout is specified. So, I am assuming it to be some VNC issue. I
>> still dunno know how to specify this to virsh or virt-manager.
>> - The networking issue still persists. I suspect it to be libvirt related
>> issue rather than nixops.
>>
>> -Rohit
>>
>> On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar <do...@dev.si> wrote:
>>
>>> Use nixopsUnstable from unstable channel
>>>
>>> On Wed, 13 Jan 2016, 01:53 rohit yadav <rohityadav7...@gmail.com> wrote:
>>>
>>>> ​Hi,
>>>>
>>>> The nixops is able to deploy machine and run (verified using virsh
>>>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>>>> obtaining ip address. From "journalctl -xe" it appears to be requesting ip
>>>> from a non virbr0 port. How to make the virbr0 default? I does not let me
>>>> configure it using gui.
>>>>
>>>> Also, while trying to directly access the machine using virt-manager,
>>>> the VM console window does not respond to any key-stroke. Any clue as what
>>>> could be wrong here?
>>>>
>>>> Thanks,
>>>> Rohit
>>>> ___
>>>> 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


[Nix-dev] How to copy files and share folders to nixops deployment

2016-01-06 Thread rohit yadav
Hi,

I am trying to deploy containers with nixops with ability to copy files and
folder from local machine to a target folder inside the container. Also, I
want to share folders from localhost machine to the container. How do I
accomplish this? I could not find anything in the manual.

One solution I tried sshfs after deployment of container but find that it
complains about 'fuse' module not loaded though I listed inside the
packages.

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Virtualbox on Nixos15.09, Error: NS_ERROR_FAILURE (0x80004005)

2015-12-18 Thread rohit yadav
After loading the vboxdrv manually, it moves forward but complains as
follows:
"An uknown group has write access to '/nix' and we therefore cannot trust
the directory content or that of any subdirectory
(VERR_SUPLIB_WRITE_NON_SYS_GROUP)"

Do I need to manually change the group of /nix directory to root?

--
Rohit

On Fri, Dec 18, 2015 at 4:53 PM, rohit yadav <rohityadav7...@gmail.com>
wrote:

> Hi,
>
> I am trying to run vagrant on NixOS with Virtualbox. I receive the above
> mentioned error when launching any machine with Virtualbox. On ubuntu it is
> fixed by dkms and vboxdrv module.
>
> Thanks,
> Rohit
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Virtualbox on Nixos15.09, Error: NS_ERROR_FAILURE (0x80004005)

2015-12-18 Thread rohit yadav
Changing the permission of of '/nix' by 'chmod g-w' solves the​ issue. Is
it a right solution?

On Fri, Dec 18, 2015 at 5:17 PM, rohit yadav <rohityadav7...@gmail.com>
wrote:

> After loading the vboxdrv manually, it moves forward but complains as
> follows:
> "An uknown group has write access to '/nix' and we therefore cannot trust
> the directory content or that of any subdirectory
> (VERR_SUPLIB_WRITE_NON_SYS_GROUP)"
>
> Do I need to manually change the group of /nix directory to root?
>
> --
> Rohit
>
> On Fri, Dec 18, 2015 at 4:53 PM, rohit yadav <rohityadav7...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I am trying to run vagrant on NixOS with Virtualbox. I receive the above
>> mentioned error when launching any machine with Virtualbox. On ubuntu it is
>> fixed by dkms and vboxdrv module.
>>
>> Thanks,
>> Rohit
>>
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Virtualbox on Nixos15.09, Error: NS_ERROR_FAILURE (0x80004005)

2015-12-18 Thread rohit yadav
Hi,

I am trying to run vagrant on NixOS with Virtualbox. I receive the above
mentioned error when launching any machine with Virtualbox. On ubuntu it is
fixed by dkms and vboxdrv module.

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Non-root access to nixos-container

2015-12-16 Thread rohit yadav
Hi,

After trying docker, rkt etc, I have found nixos-container to be best
suited for my application. However, I find ​a warning that root access to
the container should not be provided to any untrusted user. I am wondering
if I can create a normal user in a declarative container, would that be
safe? This may be a trivial question, I just want to be clear on this.

I have not been to able to run lxc container on NixOS yet. I would be
grateful if someone can share their success story in this regard. Docker
works fine but cannot create systemd-service to launch. Besides, the images
sizes are too big.

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-14 Thread rohit yadav
Hi Zimbatm,

I have very similar arrangement. I use git and to keep the configuration
synced. However, I wish to use NixOps, I haven't been able to find time to
do that. From the documentation I could not figure out how to deploy on
bare-metal. But as Christoph mentioned that a simple Ip-Address in the
network is all you need with nixops do deploy. It will remove lot of boiler
plate configuration I have to write on each system.

Thanks,
Rohit

On Mon, Dec 14, 2015 at 3:33 PM, zimbatm  wrote:

> Hi rohit,
>
> Personally I just have a folder per machine with the /etc/nixos folder and
> a little script that runs rsync + `nixos-rebuild --switch` on the target
> machine.
>
> Over time I will probably switch to using nixops as well but for a start
> it's working super well for me. Especially since it doesn't have any nix
> dependency on the source machine. It takes just a couple of seconds to
> deploy which is way better than anything I had in the past (ansible,
> puppet, capistrano, ...).
> On Thu, 10 Dec 2015 20:45 Christoph Hrdinka  wrote:
>
>> Hi Rohit!
>>
>> You can use nixops to deploy to any server running ssh. All you have to
>> do is install a basic NixOS system with opensshd enabled on your target
>> server. Then tell nixops the hostname/ip address of the new server
>> via `deployment.targetHost`.
>>
>> Nixops will evaluate any nix expression you give it. If you supply
>> multiple files these will be merged. Your nix expression must yield an
>> attribute set of the following form:
>>
>> {
>>   someMachineName =
>> { config, lib, pkgs, ... }:
>> {
>>   deployment.targetHost = "hostname or ip";
>>   # your usual nixos configuration file
>>   # ...
>> }
>>
>>   anotherMachine =
>> {}
>> }
>>
>> Every machine described in there will be deployed according to your
>> configuation. Since it is a normal nix expression you can use any way
>> to produce it. You can have basic templates that will be merged and
>> overwritten by more specific ones, write everything in one file, spread
>> it over hundret files or write a configuration syntax from which nix
>> will derive all actual server configs.
>>
>> For what exactly do you need PXE? Is it for the initial NixOS install
>> or do you want to use it because it worked for you till now with other
>> systems?
>> If you want it because of less configuration work it may be the wrong
>> tool for a NixOS setup. Nixops is much better suited for this job than
>> any PXE setup could ever be. It is made for simple deployment of
>> hundrets of machines.
>>
>> You might also want to have a look at disnix/disnixos.
>>
>> Regards,
>> Christoph Hrdinka.
>> ___
>> 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
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-10 Thread rohit yadav
Hi All,

I have few server running NixOS manually configured. Nix already provides a
convenient way but a single config file to deploy services to each server
would be great. NixOps if I understand correctly is an initiative in that
direction. However, from manual I did not understand as how to manage
bare-metal servers. I want to configure one server manually with TPFTP
service and rest PXE boot from it. Is this something that is supported by
NixOps currently?

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to use a previous build from hydra-server

2015-12-07 Thread rohit yadav
Hi,

Currently Mesos package is broken on nixos-unstable channel, therefore, I
cannot install it on my server. Is there a way to install a previous
successful build?

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to use a previous build from hydra-server

2015-12-07 Thread rohit yadav
One more question. Is it possible to add two channels? Say one unstable and
one previous stable channel and choose module from one of them?

Thanks.
Rohit

On Mon, Dec 7, 2015 at 8:47 PM, rohit yadav <rohityadav7...@gmail.com>
wrote:

> Hi,
>
> Currently Mesos package is broken on nixos-unstable channel, therefore, I
> cannot install it on my server. Is there a way to install a previous
> successful build?
>
> Thanks,
> Rohit
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to use a previous build from hydra-server

2015-12-07 Thread rohit yadav
Hi Rok,

Thanks for reply. How should I fetch it? I mean how to tell the system to
use that particular build? Currently, when I say nixos-rebuild {boot |
switch} it assumes that that  (which again I am not sure which one
it refers to when I have to two channels listed) would tell it the right
hash and it would fetch that from the server. I dunno know how to by-pass
that and directly fetch any particular build from hydra. Could you please
elaborate on this or refer to the documentation where it is described in
more detail.

Thanks,
Rohit

On Mon, Dec 7, 2015 at 9:45 PM, Rok Garbas <r...@garbas.si> wrote:

> you can fetch mesos directly from hydra
>
> http://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.mesos.x86_64-linux
>
> check latest successful build for instructions.
>
>
>
> Quoting rohit yadav (2015-12-08 03:54:05)
> > One more question. Is it possible to add two channels? Say one unstable
> and one
> > previous stable channel and choose module from one of them?
> >
> > Thanks.
> > Rohit
> >
> > On Mon, Dec 7, 2015 at 8:47 PM, rohit yadav <rohityadav7...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > Currently Mesos package is broken on nixos-unstable channel,
> therefore, I
> > cannot install it on my server. Is there a way to install a previous
> > successful build?
> >
> > Thanks,
> > Rohit
> >
> >
>
>
> --
> Rok Garbas - http://www.garbas.si
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to write module outside the nixpkgs tree and integrated with nixos-rebuild

2015-12-04 Thread rohit yadav
Yes, it was mistake on my part. In NixCon someone proposed to remove the
current wiki because it is outdated. But I guess I should first try before
asking. I will post questions with more caution in future.

-Rohit

On Fri, Dec 4, 2015 at 2:39 AM, Guillaume Maudoux (Layus) <
layus...@gmail.com> wrote:

> This is not the first time this question arises on the mailing list.
>
> Where did you expect to find this information in the docs ?
> This may be the ideal place to add the info.
>
> G.
>
> Le 04/12/15 06:18, rohit yadav a écrit :
>
> Thanks! This is exactly I was looking for. I should have looked more
> before posting this query.
>
> --
> Rohit
>
> On Thu, Dec 3, 2015 at 10:14 PM, Игорь Пашев <pashev.i...@gmail.com>
> wrote:
>
>> 2015-12-04 6:12 GMT+03:00 rohit yadav < <rohityadav7...@gmail.com>
>> rohityadav7...@gmail.com>:
>> > Hi,
>> >
>> > How to write a NixOS module that is outside the nixpkgs tree and
>> integrate
>> > it with nixos-rebuild. I particularly want to define few services which
>> > should be run in a particular order. I believe I can define them
>> directly in
>> > /etc/systemd/system folder (but this defeats the purpose of nix).
>> >
>>
>> Use imports = [  ]; in /etc/nixos/configuration.nix
>>
>> https://nixos.org/wiki/NixOS:extend_NixOS
>>
>
>
>
> ___
> nix-dev mailing 
> listnix-...@lists.science.uu.nlhttp://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
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to write module outside the nixpkgs tree and integrated with nixos-rebuild

2015-12-04 Thread rohit yadav
​I searched through google, "private nixos modules outside nixpkgs tree".
There was blog by Sander (
http://sandervanderburg.blogspot.com/2014/07/managing-private-nix-packages-outside.html).
I was assuming someone to have posted similar post for nixos module. In the
past wiki has been helpful but on several occasion found it to be broken.

I was using nixpkgs with ubuntu till now so did not have to deal with nixos
modules, and wasn't clear about the working of this. But now I truly
appreciate the beauty of NixOS. And especially with NixOps I believe it
would solve majority of my problems. In addition, with Hydra build farm I
can easily maintain my own private repo.

--
Rohit

On Fri, Dec 4, 2015 at 12:08 PM, Layus <layus...@gmail.com> wrote:

> Oh, it seems that you misunderstood me.
>
> My point is that that particular information (i.e. "How to add custom
> modules?") is not easy to find in the docs/wiki.
> I claim this based on the (relatively) big number of users asking that
> question on the mailing list and at NixCon.
>
> So I asked you to give examples of places where you looked for that piece
> of information (wiki, nixos man, eetc ?), and how you looked for it
> (google, nixos options, nixos.org search? what keywords you used, etc.).
> That way, I would know where to add the required explanations to help
> future users facing the same question.
>
> G.
>
>
> On 04/12/15 18:26, rohit yadav wrote:
>
> Yes, it was mistake on my part. In NixCon someone proposed to remove the
> current wiki because it is outdated. But I guess I should first try before
> asking. I will post questions with more caution in future.
>
> -Rohit
>
> On Fri, Dec 4, 2015 at 2:39 AM, Guillaume Maudoux (Layus) <
> <layus...@gmail.com>layus...@gmail.com> wrote:
>
>> This is not the first time this question arises on the mailing list.
>>
>> Where did you expect to find this information in the docs ?
>> This may be the ideal place to add the info.
>>
>> G.
>>
>> Le 04/12/15 06:18, rohit yadav a écrit :
>>
>> Thanks! This is exactly I was looking for. I should have looked more
>> before posting this query.
>>
>> --
>> Rohit
>>
>> On Thu, Dec 3, 2015 at 10:14 PM, Игорь Пашев < <pashev.i...@gmail.com>
>> pashev.i...@gmail.com> wrote:
>>
>>> 2015-12-04 6:12 GMT+03:00 rohit yadav < <rohityadav7...@gmail.com>
>>> rohityadav7...@gmail.com>:
>>> > Hi,
>>> >
>>> > How to write a NixOS module that is outside the nixpkgs tree and
>>> integrate
>>> > it with nixos-rebuild. I particularly want to define few services which
>>> > should be run in a particular order. I believe I can define them
>>> directly in
>>> > /etc/systemd/system folder (but this defeats the purpose of nix).
>>> >
>>>
>>> Use imports = [  ]; in /etc/nixos/configuration.nix
>>>
>>> https://nixos.org/wiki/NixOS:extend_NixOS
>>>
>>
>>
>>
>> ___
>> nix-dev mailing 
>> listnix-...@lists.science.uu.nlhttp://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
>>
>>
>
>
> ___
> 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


[Nix-dev] How to write module outside the nixpkgs tree and integrated with nixos-rebuild

2015-12-03 Thread rohit yadav
Hi,

How to write a NixOS module that is outside the nixpkgs tree and integrate
it with nixos-rebuild. I particularly want to define few services which
should be run in a particular order. I believe I can define them directly
in /etc/systemd/system folder (but this defeats the purpose of nix).

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to write module outside the nixpkgs tree and integrated with nixos-rebuild

2015-12-03 Thread rohit yadav
Thanks! This is exactly I was looking for. I should have looked more before
posting this query.

--
Rohit

On Thu, Dec 3, 2015 at 10:14 PM, Игорь Пашев <pashev.i...@gmail.com> wrote:

> 2015-12-04 6:12 GMT+03:00 rohit yadav <rohityadav7...@gmail.com>:
> > Hi,
> >
> > How to write a NixOS module that is outside the nixpkgs tree and
> integrate
> > it with nixos-rebuild. I particularly want to define few services which
> > should be run in a particular order. I believe I can define them
> directly in
> > /etc/systemd/system folder (but this defeats the purpose of nix).
> >
>
> Use imports = [  ]; in /etc/nixos/configuration.nix
>
> https://nixos.org/wiki/NixOS:extend_NixOS
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to create rootfs for any target system

2015-11-30 Thread rohit yadav
Hi All,

I have never dealt with the above problem. I am interested in understanding
how the rootfs works and how to create one from scratch for any given
operating system (I believe the tools would be different for each of them).
The simplest would be start with iso image of the distro, I am particularly
interested in creating NixOS image for Docker, Systemd-Nspawn
(NixOS-containers) and LXC containers. There are few docker images
available on docker hub but I could not use them to create what I need. I
need to have rootfs, which when booted up would have gluster or nfs or
sshfs to mount /nix/store from a specific IP address.

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to stop all packages to stop compiling from binary

2015-11-01 Thread rohit yadav
Hi All-

I upgraded my channel from 14.12 to 15.09 and now all the packages are
being compiled from source. How do I make it to get the pre-build binaries?

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] RandR extension missing

2015-10-09 Thread rohit yadav
I am running vncserver on a NixOS (with unstable channel as source of
packages). When I try to launch ​emacs on a vnc session, I receive error as
below:

Xlib: extension "RANDR missing on display ":1".

I am not sure why I am receiving this error. I have already installed
xrandr.

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Setup GlusterFS server on NixOS machines

2015-09-29 Thread rohit yadav
​NixOS is a OS-distribution based on "nix", the package manager. You have
option of trying out nix on any standard distribution (
https://www.domenkozar.com/2014/01/02/getting-started-with-nix-package-manager/).
Once, you understand nix and build packages with it and fine it interesting
then you can move on to NixOS. However, I have found it to be problematic.
Once in a while, few packages points to native distribution binaries. So,
if you are experienced use then you can directly install NixOS on bare
metal. Use ext4, xfs etc formatted disk to install NixOS. Please provided
atleast 75-80 GB drive for "/nix/store", the place where it puts binaries.
Since, each package is standalone and does not share with other binaries,
the size can add up pretty quickly. However, there are methods to
internally optimize by creating hard-links between binaries.

Once you have NixOS. Further, to install gluster, you should format disk
with xfs (recommended) or btrfs and mount those volumes. GlusterFS is not
native filesystem. It is layer on top of the standard filesystem. Its keep
in sync multiple volumes distributed across multiple computers in a set of
trusted cluster. It does not have authorization system yet (or atleast I
haven't researched enough to find one). You can stripped volume or
replicated volume or combination of both. Usually, I keep atleast 2
replicated volume on one cluster. Create gluster bricks on the mounted
volumes dedicated to gluster and create volumes which has several number of
bricks in the configuration you like. Once volumes are created and started,
you can mount those volumes to any client machine in that cluster. Now you
have you a private NAS with commodity hardware.

I haven't yet been able to use the available gluster binary on NixOS
channels to setup a cluster with glusterFS (though I have one running one
ubuntu). I am experimenting with NixOS on my laptop and a VM, no real
hardware is involved yet.

Hope this helps.

Thanks,
Rohit

On Tue, Sep 29, 2015 at 10:27 AM, James <wirel...@tampabay.rr.com> wrote:

> rohit yadav  gmail.com> writes:
>
>
>
>
> > James,
>
> > I am certainly interested. However, I am relatively new to OS world and
> haven't dealt with lower level details, though I am a linux user for
> sometime. Managing cluster with ubuntu/debian posed a significant challenge
> to me. Any experienced user would probably have no difficulty with standard
> distributions but I found it very difficult.
>
>
> Not true. Even the commercial 'big data centers' "reload" systems all
> the time for a variety of reasons. Long running clusters get hacked
> all the time, if they face the internet and have many VMs and containers.
> There's also the "cruft" cleanup maintenance issues on big clusters. All
> sorts of orphaned files just keep building up and up and up There
> are lots of other problems with both build time and runtime dependancies
> too. There are many more problems, that are out of scope here to, with
> cluster maintenance.
>
>
> > Then, I found NixOS which offers significant advantage over other system
> (ex: create a single file to manage the whole operating system with atomic
> rollback, therefore I could experiment several things without fear of
> leaving system unstable). I do not have specific preference for init
> system,
> I guess each have pros and cons.
>
>
> Is top-posting the norm for this list? I usually  respond "inline" to keep
> the thread readable and flow consistent. Surely this list has a convention
> (format) for posting?
>
>
>
>
> > I am mostly interested in building packages in deterministic way, where
> NixOS shines (its actually the feature offered by Nix, which you can
> install
> on Gentoo too I believe). Therefore, the packages you would build in nix
> would still be usable on other platforms. You can get started with NixOS
> very easily.
>
> OK, I'll accept this premise and verify it later.
>
>
> > - Download an ISO image from here: "
> https://nixos.org/nixos/download.html;
> > - Follow these instruction:
> "https://nixos.org/nixos/manual/sec-installation.html;
>
> > Lets get started with building the cluster of our choice. My first
> priority is to really build a gluster/ceph based cluster to totally migrate
> to NixOS and experiment with other packages.
>
> I'm not familiar with gluster. Are there some links to the disk formatting
> options to follow for setting up the hard disk with gluster? The example
> you
> pointed to was for ext4. Any caveats with glusterfs?
>
>
> OK, but it's going to be a few days (weekend?) before I get around to
> installing a Nixos system.  I'll start with a (3) node cluster to
> get things working. Have you already built such

Re: [Nix-dev] Setup GlusterFS server on NixOS machines

2015-09-27 Thread rohit yadav
Hi James,

I have very similar goals. It would be great if there are more individuals.

Thanks,
Rohit

On Sun, Sep 27, 2015 at 5:17 PM, James <wirel...@tampabay.rr.com> wrote:

> rohit yadav  gmail.com> writes:
>
>
> > I am looking to setup a glusterFS or cephFS cluster. Has anyone worked on
> this? I submitted an issue on github #9877 last week but received no
> response. I would be grateful if anyone can help me.
> > Rohit
>
> Interesting. One of the NixOS guys just posted to planet.gentoo.org. As
> a long time gentoo user, who has been working on building up the packages
> necessary for a robust apache-mesos cluster, I find Nixos intriquing.
>
> Specifically::
>
> My goals are to not use HDFS (its a slug) in lieu of btrfs/cephfs.
>
> In fact the main packages I need, seem to all be in nixos::
>
> mesos, spark, zookeeper, marathon, storm and others. In fact all I could
> find missing is 'tachyon'.
>
> My goal with a *nix cluster is Big science; that is all the resources
> working on a single big problem, like computational chemistry, subsurface
> modelling, Massive video redering mixing graphics and lived video, CI, etc
> etc.
>
>
> Is there a quorum of folks with similar interests?
>
> I'm also testing openmp (clang-3.7.x) and RDMA via OpenACC (gcc-5.2) a like
> minded community ?
>
> Surely nixos is design for clusters ?
>
> What packages does nixos have to implement and have graphical
> representations of data via a DAG?
>
> How difficult is it to use gentoo's ebuilds for nixos?
> Is there a process to convert ebuilds for use on nixos?
>
> PS, I'm not so found of Virtual Machines, as I'm a bare-metal kind of hack
> really looking to migrate from amd to aarch64. Nixos does support aarch64
> (arm64) right?
>
> wwr,
> James
>
>
>
>
> ___
> 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


[Nix-dev] Setup GlusterFS server on NixOS machines

2015-09-23 Thread rohit yadav
Hi,

I am looking to setup a glusterFS or cephFS cluster. Has anyone worked on
this? I submitted an issue on github #9877 last week but received no
response. I would be grateful if anyone can help me.

Thanks,
Rohit
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev