Hello Everyone, Domain-0 OS:Centos5[final] Guest OS: Centos5[Centos5[final] The virtualization [para] set up was working fine until I have done a kernel upgrade from 2.6.18-8 to 2.6.18-8.1.8 at the guest OS level. My dom-0 is still working fine with the updated kernel. I used the same update package and -Uvh at my guest OS level and I changed the default kernel-2.6.18-8.1.8.el5xen to kernel-2.6.18-8.1.8.el5 in Guest''s grub.conf[Before the Kernel update, I had only one (xen)Kernel at Guest_OS] then xm reboot cenos5v [Didn''t came up] then tried # xm create /etc/xen/cenos5v Using config file "/etc/xen/cenos5v". Going to boot CentOS (2.6.18-8.1.8.el5) kernel: /vmlinuz-2.6.18-8.1.8.el5 initrd: /initrd-2.6.18-8.1.8.el5.img Error: (22, ''Invalid argument'') Querry: How do I change my guest''s default bootable kernel back to xen-kernel. Please help me out and your suggestion would be appreciated. Thank you All -- ~O_0~ ~sagar http://vipinsagar.net ...i''ve to look back when I heard a gong! I could only see a huge cobweb and its shining, just got wonder, what the time it was… _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2007-Sep-06 12:06 UTC
Re: [Xen-users] How to change the default kernel of Guest_OS
If you''re using pygrub, you need to edit /boot/grub/grub.conf in the DomU. On 9/6/07, vipinsagar <freakyzag@gmail.com> wrote:> > > Hello Everyone, > > Domain-0 OS:Centos5[final] > Guest OS: Centos5[Centos5[final] > > The virtualization [para] set up was working fine until I have done a > kernel upgrade from 2.6.18-8 to 2.6.18-8.1.8 at the guest OS level. > > My dom-0 is still working fine with the updated kernel. I used the same > update package and -Uvh at my guest OS level and I changed the default > kernel-2.6.18-8.1.8.el5xen to kernel-2.6.18-8.1.8.el5 in Guest''s grub.conf[Before the Kernel update, I had only one (xen)Kernel at Guest_OS] > > then > > xm reboot cenos5v [Didn''t came up] > > then tried > > # xm create /etc/xen/cenos5v > > Using config file "/etc/xen/cenos5v". > Going to boot CentOS (2.6.18-8.1.8.el5) > kernel: /vmlinuz-2.6.18-8.1.8.el5 > initrd: /initrd-2.6.18-8.1.8.el5.img > Error: (22, ''Invalid argument'') > > Querry: > > How do I change my guest''s default bootable kernel back to xen-kernel. > > Please help me out and your suggestion would be appreciated. > > > Thank you All > > > -- > ~O_0~ > ~sagar > http://vipinsagar.net > ...i''ve to look back when I heard a gong! I could only see a huge cobweb > and its shining, just got wonder, what the time it was… > _______________________________________________ > 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
Nico Kadel-Garcia
2007-Sep-06 12:08 UTC
Re: [Xen-users] How to change the default kernel of Guest_OS
By the way, *DO NOT* use "rpm -U" for kernels, because any error can screw up your ability to reboot successfully. Always use "rpm -i" for kernels. On 9/6/07, Nico Kadel-Garcia <nkadel@gmail.com> wrote:> > If you''re using pygrub, you need to edit /boot/grub/grub.conf in the DomU. > > On 9/6/07, vipinsagar <freakyzag@gmail.com> wrote: > > > > > Hello Everyone, > > > > Domain-0 OS:Centos5[final] > > Guest OS: Centos5[Centos5[final] > > > > The virtualization [para] set up was working fine until I have done a > > kernel upgrade from 2.6.18-8 to 2.6.18-8.1.8 at the guest OS level. > > > > My dom-0 is still working fine with the updated kernel. I used the same > > update package and -Uvh at my guest OS level and I changed the default > > kernel-2.6.18-8.1.8.el5xen to kernel-2.6.18-8.1.8.el5 in Guest''s > > grub.conf [Before the Kernel update, I had only one (xen)Kernel at > > Guest_OS] > > > > then > > > > xm reboot cenos5v [Didn''t came up] > > > > then tried > > > > # xm create /etc/xen/cenos5v > > > > Using config file "/etc/xen/cenos5v". > > Going to boot CentOS (2.6.18-8.1.8.el5) > > kernel: /vmlinuz-2.6.18-8.1.8.el5 > > initrd: /initrd-2.6.18-8.1.8.el5.img > > Error: (22, ''Invalid argument'') > > > > Querry: > > > > How do I change my guest''s default bootable kernel back to xen-kernel. > > > > Please help me out and your suggestion would be appreciated. > > > > > > Thank you All > > > > > > -- > > ~O_0~ > > ~sagar > > http://vipinsagar.net > > ...i''ve to look back when I heard a gong! I could only see a huge cobweb > > and its shining, just got wonder, what the time it was… > > _______________________________________________ > > 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
vipinsagar
2007-Sep-06 12:46 UTC
Re: [Xen-users] How to change the default kernel of Guest_OS
Hi Nico, I had tried: /usr/bin/pygrub /var/lib/xen/images/cenos5v.img got the grub window and there I chose the XEN kernel and tried to boot It throws: Going to boot CentOS (2.6.18-8.1.8.el5xen) kernel: /vmlinuz-2.6.18-8.1.8.el5xen initrd: /initrd-2.6.18-8.1.8.el5xen.img linux (kernel /var/lib/xen/vmlinuz.nYT_lz)(ramdisk /var/lib/xen/initrd.UYo3oU)(args ''ro root=/dev/VolGroup00/LogVol00 console=xvc0 rhgb quiet'') [fubar@blxvirtual ~]# Thank you, ~sagar On 9/6/07, Nico Kadel-Garcia <nkadel@gmail.com> wrote:> > If you''re using pygrub, you need to edit /boot/grub/grub.conf in the DomU. > > On 9/6/07, vipinsagar <freakyzag@gmail.com> wrote: > > > > > Hello Everyone, > > > > Domain-0 OS:Centos5[final] > > Guest OS: Centos5[Centos5[final] > > > > The virtualization [para] set up was working fine until I have done a > > kernel upgrade from 2.6.18-8 to 2.6.18-8.1.8 at the guest OS level. > > > > My dom-0 is still working fine with the updated kernel. I used the same > > update package and -Uvh at my guest OS level and I changed the default > > kernel-2.6.18-8.1.8.el5xen to kernel-2.6.18-8.1.8.el5 in Guest''s > > grub.conf [Before the Kernel update, I had only one (xen)Kernel at > > Guest_OS] > > > > then > > > > xm reboot cenos5v [Didn''t came up] > > > > then tried > > > > # xm create /etc/xen/cenos5v > > > > Using config file "/etc/xen/cenos5v". > > Going to boot CentOS (2.6.18-8.1.8.el5) > > kernel: /vmlinuz-2.6.18-8.1.8.el5 > > initrd: /initrd-2.6.18-8.1.8.el5.img > > Error: (22, ''Invalid argument'') > > > > Querry: > > > > How do I change my guest''s default bootable kernel back to xen-kernel. > > > > Please help me out and your suggestion would be appreciated. > > > > > > Thank you All > > > > > > -- > > ~O_0~ > > ~sagar > > http://vipinsagar.net > > ...i''ve to look back when I heard a gong! I could only see a huge cobweb > > and its shining, just got wonder, what the time it was… > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > >-- ~O_0~ ~sagar http://vipinsagar.net ...i''ve to look back when I heard a gong! I could only see a huge cobweb and its shining, just got wonder, what the time it was… _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
vipinsagar
2007-Sep-06 12:50 UTC
Re: [Xen-users] How to change the default kernel of Guest_OS
Thank you for your information. I have done an -ivh to my host machine and test the stability and it was fine. Thats why I have gone for -Uvh Thank you, ~sagar On 9/6/07, Nico Kadel-Garcia <nkadel@gmail.com> wrote:> > By the way, *DO NOT* use "rpm -U" for kernels, because any error can screw > up your ability to reboot successfully. Always use "rpm -i" for kernels. > > On 9/6/07, Nico Kadel-Garcia <nkadel@gmail.com> wrote: > > > > If you''re using pygrub, you need to edit /boot/grub/grub.conf in the > > DomU. > > > > On 9/6/07, vipinsagar < freakyzag@gmail.com> wrote: > > > > > > > > Hello Everyone, > > > > > > Domain-0 OS:Centos5[final] > > > Guest OS: Centos5[Centos5[final] > > > > > > The virtualization [para] set up was working fine until I have done a > > > kernel upgrade from 2.6.18-8 to 2.6.18-8.1.8 at the guest OS level. > > > > > > My dom-0 is still working fine with the updated kernel. I used the > > > same update package and -Uvh at my guest OS level and I changed the default > > > kernel-2.6.18-8.1.8.el5xen to kernel-2.6.18-8.1.8.el5 in Guest''s > > > grub.conf [Before the Kernel update, I had only one (xen)Kernel at > > > Guest_OS] > > > > > > then > > > > > > xm reboot cenos5v [Didn''t came up] > > > > > > then tried > > > > > > # xm create /etc/xen/cenos5v > > > > > > Using config file "/etc/xen/cenos5v". > > > Going to boot CentOS (2.6.18-8.1.8.el5) > > > kernel: /vmlinuz-2.6.18-8.1.8.el5 > > > initrd: /initrd-2.6.18-8.1.8.el5.img > > > Error: (22, ''Invalid argument'') > > > > > > Querry: > > > > > > How do I change my guest''s default bootable kernel back to xen-kernel. > > > > > > Please help me out and your suggestion would be appreciated. > > > > > > > > > Thank you All > > > > > > > > > -- > > > ~O_0~ > > > ~sagar > > > http://vipinsagar.net > > > ...i''ve to look back when I heard a gong! I could only see a huge > > > cobweb and its shining, just got wonder, what the time it was… > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > > > >-- ~O_0~ ~sagar http://vipinsagar.net ...i''ve to look back when I heard a gong! I could only see a huge cobweb and its shining, just got wonder, what the time it was… _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
vipinsagar
2007-Sep-06 12:57 UTC
Re: [Xen-users] How to change the default kernel of Guest_OS
Hello Everyone, I have resolved the issue. All I have done mount my image [foobar@blxvirtual sagar]# lomount -diskimage /var/lib/xen/images/cenos5v.img -partition 1 /vipin [foobar@blxvirtual sagar]# cd /vipin/grub/grub.conf change default 1 to 0 :) Happy Xenning around !!! ~sagar On 9/6/07, vipinsagar <freakyzag@gmail.com> wrote:> > Hi Nico, > > I had tried: > /usr/bin/pygrub /var/lib/xen/images/cenos5v.img > > got the grub window and there I chose the XEN kernel and tried to boot > > It throws: > > Going to boot CentOS (2.6.18-8.1.8.el5xen) > kernel: /vmlinuz-2.6.18-8.1.8.el5xen > initrd: /initrd-2.6.18-8.1.8.el5xen.img > linux (kernel /var/lib/xen/vmlinuz.nYT_lz)(ramdisk > /var/lib/xen/initrd.UYo3oU)(args ''ro root=/dev/VolGroup00/LogVol00 > console=xvc0 rhgb quiet'') > [fubar@blxvirtual ~]# > > Thank You All, > > ~sagar > > > On 9/6/07, Nico Kadel-Garcia <nkadel@gmail.com> wrote: > > > > If you''re using pygrub, you need to edit /boot/grub/grub.conf in the > > DomU. > > > > On 9/6/07, vipinsagar < freakyzag@gmail.com> wrote: > > > > > > > > Hello Everyone, > > > > > > Domain-0 OS:Centos5[final] > > > Guest OS: Centos5[Centos5[final] > > > > > > The virtualization [para] set up was working fine until I have done a > > > kernel upgrade from 2.6.18-8 to 2.6.18-8.1.8 at the guest OS level. > > > > > > My dom-0 is still working fine with the updated kernel. I used the > > > same update package and -Uvh at my guest OS level and I changed the default > > > kernel-2.6.18-8.1.8.el5xen to kernel-2.6.18-8.1.8.el5 in Guest''s > > > grub.conf [Before the Kernel update, I had only one (xen)Kernel at > > > Guest_OS] > > > > > > then > > > > > > xm reboot cenos5v [Didn''t came up] > > > > > > then tried > > > > > > # xm create /etc/xen/cenos5v > > > > > > Using config file "/etc/xen/cenos5v". > > > Going to boot CentOS (2.6.18-8.1.8.el5) > > > kernel: /vmlinuz-2.6.18-8.1.8.el5 > > > initrd: /initrd-2.6.18-8.1.8.el5.img > > > Error: (22, ''Invalid argument'') > > > > > > Querry: > > > > > > How do I change my guest''s default bootable kernel back to xen-kernel. > > > > > > Please help me out and your suggestion would be appreciated. > > > > > > > > > Thank you All > > > > > > > > > -- > > > ~O_0~ > > > ~sagar > > > http://vipinsagar.net > > > ...i''ve to look back when I heard a gong! I could only see a huge > > > cobweb and its shining, just got wonder, what the time it was… > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > > > > > > -- > ~O_0~ > ~sagar > http://vipinsagar.net > ...i''ve to look back when I heard a gong! I could only see a huge cobweb > and its shining, just got wonder, what the time it was… >-- ~O_0~ ~sagar http://vipinsagar.net ...i''ve to look back when I heard a gong! I could only see a huge cobweb and its shining, just got wonder, what the time it was… _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2007-Sep-07 01:00 UTC
Re: [Xen-users] How to change the default kernel of Guest_OS
vipinsagar wrote:> [foobar@blxvirtual sagar]# cd /vipin/grub/grub.conf > > change default 1 to 0 :) >I think you should also check /etc/sysconfig/kernel and make sure that DEFAULTKERNEL=kernel-xen Or better yet, for PV domains, you should also remove ALL kernel and kernel-devel packages (i.e. normal linux kernels, since PV domains can''t use them anyway) and make sure you only have xen kernels for domU. This will make sure that a system update (pup/pirut, yum update) does not mess up your system again, plus it also saves some space. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users