PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > how to compile a xen dom0 kernel the debian way
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

how to compile a xen dom0 kernel the debian way

Réponse
 
LinkBack Outils de la discussion
Vieux 07/09/2007, 03h40   #1
Jonas Meurer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to compile a xen dom0 kernel the debian way


hello,

i would like to give xen a try, but i didn't manage to compile a dom0
host kernel yet.

that's because i would like to use a recent linux kernel (2.6.20 at
least), build it the debian way (with make-kpkg), and as well build
some external modules (nvidia-legacy-96xx, ivtv) with module-assistent
for it.

in irc (#xen or ##xen) i was told to use the ubuntu linux-source-2.6.22
2.6.22-10.30 package, and according to the changelog it should contain
xen patches, but unfortunately a 'make menuconfig' in the sources didn't
give any xen options in 'processor-type and features'.

so how do you compile a xen dom0 host-kernel? is it possible with recent
kernel sources, and where do i find the corresponding xen patches?

thanks in advance,
jonas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG4LiHd6lUs+JfIQIRAsjjAJ4ii8fIOrTHVdUCnz68Yi hYDMgwPgCgnRz6
IujPuj0jnqlWk4LVYb7zXq8=
=qlYY
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 09/09/2007, 08h30   #2
Andy Smith
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to compile a xen dom0 kernel the debian way

Hi Jonas,

On Fri, Sep 07, 2007 at 04:33:43AM +0200, Jonas Meurer wrote:
>
> hello,
>
> i would like to give xen a try, but i didn't manage to compile a dom0
> host kernel yet.


Do you need to? What is wrong with Debian's xen kernels?

> that's because i would like to use a recent linux kernel (2.6.20 at
> least), build it the debian way (with make-kpkg), and as well build
> some external modules (nvidia-legacy-96xx, ivtv) with module-assistent
> for it.


You can't use a kernel.org kernel, as the xen feature is a patch
developed external to the mainline kernel.

You can use the normal Debian kernel source and compile like you
would normally, making sure to select the xen patch.

This will result in a kernel you can use with module-assistant. But
you can use module-assistant with the stock debian xen kernel so I
am not clear as tp why you need to do this.

> so how do you compile a xen dom0 host-kernel? is it possible with recent
> kernel sources, and where do i find the corresponding xen patches?


They come with Debian's kernel source.

Cheers,
Andy

--
http://bitfolk.com/ -- No-nonsense VPS hosting
Encrypted mail welcome - keyid 0x604DE5DB

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG459SIJm2TL8VSQsRAhqtAKDi81M48sF7J8nnBCqcH6/7NIlYlgCfb91o
ZoeNwforUdXounjfrC6mefo=
=561E
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 09/09/2007, 14h10   #3
Jonas Meurer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to compile a xen dom0 kernel the debian way

On 09/09/2007 Andy Smith wrote:
> Hi Jonas,


Hey Andi,

> > i would like to give xen a try, but i didn't manage to compile a dom0
> > host kernel yet.

>
> Do you need to? What is wrong with Debian's xen kernels?


I don't think that there's anything wrong with debian's default kernels,
but I always use a selfcompiled kernel, and I'dd like to learn howto
compile a xen dom0 kernel as well.

Additionally it seems like current debian/unstable has no precompiled
xen dom0 linux-images, at least for amd64 (x86_64):

# apt-cache search linux-image | grep xen
#

> > that's because i would like to use a recent linux kernel (2.6.20 at
> > least), build it the debian way (with make-kpkg), and as well build
> > some external modules (nvidia-legacy-96xx, ivtv) with module-assistent
> > for it.

>
> You can't use a kernel.org kernel, as the xen feature is a patch
> developed external to the mainline kernel.


That's clear, but I could use a kernel.org kernel and patch it with the
corresponding xen patch, right?

> You can use the normal Debian kernel source and compile like you
> would normally, making sure to select the xen patch.


Unfortunately, this simply doesn't work. If I run 'make menuconfig' in
debians linux-source-2.6.22 sources, I don't get any xen options in
the submenu 'processor-type and features'.

