Hello. Up to version 3.0.4, I did the following to get two xen kernels (dom0 and domU) with my own config: wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/... make xen make tools make docs make linux-2.6-xen0-config CONFIGMODE=menuconfig make linux-2.6-xen0-build make linux-2.6-xen0-install make linux-2.6-xen0-dist make linux-2.6-xenU-config CONFIGMODE=menuconfig make linux-2.6-xenU-build make linux-2.6-xenU-install make linux-2.6-xenU-dist make KERNELS="linux-2.6-xen0 linux-2.6-xenU" dist cd dist/ tar czvf ../../server02/xen.tgz . (Usually I loaded an old/alternative config and just changed a few options.) However, this does not work any more for Xen 3.1. All the steps themselfes work, however I always end up with kernels that have the default-xen-config. (That has a lot of things I don''t need, but not my disk drivers.) I also recognize that build-linux-2.6.18-xen0_x86_32/.config is never changed to my configuration. Where should it be stored? As I have complete configs (stored them via "safe to alternative location"), is there a way to simply build the two kernels using the two config files I have? BTW, I usually installed the tgz created above, by copying it to my dom0s, unpacking them, running ./install.sh and copying /lib/modules/*domU* to the domUs. (As the kernel is loaded from dom0, I do not copy them.) Is there anything else I should do? Removing old files? Which? Something after copying the modules? (I only have a few modules, most is build into the kernel.) Regards, Steffen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Fanning
2007-Jun-06 11:58 UTC
Re: [Xen-users] Building XEN with different config PROBLEM
Hi Stefen, I have the same problem. Did you solve this question? Thanks. Chris. On 5/29/07, Steffen Heil <lists@steffen-heil.de> wrote:> Hello. > > Up to version 3.0.4, I did the following to get two xen kernels (dom0 and > domU) with my own config: > > wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/... > make xen > make tools > make docs > make linux-2.6-xen0-config CONFIGMODE=menuconfig > make linux-2.6-xen0-build > make linux-2.6-xen0-install > make linux-2.6-xen0-dist > make linux-2.6-xenU-config CONFIGMODE=menuconfig > make linux-2.6-xenU-build > make linux-2.6-xenU-install > make linux-2.6-xenU-dist > make KERNELS="linux-2.6-xen0 linux-2.6-xenU" dist > cd dist/ > tar czvf ../../server02/xen.tgz . > > (Usually I loaded an old/alternative config and just changed a few options.) > > However, this does not work any more for Xen 3.1. > All the steps themselfes work, however I always end up with kernels that > have the default-xen-config. (That has a lot of things I don''t need, but not > my disk drivers.) > > I also recognize that build-linux-2.6.18-xen0_x86_32/.config is never > changed to my configuration. > Where should it be stored? > > As I have complete configs (stored them via "safe to alternative location"), > is there a way to simply build the two kernels using the two config files I > have? > > > BTW, I usually installed the tgz created above, by copying it to my dom0s, > unpacking them, running ./install.sh and copying /lib/modules/*domU* to the > domUs. (As the kernel is loaded from dom0, I do not copy them.) Is there > anything else I should do? Removing old files? Which? Something after > copying the modules? (I only have a few modules, most is build into the > kernel.) > > Regards, > Steffen > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steffen Heil
2007-Jun-06 13:08 UTC
RE: [Xen-users] Building XEN with different config PROBLEM
Hi> I have the same problem. > Did you solve this question?Yes. More hacking than really solving, but it works. I now use the following script: rm -rf xen-3.1.0-src tar xzf xen-3.1.0-src.tgz cd xen-3.1.0-src mkdir -p dist/install/boot cp ../config/$1/xen0 dist/install/boot/config-2.6.18-xen0 cp ../config/$1/xenU dist/install/boot/config-2.6.18-xenU make KERNELS="linux-2.6-xen0 linux-2.6-xenU" dist cd dist/ tar czf ../../dist/$1-xen3.1.tgz . cd ../.. rm -rf xen-3.1.0-src The only downside is, that the configuration of the created kernels slightly differs from my given configs: xen0: 162,163c162,163 < # CONFIG_HIGHMEM4G is not set < CONFIG_HIGHMEM64G=y ---> CONFIG_HIGHMEM4G=y > # CONFIG_HIGHMEM64G is not set166d165 < CONFIG_X86_PAE=y 843a843,844 xenU: < # CONFIG_HIGHMEM4G is not set < CONFIG_HIGHMEM64G=y ---> CONFIG_HIGHMEM4G=y > # CONFIG_HIGHMEM64G is not set158c158,160 < CONFIG_X86_PAE=y ---> # CONFIG_FLATMEM_MANUAL is not set > # CONFIG_DISCONTIGMEM_MANUAL is not set > # CONFIG_SPARSEMEM_MANUAL is not set163c165 < CONFIG_RESOURCES_64BIT=y ---> # CONFIG_RESOURCES_64BIT is not setSo actually, the build process forces HIGHMEM64G and CONFIG_X86_PAE and in domU also RESOURCES_64BIT. I don''t know why. However those kernels work fine on my systems. If someone knows, please let me know. Regards, Steffen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Fanning
2007-Jun-06 13:16 UTC
Re: [Xen-users] Building XEN with different config PROBLEM
Hi,> More hacking than really solving, but it works. I now use the following > script:Thanks very much, I''ll try it. Installing Xen just got a little bit more complicated :( But, doesn''t this seem a strange? You know, isn''t configuring the kernel a normal thing to expect people to do? I''d really like to know if this is an oversight on the part of the developers or if they have instead crafted some other mecanism. Chris. On 6/6/07, Steffen Heil <lists@steffen-heil.de> wrote:> Hi > > > I have the same problem. > > Did you solve this question? > > Yes. > > More hacking than really solving, but it works. I now use the following > script: > > rm -rf xen-3.1.0-src > tar xzf xen-3.1.0-src.tgz > cd xen-3.1.0-src > mkdir -p dist/install/boot > cp ../config/$1/xen0 dist/install/boot/config-2.6.18-xen0 > cp ../config/$1/xenU dist/install/boot/config-2.6.18-xenU > make KERNELS="linux-2.6-xen0 linux-2.6-xenU" dist > cd dist/ > tar czf ../../dist/$1-xen3.1.tgz . > cd ../.. > rm -rf xen-3.1.0-src > > > The only downside is, that the configuration of the created kernels slightly > differs from my given configs: > > xen0: > 162,163c162,163 > < # CONFIG_HIGHMEM4G is not set > < CONFIG_HIGHMEM64G=y > --- > > CONFIG_HIGHMEM4G=y > > # CONFIG_HIGHMEM64G is not set > 166d165 > < CONFIG_X86_PAE=y > 843a843,844 > > xenU: > < # CONFIG_HIGHMEM4G is not set > < CONFIG_HIGHMEM64G=y > --- > > CONFIG_HIGHMEM4G=y > > # CONFIG_HIGHMEM64G is not set > 158c158,160 > < CONFIG_X86_PAE=y > --- > > # CONFIG_FLATMEM_MANUAL is not set > > # CONFIG_DISCONTIGMEM_MANUAL is not set > > # CONFIG_SPARSEMEM_MANUAL is not set > 163c165 > < CONFIG_RESOURCES_64BIT=y > --- > > # CONFIG_RESOURCES_64BIT is not set > > So actually, the build process forces HIGHMEM64G and CONFIG_X86_PAE and in > domU also RESOURCES_64BIT. > I don''t know why. However those kernels work fine on my systems. > > If someone knows, please let me know. > > Regards, > Steffen > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Philip Steeman
2007-Jun-06 19:26 UTC
Re: [Xen-users] Building XEN with different config PROBLEM
Hi, I think the following also works: tar xzf xen-3.1.0.tar.tgz cd xen-3.1.0-src cd build-linux-2.6.18-xen0_x86_32 make menuconfig cd .. make linux-2.6-xen0-build ---> vmlinuz cd build-linux.2.6.18-xenU_x86_32 make menuconfig cd .. make linux-2.6-xenU-build ---> vmlinuz Philip Chris Fanning schreef:> Hi, > >> More hacking than really solving, but it works. I now use the following >> script: > > Thanks very much, I''ll try it. Installing Xen just got a little bit > more complicated :( > > But, doesn''t this seem a strange? > You know, isn''t configuring the kernel a normal thing to expect people > to do? > > I''d really like to know if this is an oversight on the part of the > developers or if they have instead crafted some other mecanism. > > Chris. > > On 6/6/07, Steffen Heil <lists@steffen-heil.de> wrote: >> Hi >> >> > I have the same problem. >> > Did you solve this question? >> >> Yes. >> >> More hacking than really solving, but it works. I now use the following >> script: >> >> rm -rf xen-3.1.0-src >> tar xzf xen-3.1.0-src.tgz >> cd xen-3.1.0-src >> mkdir -p dist/install/boot >> cp ../config/$1/xen0 dist/install/boot/config-2.6.18-xen0 >> cp ../config/$1/xenU dist/install/boot/config-2.6.18-xenU >> make KERNELS="linux-2.6-xen0 linux-2.6-xenU" dist >> cd dist/ >> tar czf ../../dist/$1-xen3.1.tgz . >> cd ../.. >> rm -rf xen-3.1.0-src >> >> >> The only downside is, that the configuration of the created kernels >> slightly >> differs from my given configs: >> >> xen0: >> 162,163c162,163 >> < # CONFIG_HIGHMEM4G is not set >> < CONFIG_HIGHMEM64G=y >> --- >> > CONFIG_HIGHMEM4G=y >> > # CONFIG_HIGHMEM64G is not set >> 166d165 >> < CONFIG_X86_PAE=y >> 843a843,844 >> >> xenU: >> < # CONFIG_HIGHMEM4G is not set >> < CONFIG_HIGHMEM64G=y >> --- >> > CONFIG_HIGHMEM4G=y >> > # CONFIG_HIGHMEM64G is not set >> 158c158,160 >> < CONFIG_X86_PAE=y >> --- >> > # CONFIG_FLATMEM_MANUAL is not set >> > # CONFIG_DISCONTIGMEM_MANUAL is not set >> > # CONFIG_SPARSEMEM_MANUAL is not set >> 163c165 >> < CONFIG_RESOURCES_64BIT=y >> --- >> > # CONFIG_RESOURCES_64BIT is not set >> >> So actually, the build process forces HIGHMEM64G and CONFIG_X86_PAE >> and in >> domU also RESOURCES_64BIT. >> I don''t know why. However those kernels work fine on my systems. >> >> If someone knows, please let me know. >> >> Regards, >> Steffen >> >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steffen Heil
2007-Jun-07 12:23 UTC
RE: [Xen-users] Building XEN with different config PROBLEM
Hi> tar xzf xen-3.1.0.tar.tgz > cd xen-3.1.0-src > cd build-linux-2.6.18-xen0_x86_32 > make menuconfig > cd .. > make linux-2.6-xen0-buildI didn''t try that. However the following does NOT work: tar xzf xen-3.1.0.tar.tgz cd xen-3.1.0-src make linux-2.6-xen0-config mode=menuconfig make linux-2.6-xen0-build Even though, it DOES open configuration - just doesn''t store anywhere... Regards, Steffen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Fanning
2007-Jun-07 14:27 UTC
Re: [Xen-users] Building XEN with different config PROBLEM
Hi Steffen, rm -rf xen-3.1.0-src tar xzf xen-3.1.0-src.tgz cd xen-3.1.0-src mkdir -p dist/install/boot cp ../config/$1/xen0 dist/install/boot/config-2.6.18-xen0 cp ../config/$1/xenU dist/install/boot/config-2.6.18-xenU make KERNELS="linux-2.6-xen0 linux-2.6-xenU" dist cd dist/ tar czf ../../dist/$1-xen3.1.tgz . cd ../.. rm -rf xen-3.1.0-src I''ve tried your script with a bogus config and got used. :) !> tar xzf xen-3.1.0.tar.tgz > cd xen-3.1.0-src > cd build-linux-2.6.18-xen0_x86_32 > make menuconfig > cd .. > make linux-2.6-xen0-buildthis didn''t work Philip. A couple of doubts. tar czf ../../dist/$1-xen3.1.tgz . creates a file in /usr/src/dist the ./install.sh will install on my local machine, right? But, how can I patch the kernel (at a later date) and install the changes? I used to do make linux-2.6-xen-config CONFIGMODE=menuconfig make linux-2.6-xen-build make linux-2.6-xen-install :( What do you think the proceedure is now? In your script you finish with a rm -rf xen-3.1.0-src If I want to patch a against the source tree I must keep the xen-3.1.0-src directory and then do cd /usr/src/xen-3.1.0-src/linux-2.6.18-xen patch -p1 < patch.file Now I must change your script like this? make KERNELS="linux-2.6-xen0 linux-2.6-xenU" build make KERNELS="linux-2.6-xen0 linux-2.6-xenU" install Does that sound right? Thanks once again, Chris. On 6/7/07, Steffen Heil <lists@steffen-heil.de> wrote:> Hi > > > tar xzf xen-3.1.0.tar.tgz > > cd xen-3.1.0-src > > cd build-linux-2.6.18-xen0_x86_32 > > make menuconfig > > cd .. > > make linux-2.6-xen0-build > > I didn''t try that. > However the following does NOT work: > > tar xzf xen-3.1.0.tar.tgz > cd xen-3.1.0-src > make linux-2.6-xen0-config mode=menuconfig > make linux-2.6-xen0-build > > Even though, it DOES open configuration - just doesn''t store anywhere... > > Regards, > Steffen > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steffen Heil
2007-Jun-07 15:17 UTC
RE: [Xen-users] Building XEN with different config PROBLEM
Hi> tar czf ../../dist/$1-xen3.1.tgz . > creates a file in /usr/src/dist > the ./install.sh will install on my local machine, right?Yes. I transfer this $1-xen3.1.tgz files to differnet machines, extract them and then do ./install.sh. Each having it''s own config folder used in the earlier lines.> But, how can I patch the kernel (at a later date) and install > the changes?I don''t know. I am not patching my kernels. However if you just remove the rm -rf at the end, you should be able to do so. There is no magic in that script. Except the knowledge, where to put the old configs...> In your script you finish with a > rm -rf xen-3.1.0-srcThis is because I am building a range of kernels in a row and I prefer to have clean directories. That machine is dedicated for compiling, so I don''t care if it takes 30 minutes or one hour.> Does that sound right?Some sound reasonable, some I don''t know. I am only a beginner for self compiled kernels... As for creating different configs: I also have one directory (also extracted from source), where I do make linux-2.6-xen0-config mode=menuconfig and make linux-2.6-xenU-config mode=menuconfig Loading my old configs as alternative configs and storing them at alternative locations. (My per-target config folder.) Regards, Steffen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Fanning
2007-Jun-07 16:23 UTC
Re: [Xen-users] Building XEN with different config PROBLEM
After using your script the kernel compiled my options and I have booted xen3.1 I didn''t delete /usr/src/xen-3.1.0-src Now if I do cd /usr/src/xen-3.1.0-src make linux-2.6-xen0-config CONFIGMODE=menuconfig It reads the config I saved first time round So I add a module or something and do make linux-2.6-xen0-build All is good. So it seems the part that doesn''t work as expected is the first time config and compile. but running /usr/src/steffen.sh is a work around. Thanks. Chris. On 6/7/07, Steffen Heil <lists@steffen-heil.de> wrote:> Hi > > > tar czf ../../dist/$1-xen3.1.tgz . > > creates a file in /usr/src/dist > > the ./install.sh will install on my local machine, right? > > Yes. I transfer this $1-xen3.1.tgz files to differnet machines, extract them > and then do ./install.sh. > Each having it''s own config folder used in the earlier lines. > > > But, how can I patch the kernel (at a later date) and install > > the changes? > > I don''t know. I am not patching my kernels. > However if you just remove the rm -rf at the end, you should be able to do > so. > > There is no magic in that script. > Except the knowledge, where to put the old configs... > > > In your script you finish with a > > rm -rf xen-3.1.0-src > > This is because I am building a range of kernels in a row and I prefer to > have clean directories. > That machine is dedicated for compiling, so I don''t care if it takes 30 > minutes or one hour. > > > Does that sound right? > > Some sound reasonable, some I don''t know. I am only a beginner for self > compiled kernels... > > As for creating different configs: I also have one directory (also extracted > from source), where I do > make linux-2.6-xen0-config mode=menuconfig > and > make linux-2.6-xenU-config mode=menuconfig > Loading my old configs as alternative configs and storing them at > alternative locations. (My per-target config folder.) > > Regards, > Steffen > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users