Hi Guys. I am trying to build xen 3.1 + linux dom0 and linux domU from source with linux 2.6.18.8 as linux kernel. I do the following steps, which seem logical to me (because that is how things worked for me with Xen 3.0.4) 1. extract 3.1 source tarball 2. edit buildconfigs/mk.linux-2.6-xen to reflect chanage in kernel version to 2.6.18.8. 3. run ''make linux-2.6-xen0-config config=menuconfig'' 4. run ''make dist KERNELS="linux-2.6-xen0" and instead of a clan build, I end up with this error: /usr/src/xen-3.1.0-src/linux-2.6.18.8-xen/arch/i386/kernel/head-xen.S:4:27: error: linux/elfnote.h: No such file or directory make[6]: *** [arch/i386/kernel/head-xen.o] Error 1 make[5]: *** [arch/i386/kernel] Error 2 make[4]: *** [vmlinuz] Error 2 make[3]: *** [vmlinuz] Error 2 make[3]: Leaving directory `/usr/src/xen-3.1.0-src/build-linux-2.6.18.8-xen_x86_32'' make[2]: *** [build] Error 2 make[2]: Leaving directory `/usr/src/xen-3.1.0-src'' make[1]: *** [linux-2.6-xen-install] Error 2 make[1]: Leaving directory `/usr/src/xen-3.1.0-src'' make: *** [install-kernels] Error 1 Can someone tell me: a) if there is a limit as to which 2.6.18.x kernels I can build? b) HOW the build process changed form the one in Xen 3.0.x? c) what are the dependencies for building Xen 3.1 from source? d) is there is a documented build from source process and if so where? NOTE: the link on xen.org howto section to a page entitled "The Perfect Xen 3.1.0 Setup For Debian Etch (i386)" seems of no use. The process detailed in there produces the same error. ANY help is welcome Tomasz -- GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 GPG public key availabe on pgp.mit .edu keyserver _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Riccardo Veraldi
2008-Jan-19 09:10 UTC
Re: [Xen-users] how to build xen + dom0 and domU from source?
it won''t work. it will work straight for kernel 2.6.18. But for any other kernels 2.6.18.X it won''t work. Otherwise you need specific patches to be applied but they are not present in hte default xen 3.1.0 sources. I can provide you a src rpm with all te patches needed to compile Xen 3.1.2 under the latest RHEL5 kernel 2.6.18-53.1.4 Rick TMC wrote:> Hi Guys. > > I am trying to build xen 3.1 + linux dom0 and linux domU from source > with linux 2.6.18.8 as linux kernel. > > I do the following steps, which seem logical to me (because that is > how things worked for me with Xen 3.0.4) > > 1. extract 3.1 source tarball > > 2. edit buildconfigs/mk.linux-2.6-xen to reflect chanage in kernel > version to 2.6.18.8. > > 3. run ''make linux-2.6-xen0-config config=menuconfig'' > > 4. run ''make dist KERNELS="linux-2.6-xen0" and instead of a clan > build, I end up with this error: > > /usr/src/xen-3.1.0-src/linux-2.6.18.8-xen/arch/i386/kernel/head-xen.S:4:27: > error: linux/elfnote.h: No such file or directory > make[6]: *** [arch/i386/kernel/head-xen.o] Error 1 > make[5]: *** [arch/i386/kernel] Error 2 > make[4]: *** [vmlinuz] Error 2 > make[3]: *** [vmlinuz] Error 2 > make[3]: Leaving directory > `/usr/src/xen-3.1.0-src/build-linux-2.6.18.8-xen_x86_32'' > make[2]: *** [build] Error 2 > make[2]: Leaving directory `/usr/src/xen-3.1.0-src'' > make[1]: *** [linux-2.6-xen-install] Error 2 > make[1]: Leaving directory `/usr/src/xen-3.1.0-src'' > make: *** [install-kernels] Error 1 > > Can someone tell me: > > a) if there is a limit as to which 2.6.18.x kernels I can build? > > b) HOW the build process changed form the one in Xen 3.0.x? > > c) what are the dependencies for building Xen 3.1 from source? > > d) is there is a documented build from source process and if so where? > > NOTE: the link on xen.org howto section to a page entitled "The > Perfect Xen 3.1.0 Setup For Debian Etch (i386)" seems of no use. The > process detailed in there produces the same error. > > ANY help is welcome > > Tomasz > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rick, many thanks for that offer, but I have a Debian based systems, so it might be some work to get the patches right. I will, try the straight 2.6.18 kernel and work my way up until I hit highest version that actually builds. Is there a source of the patches you speak of somewhere? and where can I get xen 3.1.2 sources? On 19/01/2008, Riccardo Veraldi <Riccardo.Veraldi@cnaf.infn.it> wrote:> it won''t work. > it will work straight for kernel 2.6.18. > But for any other kernels 2.6.18.X it won''t work. > Otherwise you need specific patches to be applied but they are not > present in hte default > xen 3.1.0 sources. > I can provide you a src rpm with all te patches needed to compile Xen 3.1.2 > under the latest RHEL5 kernel 2.6.18-53.1.4 > > Rickregards Tomasz -- GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 GPG public key availabe on pgp.mit .edu keyserver _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Emre Erenoglu
2008-Jan-19 14:49 UTC
Re: [Xen-users] how to build xen + dom0 and domU from source?
Hi, Just install mercurial. then, hg clone the testing repo or download the source tarball (if you find it). Then, go inside this folder and: make world make install Make world builds xen and dom0 kernel. You can then use this to boot to xen hypervisor and kernel. You can also use this kernel for your domUs. Emre On Jan 19, 2008 10:17 AM, TMC <tmciolek@gmail.com> wrote:> Rick, > > many thanks for that offer, but I have a Debian based systems, so it > might be some work to get the patches right. > > I will, try the straight 2.6.18 kernel and work my way up until I hit > highest version that actually builds. > > Is there a source of the patches you speak of somewhere? > and where can I get xen 3.1.2 sources? > > On 19/01/2008, Riccardo Veraldi <Riccardo.Veraldi@cnaf.infn.it> wrote: > > it won''t work. > > it will work straight for kernel 2.6.18. > > But for any other kernels 2.6.18.X it won''t work. > > Otherwise you need specific patches to be applied but they are not > > present in hte default > > xen 3.1.0 sources. > > I can provide you a src rpm with all te patches needed to compile Xen > 3.1.2 > > under the latest RHEL5 kernel 2.6.18-53.1.4 > > > > Rick > > regards > Tomasz > > -- > GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 > GPG public key availabe on pgp.mit .edu keyserver > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Emre Erenoglu erenoglu@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Emre I want to build separate xen0 and xenU linux kernels. Tomasz On 20/01/2008, Emre Erenoglu <erenoglu@gmail.com> wrote:> Hi, > > Just install mercurial. then, hg clone the testing repo or download the > source tarball (if you find it). Then, go inside this folder and: > make world > make install > > Make world builds xen and dom0 kernel. You can then use this to boot to xen > hypervisor and kernel. You can also use this kernel for your domUs. > > Emre > > > On Jan 19, 2008 10:17 AM, TMC <tmciolek@gmail.com> wrote: > > > > Rick, > > > > many thanks for that offer, but I have a Debian based systems, so it > > might be some work to get the patches right. > > > > I will, try the straight 2.6.18 kernel and work my way up until I hit > > highest version that actually builds. > > > > Is there a source of the patches you speak of somewhere? > > and where can I get xen 3.1.2 sources? > > > > > > On 19/01/2008, Riccardo Veraldi <Riccardo.Veraldi@cnaf.infn.it > wrote: > > > it won''t work. > > > it will work straight for kernel 2.6.18. > > > But for any other kernels 2.6.18.X it won''t work. > > > Otherwise you need specific patches to be applied but they are not > > > present in hte default > > > xen 3.1.0 sources. > > > I can provide you a src rpm with all te patches needed to compile Xen > 3.1.2 > > > under the latest RHEL5 kernel 2.6.18-53.1.4 > > > > > > Rick > > > > regards > > > > > > Tomasz > > > > -- > > GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 > > GPG public key availabe on pgp.mit .edu keyserver > > > > _______________________________________________ > > > > > > > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > -- > Emre Erenoglu > erenoglu@gmail.com-- GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 GPG public key availabe on pgp.mit .edu keyserver _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Emre Erenoglu
2008-Jan-19 23:18 UTC
Re: [Xen-users] how to build xen + dom0 and domU from source?
Then after downloading the source code from mercurial repo, read the readme file on how to do that... When I read, it mentions this: To make these two kernels, simply specify KERNELS="linux-2.6-xen0 linux-2.6-xenU" in the make command line. Good luck! Emre On Jan 19, 2008 10:16 PM, TMC <tmciolek@gmail.com> wrote:> Emre > > I want to build separate xen0 and xenU linux kernels. > > Tomasz > > On 20/01/2008, Emre Erenoglu <erenoglu@gmail.com> wrote: > > Hi, > > > > Just install mercurial. then, hg clone the testing repo or download the > > source tarball (if you find it). Then, go inside this folder and: > > make world > > make install > > > > Make world builds xen and dom0 kernel. You can then use this to boot to > xen > > hypervisor and kernel. You can also use this kernel for your domUs. > > > > Emre > > > > > > On Jan 19, 2008 10:17 AM, TMC <tmciolek@gmail.com> wrote: > > > > > > Rick, > > > > > > many thanks for that offer, but I have a Debian based systems, so it > > > might be some work to get the patches right. > > > > > > I will, try the straight 2.6.18 kernel and work my way up until I hit > > > highest version that actually builds. > > > > > > Is there a source of the patches you speak of somewhere? > > > and where can I get xen 3.1.2 sources? > > > > > > > > > On 19/01/2008, Riccardo Veraldi <Riccardo.Veraldi@cnaf.infn.it > > wrote: > > > > it won''t work. > > > > it will work straight for kernel 2.6.18. > > > > But for any other kernels 2.6.18.X it won''t work. > > > > Otherwise you need specific patches to be applied but they are not > > > > present in hte default > > > > xen 3.1.0 sources. > > > > I can provide you a src rpm with all te patches needed to compile > Xen > > 3.1.2 > > > > under the latest RHEL5 kernel 2.6.18-53.1.4 > > > > > > > > Rick > > > > > > regards > > > > > > > > > Tomasz > > > > > > -- > > > GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 > C2F0 > > > GPG public key availabe on pgp.mit .edu keyserver > > > > > > _______________________________________________ > > > > > > > > > > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > > > > > > > -- > > Emre Erenoglu > > erenoglu@gmail.com > > > -- > GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 > GPG public key availabe on pgp.mit .edu keyserver >-- Emre Erenoglu erenoglu@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
OK. how do I configure the kernels? I only want the dom0 to have drivesr for the hardware I have and not any more. Given I have tired the methods described in the README and it does not work... what do I do? Tomasz On 20/01/2008, Emre Erenoglu <erenoglu@gmail.com> wrote:> Then after downloading the source code from mercurial repo, read the readme > file on how to do that... When I read, it mentions this: > > To make these two kernels, simply specify > > KERNELS="linux-2.6-xen0 linux-2.6-xenU" > > in the make command line. > > Good luck! > > Emre > > > On Jan 19, 2008 10:16 PM, TMC < tmciolek@gmail.com> wrote: > > Emre > > > > I want to build separate xen0 and xenU linux kernels. > > > > Tomasz > > > > > > > > > > On 20/01/2008, Emre Erenoglu <erenoglu@gmail.com> wrote: > > > Hi, > > > > > > Just install mercurial. then, hg clone the testing repo or download the > > > source tarball (if you find it). Then, go inside this folder and: > > > make world > > > make install > > > > > > Make world builds xen and dom0 kernel. You can then use this to boot to > xen > > > hypervisor and kernel. You can also use this kernel for your domUs. > > > > > > Emre > > > > > > > > > On Jan 19, 2008 10:17 AM, TMC <tmciolek@gmail.com> wrote: > > > > > > > > Rick, > > > > > > > > many thanks for that offer, but I have a Debian based systems, so it > > > > might be some work to get the patches right. > > > > > > > > I will, try the straight 2.6.18 kernel and work my way up until I hit > > > > highest version that actually builds. > > > > > > > > Is there a source of the patches you speak of somewhere? > > > > and where can I get xen 3.1.2 sources? > > > > > > > > > > > > On 19/01/2008, Riccardo Veraldi < Riccardo.Veraldi@cnaf.infn.it > > wrote: > > > > > it won''t work. > > > > > it will work straight for kernel 2.6.18. > > > > > But for any other kernels 2.6.18.X it won''t work. > > > > > Otherwise you need specific patches to be applied but they are not > > > > > present in hte default > > > > > xen 3.1.0 sources. > > > > > I can provide you a src rpm with all te patches needed to compile > Xen > > > 3.1.2 > > > > > under the latest RHEL5 kernel 2.6.18-53.1.4 > > > > > > > > > > Rick > > > > > > > > regards > > > > > > > > > > > > Tomasz > > > > > > > > -- > > > > GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 > C2F0 > > > > GPG public key availabe on pgp.mit .edu keyserver > > > > > > > > _______________________________________________ > > > > > > > > > > > > > > > > Xen-users mailing list > > > > Xen-users@lists.xensource.com > > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > -- > > > Emre Erenoglu > > > erenoglu@gmail.com > > > > > > -- > > > > > > > > GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 > > GPG public key availabe on pgp.mit .edu keyserver > > > > > > -- > > Emre Erenoglu > erenoglu@gmail.com-- GPG key fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 GPG public key availabe on pgp.mit .edu keyserver _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2008-Jan-20 15:39 UTC
Re: [Xen-users] how to build xen + dom0 and domU from source?
TMC wrote:> OK. > > how do I configure the kernels? > > I only want the dom0 to have drivesr for the hardware I have and not any more. > > Given I have tired the methods described in the README and it does not > work... what do I do? > > Tomasz > > OWell, it can be difficult to figure out exasctly what drivers are for "the hardware I have". Which driver supports your ethernet chipset, raid controllers, and graphics cards can be nightmarish to figure out, even for an expert, and change very quickly when you add USB components. Can you start with the default kernel and its configuration file, and scale back from there to the drivers you really need? Or acn you build and install the Xen default kernel for your distribution, simply rename it, and boot tat? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users