Hi all; İ have inserted the grub lines title Xen 3.1 / XenLinux 2.6 kernel /boot/xen-3.1.0.gz dom0_mem=262144 module /boot/vmlinuz-2.6-xen0 root=/dev/VolGroup00/LogVol00 ro console=tty0 however when i try to boot with xen i get the error "file not found /boot/xen-3.1.0.gz". but the file is under /boot directory any idea where could i have make a mistake? Mehmet Can ÖNAL Sistem Uzman Yardımcısı Merkezi Sistem Yönetimi Müdürlüğü Eskişehir Yolu 4.Km. 2.Cad. No:63 C Blok Söğütözü 06520 ANKARA Tel : 312 289 10 53 Voip : 6432 Faks : 312 2891450 mconal@fintek.com.tr _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
At the initial stages of booting, the ''/boot'' filesystem isn''t mounted at ''/boot'', but rather at ''/''. Try changing the menu.lst from ''/boot/xxx'' to just ''/xxx'' and see if that works. Thanks, Phil. ----- Original Message ----- From: Mehmet Can ÖNAL To: xen-users@lists.xensource.com Sent: Tuesday, April 22, 2008 1:49 PM Subject: [Xen-users] grub.conf//menu.lst Hi all; İ have inserted the grub lines title Xen 3.1 / XenLinux 2.6 kernel /boot/xen-3.1.0.gz dom0_mem=262144 module /boot/vmlinuz-2.6-xen0 root=/dev/VolGroup00/LogVol00 ro console=tty0 however when i try to boot with xen i get the error "file not found /boot/xen-3.1.0.gz". but the file is under /boot directory any idea where could i have make a mistake? Mehmet Can ÖNAL Sistem Uzman Yardımcısı Merkezi Sistem Yönetimi Müdürlüğü Eskişehir Yolu 4.Km. 2.Cad. No:63 C Blok Söğütözü 06520 ANKARA Tel : 312 289 10 53 Voip : 6432 Faks : 312 2891450 mconal@fintek.com.tr ------------------------------------------------------------------------ Bu elektronik posta ve ekleri sadece adreste belirtilen kisi veya kurulusun kullanimi icin gonderilmektedir. Bu mesaj tarafiniza yanlislikla ulasirsa, lutfen gonderen kisiyi bilgilendiriniz ve mesaji sisteminizden siliniz. Mesajda ve eklerinde yer alan bilgilerin her ne sekilde olursa olsun ucuncu kisiler ile paylasilmasi hukuki ve cezai sorumluluk dogurabilir.Fintek A.S.''nin bu mesaj ve eklerinin icerigi ve yayimi ile ilgili hicbir sorumlulugu bulunmamaktadir. ------------------------------------------------------------------------ ------------------------------------------------------------------------------ _______________________________________________ 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
>Can you please post the complete grub.conf and the partition layout?>P.S. Can you please cut down all that stuff below next time?İ attached grub.conf and df,fdisk outputs. Sorry for the below part :) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mehmet Can ÖNAL wrote:> Hi all; > > > > İ have inserted the grub lines > > > > title Xen 3.1 / XenLinux 2.6 > > kernel /boot/xen-3.1.0.gz dom0_mem=262144 > > module /boot/vmlinuz-2.6-xen0 root=/dev/VolGroup00/LogVol00 ro console=tty0 > > > > however when i try to boot with xen i get the error “file not found > /boot/xen-3.1.0.gz”. but the file is under /boot directory > > > > any idea where could i have make a mistake? > >Can you please post the complete grub.conf and the partition layout? P.S. Can you please cut down all that stuff below next time?> > Mehmet Can ÖNAL > > Sistem Uzman Yardımcısı > > Merkezi Sistem Yönetimi Müdürlüğü > > > > > > > > > > Eskişehir Yolu 4.Km. 2.Cad. No:63 C Blok > > Söğütözü 06520 ANKARA > > Tel : 312 289 10 53 > > Voip : 6432 > > Faks : 312 2891450 > > mconal@fintek.com.tr <mailto:mconal@fintek.com.tr> > > > > ------------------------------------------------------------------------ > > Bu elektronik posta ve ekleri sadece adreste belirtilen kisi veya > kurulusun kullanimi icin gonderilmektedir. Bu mesaj tarafiniza > yanlislikla ulasirsa, lutfen gonderen kisiyi bilgilendiriniz ve mesaji > sisteminizden siliniz. Mesajda ve eklerinde yer alan bilgilerin her ne > sekilde olursa olsun ucuncu kisiler ile paylasilmasi hukuki ve cezai > sorumluluk dogurabilir.Fintek A.S.''nin bu mesaj ve eklerinin icerigi ve > yayimi ile ilgili hicbir sorumlulugu bulunmamaktadir. > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Phillip Bennett wrote:> At the initial stages of booting, the ''/boot'' filesystem isn''t mounted > at ''/boot'', but rather at ''/''. Try changing the menu.lst from > ''/boot/xxx'' to just ''/xxx'' and see if that works. >This is correct if your root statement in grub.conf (e.g. "root (hd0,0)") points to your /boot partition. The root statement in grub.conf has not necessarily anything to do with the root (/) partition of your system. Bas. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mehmet Can ÖNAL wrote:> >> Can you please post the complete grub.conf and the partition layout? >> P.S. Can you please cut down all that stuff below next time? > > İ attached grub.conf and df,fdisk outputs. Sorry for the below part :) >OK, in grub terms, (hd0,0) is your /boot partition. That is the one you feed to grub.conf to find your boot files. From your grub.conf file (with small change): title Red Hat Enterprise Linux AS-up (2.6.9-67.EL) root (hd0,0) kernel /vmlinuz-2.6.9-67.EL ro root=/dev/VolGroup00/LogVol00 > rhgb quiet initrd /initrd-2.6.9-67.EL.img title Xen 3.0 / XenLinux 2.6 root (hd0,0) kernel /boot/vmlinuz-2.6.18-xen root=/dev/VolGroup00/LogVol00 ro > rhgb Apparently, something is missing from this file. Here is an example from my grub.conf file: # Xen 3.2 experiment title CentOS (2.6.18-53.1.14.el5xen) XEN 3.2 FROM XENSOURCE root (hd0,0) kernel /xen.gz-3.2 com2=19200,8n1 console=com2,vga module /vmlinuz-2.6.18-53.1.14.el5xen ro root=LABEL=/1 > console=xvc xencons=xvc module /initrd-2.6.18-53.1.14.el5xen.img First, the /boot disk (/dev/sda1) is given as "root" for this grub config file. So all files in that partition are now in "/" (as Phillip already pointed out). Second, you need to define the kernel to load, which is Xen. The console is attached to /dev/ttyS1 on my server as it contains an IPMI card for remote console. You won''t need those com2= console= parameters. Third, you need to define the Linux kernel and initrd images as modules. In your case, without the console= and xencons= parameters. Bas. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi; İ have done all the stuff that you explain (thanks for all of course) and try to boot xen but now i have another problem that "kernel panic : unable to mount root fs on device (0,0)" Is there something about volume manager? My final grub is # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux AS (2.6.9-67.ELsmp) root (hd0,0) kernel /vmlinuz-2.6.9-67.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.9-67.ELsmp.img title Red Hat Enterprise Linux AS-up (2.6.9-67.EL) root (hd0,0) kernel /vmlinuz-2.6.9-67.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.9-67.EL.img title XEN-3.1 FROM TarBall root (hd0,0) kernel /xen.gz dom0_mem=192M module /vmlinuz-2.6-xen ro root=/dev/VolGroup00/LogVol00 rhgb _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mehmet Can ÖNAL wrote:> Hi; > > İ have done all the stuff that you explain (thanks for all of course) and try to boot xen but now i have another problem that "kernel panic : unable to mount root fs on device (0,0)" > > Is there something about volume manager? > >More or less, yes. You forgot the initrd module statement in grub.conf. So the kernel misses the device mapper module ("driver") that is in the initrd. Just add "module initrd /initrd-<version>.img" to grub.conf. You might need to create it with the mkinitrd command if it is not in /boot already. BTW. Why are you using Xen 3.1? Regards, Bas.> My final grub is > > # grub.conf generated by anaconda > # > # Note that you do not have to rerun grub after making changes to this file > # NOTICE: You have a /boot partition. This means that > # all kernel and initrd paths are relative to /boot/, eg. > # root (hd0,0) > # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 > # initrd /initrd-version.img > #boot=/dev/sda > default=0 > timeout=5 > splashimage=(hd0,0)/grub/splash.xpm.gz > hiddenmenu > title Red Hat Enterprise Linux AS (2.6.9-67.ELsmp) > root (hd0,0) > kernel /vmlinuz-2.6.9-67.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet > initrd /initrd-2.6.9-67.ELsmp.img > title Red Hat Enterprise Linux AS-up (2.6.9-67.EL) > root (hd0,0) > kernel /vmlinuz-2.6.9-67.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet > initrd /initrd-2.6.9-67.EL.img > title XEN-3.1 FROM TarBall > root (hd0,0) > kernel /xen.gz dom0_mem=192M > module /vmlinuz-2.6-xen ro root=/dev/VolGroup00/LogVol00 rhgb > > > _______________________________________________ > 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
Mehmet Can ÖNAL wrote:> I think i should create initrd that will be another challange for me :) as you guess :) > > I found 3.1 tarball that''s why i use 3.1, is there sometihng worng with this version. Where can i find the 3.2 tarball? And my last question to create initrd is hard? (u think i!m hopeless :)) ) > >Although this is not a general support list, let''s give it a try: Just boot the system with one of the kernels and run (as root): # There must be a 2.6-xen directory, check that ls -d /lib/modules # the last parameter to mkinitrd points to the modules directory mkinitrd /boot/initrd-2.6-xen.img 2.6-xen and let the grub.conf file look like: title XEN-3.1 FROM TarBall root (hd0,0) kernel /xen.gz dom0_mem=192M module /vmlinuz-2.6-xen ro root=/dev/VolGroup00/LogVol00 rhgb module /initrd-2.6-xen.img _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users