> > so how do you compile a xen dom0 host-kernel? is it possible with recent
> > kernel sources, and where do i find the corresponding xen patches?

>
> They come with Debian's kernel source.


Then maybe they come only for i386? As already written, on my amd64
system, I cannot find any xen options in debians linux-source-2.6.22.

greetings,
jonas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG4+8Nd6lUs+JfIQIRAoySAKCRFnZCpY+ZwfiSQGwO2g 6ShHehVQCdHTsj
BEIUfEPxkVZkEty4kLJ1ZBk=
=NP/n
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 09/09/2007, 19h20   #4
Andy Smith
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to compile a xen dom0 kernel the debian way

Hi Jonas,

On Sun, Sep 09, 2007 at 03:03:09PM +0200, Jonas Meurer wrote:
> On 09/09/2007 Andy Smith wrote:
> > Hi Jonas,

>
> Hey Andi,
>
> > > i would like to give xen a try, but i didn't manage to compile a dom0
> > > host kernel yet.

> >
> > Do you need to? What is wrong with Debian's xen kernels?

>
> I don't think that there's anything wrong with debian's default kernels,
> but I always use a selfcompiled kernel, and I'dd like to learn howto
> compile a xen dom0 kernel as well.


Okay. Well It has been a long time (6 months+) since I did this as
these days the stock debian xen kernels are fine for me, but..

> > You can use the normal Debian kernel source and compile like you
> > would normally, making sure to select the xen patch.

>
> Unfortunately, this simply doesn't work. If I run 'make menuconfig' in
> debians linux-source-2.6.22 sources, I don't get any xen options in
> the submenu 'processor-type and features'.


So you have also installed linux-patch-debian-* and then done:

$ sudo make-kpkg --added-patches xen clean
$ sudo make-kpkg --added-patches xen kernel-image

?

Also back when I did it, this bug was present and needed the
described workaround:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=382699

That is what I mean by "making sure to select the xen patch". It's
the same process as used for making your own linux-vserver kernel.

If you still have problems I would recommend the debian xen package
mailing list.

Cheers,
Andy

--
http://bitfolk.com/ -- No-nonsense VPS hosting
Encrypted mail welcome - keyid 0x604DE5DB

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG5DlFIJm2TL8VSQsRAlcyAJ96dt+YgslCqFQPPqDRe2 mqgXicsgCgwPAN
saAmN3n/nW0VKLkPFMFqz1g=
=ppI0
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 10/09/2007, 02h50   #5
Jonas Meurer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to compile a xen dom0 kernel the debian way

On 09/09/2007 Andy Smith wrote:
> Hi Jonas,


Hi Andy,

> > > You can use the normal Debian kernel source and compile like you
> > > would normally, making sure to select the xen patch.

> >
> > Unfortunately, this simply doesn't work. If I run 'make menuconfig' in
> > debians linux-source-2.6.22 sources, I don't get any xen options in
> > the submenu 'processor-type and features'.

>
> So you have also installed linux-patch-debian-* and then done:
>
> $ sudo make-kpkg --added-patches xen clean
> $ sudo make-kpkg --added-patches xen kernel-image
>
> Also back when I did it, this bug was present and needed the
> described workaround:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=382699


Yes, exactly. Actually I do have some more options to make-kpkg:

# make-kpkg --rootcmd fakeroot --initrd --append-to-version \
-1-amd64-xen --revision 2.6.22-4 --added-patches xen clean
# make-kpkg --rootcmd fakeroot --initrd --append-to-version \
-1-amd64-xen --revision 2.6.22-4 --added-patches xen kernel_image

And indeed some patches seem to be applied (see below). But i still
don't see any xen options in menuconfig. Maybe the 2.6.22 xen patches
are for i386 only and not ported to amd64 yet?
That would also explain why no linux-image-2.6.22-2-xen-amd64 package
exists in debian/unstable.

output of 'make-kpkg ... --added-patches xen kernel_image':

