[Nix-dev] xen on nixos

Jan Malakhovski oxij at oxij.org
Sun Sep 2 11:56:02 CEST 2012


Hi Marco,

This happens because xend hangs at startup.
Try applying patches from this pull request for nixpkgs (not merged into master for a month without a reason):
https://github.com/NixOS/nixpkgs/pull/93
Pull request comments and changeset comments elaborate on the problem.

Best regards,
  Jan

On Fri, 24 Aug 2012 11:06:29 +0200
Marco Maggesi <maggesi at math.unifi.it> wrote:

> Hi,
> 
> I'm trying to setup a xen on nixos.  I added the following lines to
> configuration.nix:
> 
>   boot.kernelPackages = pkgs.linuxPackages_3_2_xen;
>   virtualisation.xen.enable = true;
>   virtualisation.xen.domain0MemorySize = 512;
> 
> nixos-rebuild works without problems and I can see xend running:
> 
>   # ps -u root | grep xend
>   2296 ?        00:00:00 .xend-wrapped
>   2451 ?        00:00:00 .xend-wrapped
>   2452 ?        00:00:00 .xend-wrapped
>   2454 ?        00:00:48 .xend-wrapped
> 
> However, xm do not work:
> 
>   # xm list
>   Error: Unable to connect to xend: No such file or directory. Is xend running?
> 
> Looking at the output of
>   # strace xm list
> the problem seems to be related to the creation of the communication socket
> (/var/run/xend/xmlrpc.sock)
> 
> Can somebody already solved this?
> 
> Thanks,
> Marco
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list