[Nix-dev] xen nixos guest on a debian host

Marco Maggesi maggesi at math.unifi.it
Thu May 3 18:05:49 CEST 2012


Hello,

I'm trying to use xen on nixos.
I have two problems one for the host, one for the guest:

For the host: I have a 32 bit machine.  When I try to install a nixos
xen host I get the following error during nixos-rebuild

building arch/x86/vdso/vdso32/vdso32.lds
  LDS     arch/x86/vdso/vdso32/vdso32.lds
building arch/x86/vdso/vdso32/note.o
  AS      arch/x86/vdso/vdso32/note.o
building arch/x86/vdso/vdso32/int80.o
  AS      arch/x86/vdso/vdso32/int80.o
building arch/x86/vdso/vdso32-int80.so.dbg
  VDSO    arch/x86/vdso/vdso32-int80.so.dbg
gcc: error: elf_i386: No such file or directory
make[2]: *** [arch/x86/vdso/vdso32-int80.so.dbg] Error 1
make[1]: *** [arch/x86/vdso] Error 2
make: *** [arch/x86] Error 2
builder for
`/nix/store/kn86s2slq3ad2ykqpwac9xzkx4aj2764-linux-2.6.32.24-xen-179eca5.drv'
failed with exit code 2
cannot build derivation
`/nix/store/7x0n34dyhhrzqwhm10llba89r36q04nx-nixos-0.1pre-svn.drv': 1
dependencies couldn't be built
error: build of
`/nix/store/7x0n34dyhhrzqwhm10llba89r36q04nx-nixos-0.1pre-svn.drv'
failed

For the guest: When I try to install the nixos xen guest the
nixos-install scripts fails with the message:

error: selector `nixos' matches no derivations

Thanks,
Marco


2012/4/27 Eelco Dolstra <eelco.dolstra at logicblox.com>:
> Hi,
>
> On 27/04/12 14:41, Marco Maggesi wrote:
>
>> the subject basically says everything.
>> I would like to run a xen virtual appliance hosted by a debian machines.
>> I already have a debian configured guest (it is an empty scratchy
>> machine that I can erase) and I would like to turn it into a nixos
>> guest.
>> Can you see an easy way to do this?
>> My first attempt is: bootstrap the guest with the nixos minimal CD iso
>> image and make a new installation.
>> However, the kernel available on the CD do not have a kernel that
>> understand xen paravitualization.
>
> See "Creating NixOS guests" in http://nixos.org/wiki/NixOS_and_Xen.  The
> "nixos-install" call assumes that you're running NixOS, so you should do the
> image creation on a NixOS machine rather than in your Debian Dom0, then copy it
> over to the Debian machine.
>
> --
> Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
> _______________________________________________
> 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