[Nix-dev] xen on nixos

Marco Maggesi maggesi at math.unifi.it
Fri Aug 24 11:06:29 CEST 2012


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


More information about the nix-dev mailing list