WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] domU's kernel compilation

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] domU's kernel compilation
From: JiM <jmfaidy@xxxxxx>
Date: Wed, 13 Jun 2007 17:28:53 +0200
Delivery-date: Wed, 13 Jun 2007 08:27:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.0 (Windows/20070326)
Petersson, Mats a écrit :
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of JiM
Sent: 13 June 2007 15:51
To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] domU's kernel compilation

Hi,
I need to recompile my kernel in the domU in order to try to make work asterisk, so I think that i need to configure my kernel with 1000HZ interuption timer. (I hope it will solve the problem with asterisk who is playing no sound : waiting music or "answering machine"). So i tried to complie my fc6 xen kernel.
Here what i did :
_In the domU_
    - rpmdev-setuptree
    - DL and install kernel-2.6.20-1.2952.fc6.src.rpm
- rpmbuild --target i686 -bp kernel-2.6.spec (had some trouble here, but i had the files in the right folder, so i continued) - in ~/rpmbuild/BUILD/kernel-2.6.20/linux-2.6.20.i686 i did make menuconfig and set Timer frequency to 1000 HZ then make & make install and it worked.
    - cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.20-prep.fc1000
    - cp System.map /boot/System.map-2.6.20-prep.fc1000
    - make modules_install
    - cp .config /boot/config-2.6.20-prep.fc1000
- /sbin/new-kernel-pkg --package kernel --mkinitrd --depmod --install 2.6.20-prep.fc1000

So i reboot under my new kernel, it didnt worked ,  i got :
  /  Going to boot Fedora Core (2.6.20-prep.fc1000)
  kernel: /boot/vmlinuz-2.6.20-prep.fc1000
  initrd: /boot/initrd-2.6.20-prep.fc1000.img
Error: (22, 'Invalid argument')

/So on dom0 i copied config-2.6.20-prep.fc1000 initrd-2.6.20-prep.fc1000.img System.map-2.6.20-prep.fc1000 vmlinuz-2.6.20-prep.fc1000 from the domU.

I suspect that your kernel is a "native" rather than "xenified" kernel,
which would make this sort of problem.
I don't know how FC kernels are distributed, but I suspect you want a
"kernel-<version>.xen.fc6.src.rpm" or some such.
--
Mats



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

Yes, at first I tried with kernel-xen-devel, but it didnt woked, and I didnt find any kernel.X.xen.fc6.src.rpm :(

But (if i well understand) here (http://hany.sk/~hany/RPM/fc-updates-6-i386/kernel-xen-devel-2.6.20-1.2952.fc6.i686.html) i see that kernel-2.6.20-1.2952.fc6.src.rpm <http://hany.sk/mirror/fedora/core/updates/6/SRPMS/kernel-2.6.20-1.2952.fc6.src.rpm> provide kernel-xen-devel-i686 <http://hany.sk/%7Ehany/RPM/kernel-xen-devel-i686.html> so i decided to try with it...

When i tried with kernel-xen-devel i was unable to do the "make"...



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>