[...]
test ! -f applied_patches || rm -f applied_patches
for patch in /usr/src/kernel-patches/all/2.6.22/apply/xen ; do \
if test -x $patch; then \
if $patch; then \
echo "Patch $patch processed fine"; \
echo "$patch" >> applied_patches; \
else \
echo "Patch $patch failed."; \
echo "Hit return to Continue"; \
read ans; \
fi; \
fi; \
done
Applying debian patch with xen parts
Warning: Can't find series file for 3
(.) IGNORED bugfix/arm/nas100d-pata-artop-single-port.patch
(.) IGNORED bugfix/m68k/falconide_intr_lock-reentrant.diff
(.) IGNORED bugfix/m68k/633-atari_scc.diff
(.) IGNORED bugfix/m68k/130-adbraw.diff
(.) IGNORED bugfix/m68k/141-ide.diff
(.) IGNORED bugfix/m68k/143-ioext.diff
(.) IGNORED bugfix/m68k/149-mc68681.diff
(.) IGNORED bugfix/m68k/152-pci.diff
(.) IGNORED bugfix/m68k/448-ide.diff
(.) IGNORED bugfix/m68k/478-serial.diff
(.) IGNORED bugfix/m68k/atari-rom-isa.diff
(.) IGNORED bugfix/m68k/atari-ethernec.diff
(.) IGNORED bugfix/m68k/unnecessary-m68k_memoffset.diff
(.) IGNORED bugfix/m68k/atari-aranym.diff
(.) IGNORED bugfix/m68k/ethernec-work.diff
(.) IGNORED bugfix/m68k/nfeth-virt_to_phys.diff
(.) IGNORED bugfix/m68k/ethernec-kill-ETHERNEC_USE_POLL.diff
(.) IGNORED bugfix/m68k/m68k-generic-io.diff
(.) IGNORED bugfix/m68k/m68k-mvme-scsi-rename.diff
(.) IGNORED bugfix/m68k/m68k-53c700-scsi.diff
(.) IGNORED bugfix/m68k/via-pmu68k-dead-code.diff
(.) IGNORED bugfix/m68k/dmasound_paula.diff
(.) IGNORED bugfix/m68k/disable-mac-broken-config-options.diff
--> 1 fully applied.
(.) IGNORED bugfix/m68k/falconide_intr_lock-reentrant.diff
(.) IGNORED bugfix/m68k/m68k-page.h-needs-compiler.h.diff
(.) IGNORED bugfix/m68k/630-extern-cleanup.diff.1
(.) IGNORED bugfix/m68k/m68k-use-_AC.diff
(.) IGNORED bugfix/m68k/m68k-amiga-z2ram-kill-TRUE-FALSE.diff
(.) IGNORED bugfix/m68k/add-termios2.diff
(.) IGNORED bugfix/m68k/m68k-arbitary-speed-tty-support.diff
(.) IGNORED bugfix/m68k/m68k-do-not-include-RODATA-in-text-segment.diff
(.) IGNORED bugfix/m68k/m68k-53c700-cleanups.diff
(.) IGNORED bugfix/m68k/split-amiga7xx.diff
(.) IGNORED bugfix/m68k/m68k-scsi-Kconfig-hickups.diff
(.) IGNORED bugfix/m68k/zorro_config_attr-read-only.diff
(.) IGNORED bugfix/m68k/zorro-module-device-table.diff
(.) IGNORED bugfix/m68k/falconide_intr_lock-ratelimit.diff
(.) IGNORED bugfix/m68k/debian-2.6.21-2-rom-isa.diff
--> 2 fully applied.
(.) IGNORED features/all/vserver/vs2.2.0.3.patch
(.) IGNORED features/all/vserver/bindmount-dev.patch
--> 4 fully applied.
Patch /usr/src/kernel-patches/all/2.6.22/apply/xen processed fine
echo done > stamp-patch

[...]

greetings,
jonas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG5KI0d6lUs+JfIQIRAuIjAJ9P2c2erU7iR/Tz2sNNe27TcveEPwCgkyhJ
2SVuKORBfYoQ662S6yCnrYs=
=zXXD
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h48.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17404 seconds with 13 queries