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

Marco Maggesi maggesi at math.unifi.it
Tue May 8 11:58:22 CEST 2012


Hi,

for the problem on the xen host, i found this explanation from
https://bbs.archlinux.org/viewtopic.php?id=119341

''
I had the exact same problem when trying to compile a 2.6.28 vanilla
kernel with gcc 4.6.  The problem is that gcc 4.6 doesn't support
anymore linker-style architecture options.  Apply the following
changes to solve the problem:
In arch/x86/vdso/Makefile :
replace "-m elf_x86_64" by "-m64" on the line starting with
VDSO_LDFLAGS_vdso.lds
replace "-m elf_x86" by "-m32" on the line starting with
VDSO_LDFLAGS_vdso32.lds
''
Can someone can take care of this?
I would be happy to produce a patch myself for this, but I'm lost in
the details of the kernel deployment.
For a start, how this tarball
http://nixos.org/tarballs/linux-2.6.32.24-xen-179eca5.tar.bz2
is produced?
It is taken from somewhere in the web or it is made specifically for
nixos?  Should I provide a patch for this?
By the way, are there a specific kernel version that you would suggest
for running a xen host?

Thank you,
Marco

2012/5/3 Marco Maggesi <maggesi at math.unifi.it>:
> 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
>
>  [pbuilding arch/x86/vdso/vdso32/vdso32.lds
>  LDS     arch/x86/vdso/vdso32/vdso32.lds
>  [q [pbuilding arch/x86/vdso/vdso32/note.o
>  AS      arch/x86/vdso/vdso32/note.o
>  [q [pbuilding arch/x86/vdso/vdso32/int80.o
>  AS      arch/x86/vdso/vdso32/int80.o
>  [q [pbuilding 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
>  [qmake[1]: *** [arch/x86/vdso] Error 2
>  [qmake: *** [arch/x86] Error 2
>  [q [q [qbuilder 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