Hi, had a few problems with using xen: First: built a xen from source (tgz) and make dist ... then made initrd with mkinitrd and modules=all in the mkinitrd.conf -> initrd.img was 14mb and set it up in the grub with module /initrd.... on boot it loads the initrd like: Loading ramdisk into ram .... done but then NO MODULES in the initrd are being loaded by the kernel, though initrd support is in the kernel, and the kernel states kernel panic (because no sata or raid modules are being loaded). Second: Built a kernel with sata support and everything and make 2.6-xen-build and 2.6-xen-install ---> Dom0 differs from xen on boot ... saved a .config from the kernel , make mrproper, make dist, put .config in kernel path, make dist again... -> xen stated failure in kernel package and asked me to run make mrproper... so is this called stable or what ? Greetz anyway, Amin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
amin escribió:> Hi, had a few problems with using xen: > > > First: > built a xen from source (tgz) and make dist ... then made initrd with > mkinitrd and modules=all in the > mkinitrd.conf -> initrd.img was 14mb and set it up in the grub with > module /initrd.... > > on boot it loads the initrd like: > Loading ramdisk into ram .... done > > but then NO MODULES in the initrd are being loaded by the kernel, > though initrd support is in the kernel, > and the kernel states kernel panic (because no sata or raid modules > are being loaded). > > > > Second: > Built a kernel with sata support and everything and make 2.6-xen-build > and 2.6-xen-install ---> > Dom0 differs from xen on boot ... > saved a .config from the kernel , make mrproper, make dist, put > .config in kernel path, make dist again... > -> xen stated failure in kernel package and asked me to run make > mrproper... > > so is this called stable or what ? > > > Greetz anyway, > Amin > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersFirst of all, if I''m not mistaken mkinitramfs is better than mkinitrd, so try using this one instead. The second error I think it''s related to PAE not being enabled in you custom kernel, so switch it on in: Processor type and features >> MTRR That''s because you have to have PAE enabled in XEN and in you dom0 kernel. Installation is not a piece of cake, so take it easy and with time you''ll sea how good it works. Regards, Miguel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2007-Jun-29 01:20 UTC
Re: [Xen-users] Xen 3.1.0 initrd and kernel building
> built a xen from source (tgz) and make dist ... then made initrd with > mkinitrd and modules=all in the > mkinitrd.conf -> initrd.img was 14mb and set it up in the grub with > module /initrd.... > > on boot it loads the initrd like: > Loading ramdisk into ram .... done > > but then NO MODULES in the initrd are being loaded by the kernel, though > initrd support is in the kernel, > and the kernel states kernel panic (because no sata or raid modules are > being loaded).Whoa, that''s a big initrd. Is Linux successfully mounting the initrd itself? I remember there being something like a 4Meg limit on initrd size (by default). Why build with modules=all? Doesn''t dep do what you want?> Second: > Built a kernel with sata support and everything and make 2.6-xen-build > and 2.6-xen-install ---> > Dom0 differs from xen on boot ... > saved a .config from the kernel , make mrproper, make dist, put .config > in kernel path, make dist again... > -> xen stated failure in kernel package and asked me to run make > mrproper...Sounds like you ended up building a XenLinux that used a different memory mode to Xen itself. Xen builds with PAE enabled so that it can support large memory hosts (> 4gig), but you need XenLinux to support PAE too if it''s going to work. I''m guessing you created this config from scratch, since the default Xen build process will match PAE-ness. Since your config must have had PAE disabled, copying the .config back to the kernel tree will have replicated the same problem :-( Do make menuconfig / xconfig and go to Processor Type and Features. Then in the "High Memory Support" section choose 64GB. This will enable PAE. Rebuild the kernel, (and modules, and initrd) then try that. It should boot...> so is this called stable or what ?It should run reasonably stably, once you get it running ;-) Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2007-Jun-29 01:22 UTC
Re: [Xen-users] Xen 3.1.0 initrd and kernel building
> First of all, if I''m not mistaken mkinitramfs is better than mkinitrd, > so try using this one instead. The second error I think it''s related to > PAE not being enabled in you custom kernel, so switch it on in: > > Processor type and features >> MTRRMTRR? That''s a different config setting, but it shouldn''t matter here. The important setting is the high memory support, which needs to be set to 64GB.> That''s because you have to have PAE enabled in XEN and in you dom0 kernel. > > Installation is not a piece of cake, so take it easy and with time > you''ll sea how good it works.I''m glad it''s working for you :-) Another good way to try Xen out is to install RHEL 5 / CentOS 5, or Fedora, or OpenSuse, or SLES - all these integrate at least some support for Xen out of the box. If you want a livecd you could try VMKNOPPIX (this also demonstrates other virtualisers, all on a KNOPPIX-based livecd). Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson escribió:>> First of all, if I''m not mistaken mkinitramfs is better than mkinitrd, >> so try using this one instead. The second error I think it''s related to >> PAE not being enabled in you custom kernel, so switch it on in: >> >> Processor type and features >> MTRR >> > > MTRR? That''s a different config setting, but it shouldn''t matter here. The > important setting is the high memory support, which needs to be set to 64GB. > >I didn''t know what I was thinking, that was quite a slip-up. I meant to say "High Memory Support".> >> That''s because you have to have PAE enabled in XEN and in you dom0 kernel. >> >> Installation is not a piece of cake, so take it easy and with time >> you''ll sea how good it works. >> > > I''m glad it''s working for you :-) >Thanks> Another good way to try Xen out is to install RHEL 5 / CentOS 5, or Fedora, or > OpenSuse, or SLES - all these integrate at least some support for Xen out of > the box. If you want a livecd you could try VMKNOPPIX (this also > demonstrates other virtualisers, all on a KNOPPIX-based livecd). > > Cheers, > Mark > >You can get XEN 3.0 out of the box in Ubuntu 7.04, and If I''m not mistaken Ubuntu 7.10 will support xen 3.1. Regards, Miguel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2007-Jun-29 09:51 UTC
Re: [Xen-users] Xen 3.1.0 initrd and kernel building
Miguel Araujo wrote:> Nico Kadel-Garcia escribió: >> Jordi Espasa Clofent wrote: >>> Hi all, >>> >>> Sorry in advance for this dummy question, but I don''t found any doc >>> about. >>> >>> ¿Can I rename the domU? ¿Why? >>> >> Yes. Shut it down, edit your configuration files, and restart it. > And isn''t it possible to do it on the air (without shutting down > anything)?Ahh. That''s more clear. It''s certainly not something I''ve ever looked into: That seems awkward and dangerous, like changing the name of your MySQL databases on the fly. Why would you want to? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petersson, Mats
2007-Jun-29 10:01 UTC
RE: [Xen-users] Xen 3.1.0 initrd and kernel building
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Nico Kadel-Garcia > Sent: 29 June 2007 10:52 > To: Miguel Araujo > Cc: amin; Mark Williamson; xen-users@lists.xensource.com > Subject: Re: [Xen-users] Xen 3.1.0 initrd and kernel building > > Miguel Araujo wrote: > > Nico Kadel-Garcia escribió: > >> Jordi Espasa Clofent wrote: > >>> Hi all, > >>> > >>> Sorry in advance for this dummy question, but I don''t > found any doc > >>> about. > >>> > >>> ¿Can I rename the domU? ¿Why? > >>> > >> Yes. Shut it down, edit your configuration files, and restart it. > > And isn''t it possible to do it on the air (without shutting down > > anything)? > Ahh. That''s more clear. It''s certainly not something I''ve ever looked > into: That seems awkward and dangerous, like changing the > name of your > MySQL databases on the fly. > > Why would you want to?That''s a good question, but should have an urge to rename a domain, there is the comment "xm rename" - I didn''t try it, but I assume it works, as I presume it uses the same python-code that renames the domain during save/restore/migrate. I guess one reason might be if you are replacing a service of some sort with a new VM, and you want to start the new one before you stop the old one. If you combine that with a script that tracks a certain name or some such, I guess you''d want to do something like: # xm create my-new-service.cfg # ... Wait some time ... # xm shutdown service.cfg # xm rename my-new-service service -- Mats _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
So back to the root... finally got it running with modules compiled in kernel.>> built a xen from source (tgz) and make dist ... then made initrd with >> mkinitrd and modules=all in the >> mkinitrd.conf -> initrd.img was 14mb and set it up in the grub with >> module /initrd.... >> >> on boot it loads the initrd like: >> Loading ramdisk into ram .... done >> >> but then NO MODULES in the initrd are being loaded by the kernel, though >> initrd support is in the kernel, >> and the kernel states kernel panic (because no sata or raid modules are >> being loaded). >> > > Whoa, that''s a big initrd. Is Linux successfully mounting the initrd itself? > I remember there being something like a 4Meg limit on initrd size (by > default). > > Why build with modules=all? Doesn''t dep do what you want? > >Didn''t know which modules should be there so i took all to test... But the thing is , when you do it like its described at the README, it loads the initrd , but doesn''t start loading the modules like sd_mod etc. with all modules compiled in kernel it work. why isn''t stated mkinitramfs in the README ? now have a compiled kernel and couldn''t test it anymore... anybody else had the problems or am i the only one with that ? (reinstalled the whole machine twice, but never got a running initrd) loads... but doesn''t start modules...>> Second: >> Built a kernel with sata support and everything and make 2.6-xen-build >> and 2.6-xen-install ---> >> Dom0 differs from xen on boot ... >> saved a .config from the kernel , make mrproper, make dist, put .config >> in kernel path, make dist again... >> -> xen stated failure in kernel package and asked me to run make >> mrproper... >> > > Sounds like you ended up building a XenLinux that used a different memory mode > to Xen itself. Xen builds with PAE enabled so that it can support large > memory hosts (> 4gig), but you need XenLinux to support PAE too if it''s going > to work. I''m guessing you created this config from scratch, since the > default Xen build process will match PAE-ness. > > Since your config must have had PAE disabled, copying the .config back to the > kernel tree will have replicated the same problem :-( Do make menuconfig / > xconfig and go to Processor Type and Features. Then in the "High Memory > Support" section choose 64GB. This will enable PAE. Rebuild the kernel, > (and modules, and initrd) then try that. It should boot... > >Yes , there could be a nice hint on that like no 64gb support stopping... but no, make mrproper to solve that... :D>> so is this called stable or what ? >> > > It should run reasonably stably, once you get it running ;-) > > Cheers, > Mark > >Thanks for all the answers, now i got a fresh xen 3.1.0 ;) Greetz, Amin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users