I want to install Xen 3.3.0 from source code. but I failed in doing that in the following steps 1. download xen from http://bits.xensource.com/oss-xen/release/3.3.0/xen-3.3.0.tar.gz 2. # tar -zxf xen-3.3.0;cd xen-3.3.0 3. # make world ......succeed 4. # cp /boot/config-2.6.18-53.el5 build-linux-2.6.18-xen_x86_64/.config 5. # make linux-2.6-xen-config CONFIGMODE=menuconfig (or xconfig) # make linux-2.6-xen-build # make linux-2.6-xen-install 6. # depmod 2.6.18.8-xen # mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod --builtin=ata_piix initrd-2.6.18.8-xen.img 2.6.18.8-xen # cp initrd-2.6.18.8-xen.img /boot/ 7. configure grub: default=0timeout=10splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle xen-dom0 kernel /xen.gz dom0_mem=2097152 module /vmlinuz-2.6.18.8-xen ro root=LABEL=/ rhgb quiet crashkernel=128M@16M module /initrd-2.6.18.8-xen.imgtitle Red Hat Enterprise Linux Server (2.6.18-53.el5) root (hd0,0) kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet crashkernel=128M@16M initrd /initrd-2.6.18-53.el5.img8. reboot and wait... it says: ... scsi_mod: version magic ''2.6.18.8-xen SMP mod_unload gcc-4.1'' should be ''2.6.18.8-xen SMP mod_unload Xen gcc-4.1''....................... insmod: error inserting ''/lib/scsi_mod.ko'' -1 Invalid module format sd_mod: version magic ''2.6.18.8-xen SMP mod_unload gcc-4.1'' should be ''2.6.18.8-xen SMP mod_unload Xen gcc-4.1'' warnings insmod: error inserting ''/lib/sd_mod.ko'' -1 Invalid module format ... Kernel panic - not syncing: Attempted to kill init! Here is my computer envrionment: Server: CPU Intel Xeon E5420x2, Memory: 12G, scsi disk Linux: RHEL AS 5.1 x86_64 uname -a: Linux localhost.localdomain 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux I''m confused and don''t what wrong I did. Any response is strongly appreciated! _________________________________________________________________ 一边聊天一边快速搜索,并把结果共享给好友,立刻试试! http://im.live.cn/Share/18.htm _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
宋维佳 wrote:> > title xen-dom0 > kernel /xen.gz dom0_mem=2097152 > module /vmlinuz-2.6.18.8-xen ro root=LABEL=/ rhgb quiet > crashkernel=128M@16M <mailto:crashkernel=128M@16M> > module /initrd-2.6.18.8-xen.imgYou appear to be setting dom0_mem to 2Mb, that probably isn''t enough. Did you mean 2GB? In which case you can put "dom0_mem=2048M"; or simply try not setting dom0_mem at all. jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jonr@destar.net
2008-Oct-09 16:08 UTC
Re: [SPAM: 5.651] [Xen-users] Problems at installing Xen 3.3.0
Quoting ??? <songweijia@hotmail.com>:> I want to install Xen 3.3.0 from source code. but I failed in doing > that in the following steps > > 1. download xen from > http://bits.xensource.com/oss-xen/release/3.3.0/xen-3.3.0.tar.gz > 2. # tar -zxf xen-3.3.0;cd xen-3.3.0 > 3. # make world > ......succeed > 4. # cp /boot/config-2.6.18-53.el5 build-linux-2.6.18-xen_x86_64/.config > 5. # make linux-2.6-xen-config CONFIGMODE=menuconfig (or > xconfig) # make linux-2.6-xen-build # make linux-2.6-xen-install > 6. # depmod 2.6.18.8-xen # mkinitrd -v -f --with=aacraid > --with=sd_mod --with=scsi_mod --builtin=ata_piix > initrd-2.6.18.8-xen.img 2.6.18.8-xen > # cp initrd-2.6.18.8-xen.img /boot/ > 7. configure grub: > default=0timeout=10splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle > xen-dom0 kernel /xen.gz dom0_mem=2097152 module > /vmlinuz-2.6.18.8-xen ro root=LABEL=/ rhgb quiet > crashkernel=128M@16M module /initrd-2.6.18.8-xen.imgtitle Red > Hat Enterprise Linux Server (2.6.18-53.el5) root (hd0,0) > kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet > crashkernel=128M@16M initrd /initrd-2.6.18-53.el5.img8. > reboot and wait... > it says: > > ... > scsi_mod: version magic ''2.6.18.8-xen SMP mod_unload gcc-4.1'' should > be ''2.6.18.8-xen SMP mod_unload Xen gcc-4.1''....................... > insmod: error inserting ''/lib/scsi_mod.ko'' -1 Invalid module format > sd_mod: version magic ''2.6.18.8-xen SMP mod_unload gcc-4.1'' should > be ''2.6.18.8-xen SMP mod_unload Xen gcc-4.1'' warnings > insmod: error inserting ''/lib/sd_mod.ko'' -1 Invalid module format > ... > Kernel panic - not syncing: Attempted to kill init! >You don''t show that you did a make ''modules_install'' and a ''depmod -a'' after building your new kernel. The ''make'' will build the kernel and the modules but you still have to run make ''modules_install'' and ''depmod -a'' after that is done. Hope that helps, Jon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Quoting jonr@destar.net: Damn. I forgot to clean the Subject line of my SPAM tag. =) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thank you very much John! You are right, I did the following, and it works. - reconfigured my grub.conf with dom0_mem=2048M - ''make kclean'' to clean kernel source tree, then reconfigured the kernel with Xen Enabled and privilidged mode enabled - ''make kernels'' to rebuild the kernel and put it to /boot - rebuild the initrd image, put it to/boot - reboot my machine, and bingo! The current system has problem with the network driver however, I''m still working on it.> Date: Thu, 9 Oct 2008 15:13:18 +0100 > From: john.haxby@oracle.com > To: songweijia@hotmail.com > CC: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Problems at installing Xen 3.3.0 > > 宋维佳 wrote: > > > > title xen-dom0 > > kernel /xen.gz dom0_mem=2097152 > > module /vmlinuz-2.6.18.8-xen ro root=LABEL=/ rhgb quiet > > crashkernel=128M@16M <mailto:crashkernel=128M@16M> > > module /initrd-2.6.18.8-xen.img > > You appear to be setting dom0_mem to 2Mb, that probably isn''t enough. > Did you mean 2GB? In which case you can put "dom0_mem=2048M"; or simply > try not setting dom0_mem at all. > > jch_________________________________________________________________ 一边聊天一边快速搜索,并把结果共享给好友,立刻试试! http://im.live.cn/Share/18.htm _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- CentOS 5.1 Paravirtualized guest hangs during creation
- Centos 5.5, not booting latest kernel but older one instead
- dahdi: Unknown symbol kasprintf
- Xen 3.1 / Xen 3.2 + DRBD 8.2.4
- Fw:Fwd: Installing XEN on Centos 6.3 X86_64 ... Problem xen not starting...!!!//I have the same problem....