Hi All, I am using Xen hypervisor for my class project. I need to boot DomU from my custom kernel. I have compiled the kernel code inside DomU and created the initramfs. I can see its entry after update-grub. But when I reboot, I am getting following error: Error: Boot loader didn''t return any data! Here is my config file (ubuntu.cfg) :- name = "ubuntu" memory = 1024 disk = [''phy:/dev/VG/ubuntu,xvda,w''] vif = [''''] #kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" #ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" #extra = "debian-installer/exit/always_halt=true -- console=hvc0" vcpu = 4 I have initially uncommented these 3 lines to create DomU. Once DomU was ready I commented out these 3 lines and launched vm using following command: xm create ubuntu.cfg -c Please some one help asap as my project deadline is approaching fast. Thanks, Anand _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Tue, Apr 30, 2013 at 11:16 PM, Anand Mundada <anandmundada@ymail.com>wrote:> Hi All, > > I am using Xen hypervisor for my class project. I need to boot DomU from > my custom kernel. I have compiled the kernel code inside DomU and created > the initramfs. I can see its entry after update-grub. But when I reboot, I > am getting following error: > Error: Boot loader didn''t return any data! > > Here is my config file (ubuntu.cfg) :- > name = "ubuntu" > memory = 1024 > disk = [''phy:/dev/VG/ubuntu,xvda,w''] > vif = [''''] > #kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" > > #ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" > > #extra = "debian-installer/exit/always_halt=true -- console=hvc0" > > vcpu = 4 > > If you commenting these 3 lines then your DomU didn''t have any bootloader. Try to add pygrub on your domU configuration file. bootloader = "pygrub"> I have initially uncommented these 3 lines to create DomU. Once DomU was > ready I commented out these 3 lines and launched vm using following command: > xm create ubuntu.cfg -c > > Please some one help asap as my project deadline is approaching fast. > > Thanks, > Anand > > You are welcome,Agya> > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi Agya, I have added bootloader = "pygrub" in config file still same result. Error: Boot loader didn''t return any data! Please let me know if I can try anything else. Thanks, Anand ________________________________ From: agya naila <agya.naila@gmail.com> To: Anand Mundada <anandmundada@ymail.com> Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> Sent: Sunday, May 5, 2013 2:48 PM Subject: Re: [Xen-users] [URGENT] How to boot DomU from customized kernel On Tue, Apr 30, 2013 at 11:16 PM, Anand Mundada <anandmundada@ymail.com> wrote: Hi All,> > >I am using Xen hypervisor for my class project. I need to boot DomU from my custom kernel. I have compiled the kernel code inside DomU and created the initramfs. I can see its entry after update-grub. But when I reboot, I am getting following error: >Error: Boot loader didn''t return any data! > > > >Here is my config file (ubuntu.cfg) :- >name = "ubuntu" >memory = 1024 >disk = [''phy:/dev/VG/ubuntu,xvda,w''] >vif = [''''] >#kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" >#ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" >#extra = "debian-installer/exit/always_halt=true -- console=hvc0" >vcpu = 4 > >If you commenting these 3 lines then your DomU didn''t have any boot loader. Try to add pygrub on your domU configuration file. bootloader = "pygrub" I have initially uncommented these 3 lines to create DomU. Once DomU was ready I commented out these 3 lines and launched vm using following command:>xm create ubuntu.cfg -c > > >Please some one help asap as my project deadline is approaching fast. > > >Thanks, >Anand > >You are welcome, Agya>_______________________________________________ >Xen-users mailing list >Xen-users@lists.xen.org >http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Mon, May 6, 2013 at 1:11 AM, Anand Mundada <anandmundada@ymail.com>wrote:> Hi Agya, > > I have added bootloader = "pygrub" in config file still same result. > Error: Boot loader didn''t return any data! > >Basically for Ubuntu DomU you can refers to this page https://help.ubuntu.com/community/XenProposed . Maybe you have to execute this command on your console and try to re-run the VM. sudo ln -s /usr/lib/xen-4.1/bin/pygrub /usr/bin/pygrub> Please let me know if I can try anything else. > > Thanks, > Anand >Good luck, Agya> ------------------------------ > *From:* agya naila <agya.naila@gmail.com> > *To:* Anand Mundada <anandmundada@ymail.com> > *Cc:* "xen-users@lists.xen.org" <xen-users@lists.xen.org> > *Sent:* Sunday, May 5, 2013 2:48 PM > *Subject:* Re: [Xen-users] [URGENT] How to boot DomU from customized > kernel > > On Tue, Apr 30, 2013 at 11:16 PM, Anand Mundada <anandmundada@ymail.com>wrote: > > Hi All, > > I am using Xen hypervisor for my class project. I need to boot DomU from > my custom kernel. I have compiled the kernel code inside DomU and created > the initramfs. I can see its entry after update-grub. But when I reboot, I > am getting following error: > Error: Boot loader didn''t return any data! > > Here is my config file (ubuntu.cfg) :- > name = "ubuntu" > memory = 1024 > disk = [''phy:/dev/VG/ubuntu,xvda,w''] > vif = [''''] > #kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" > > #ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" > > #extra = "debian-installer/exit/always_halt=true -- console=hvc0" > > vcpu = 4 > > If you commenting these 3 lines then your DomU didn''t have any boot > loader. Try to add pygrub on your domU configuration file. > > bootloader = "pygrub" > > > > I have initially uncommented these 3 lines to create DomU. Once DomU was > ready I commented out these 3 lines and launched vm using following command: > xm create ubuntu.cfg -c > > Please some one help asap as my project deadline is approaching fast. > > Thanks, > Anand > > You are welcome, > > Agya > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi, Anand What kind of OS has installed in Dom0? Regards, Yeonki Choi Sent from my iPad 2013. 5. 6. 오후 9:52 "Anand Mundada" <anandmundada@ymail.com> 작성:> Hi Agya, > > I have added bootloader = "pygrub" in config file still same result. > Error: Boot loader didn't return any data! > > Please let me know if I can try anything else. > > Thanks, > Anand > From: agya naila <agya.naila@gmail.com> > To: Anand Mundada <anandmundada@ymail.com> > Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> > Sent: Sunday, May 5, 2013 2:48 PM > Subject: Re: [Xen-users] [URGENT] How to boot DomU from customized kernel > > On Tue, Apr 30, 2013 at 11:16 PM, Anand Mundada <anandmundada@ymail.com> wrote: > Hi All, > > I am using Xen hypervisor for my class project. I need to boot DomU from my custom kernel. I have compiled the kernel code inside DomU and created the initramfs. I can see its entry after update-grub. But when I reboot, I am getting following error: > Error: Boot loader didn't return any data! > > Here is my config file (ubuntu.cfg) :- > name = "ubuntu" > memory = 1024 > disk = ['phy:/dev/VG/ubuntu,xvda,w'] > vif = [''] > #kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" > #ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" > #extra = "debian-installer/exit/always_halt=true -- console=hvc0" > vcpu = 4 > > If you commenting these 3 lines then your DomU didn't have any boot loader. Try to add pygrub on your domU configuration file. > > bootloader = "pygrub" > > > I have initially uncommented these 3 lines to create DomU. Once DomU was ready I commented out these 3 lines and launched vm using following command: > xm create ubuntu.cfg -c > > Please some one help asap as my project deadline is approaching fast. > > Thanks, > Anand > > You are welcome, > > Agya > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi Yeonki, I am using Ubuntu 12.04, for both dom0 and domu Sent from my iPhone On May 6, 2013, at 8:43 AM, Yeonki Choi <yeonki_choi@hotmail.com> wrote:> Hi, Anand > > What kind of OS has installed in Dom0? > > Regards, > Yeonki Choi > Sent from my iPad > > 2013. 5. 6. 오후 9:52 "Anand Mundada" <anandmundada@ymail.com> 작성: > >> Hi Agya, >> >> I have added bootloader = "pygrub" in config file still same result. >> Error: Boot loader didn''t return any data! >> >> Please let me know if I can try anything else. >> >> Thanks, >> Anand >> From: agya naila <agya.naila@gmail.com> >> To: Anand Mundada <anandmundada@ymail.com> >> Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> >> Sent: Sunday, May 5, 2013 2:48 PM >> Subject: Re: [Xen-users] [URGENT] How to boot DomU from customized kernel >> >> On Tue, Apr 30, 2013 at 11:16 PM, Anand Mundada <anandmundada@ymail.com> wrote: >> Hi All, >> >> I am using Xen hypervisor for my class project. I need to boot DomU from my custom kernel. I have compiled the kernel code inside DomU and created the initramfs. I can see its entry after update-grub. But when I reboot, I am getting following error: >> Error: Boot loader didn''t return any data! >> >> Here is my config file (ubuntu.cfg) :- >> name = "ubuntu" >> memory = 1024 >> disk = [''phy:/dev/VG/ubuntu,xvda,w''] >> vif = [''''] >> #kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" >> #ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" >> #extra = "debian-installer/exit/always_halt=true -- console=hvc0" >> vcpu = 4 >> >> If you commenting these 3 lines then your DomU didn''t have any boot loader. Try to add pygrub on your domU configuration file. >> >> bootloader = "pygrub" >> >> >> I have initially uncommented these 3 lines to create DomU. Once DomU was ready I commented out these 3 lines and launched vm using following command: >> xm create ubuntu.cfg -c >> >> Please some one help asap as my project deadline is approaching fast. >> >> Thanks, >> Anand >> >> You are welcome, >> >> Agya >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Alexandre Kouznetsov
2013-May-06 16:53 UTC
Re: [URGENT] How to boot DomU from customized kernel
Hello. El 30/04/13 16:16, Anand Mundada escribió:> I am using Xen hypervisor for my class project. I need to boot DomU from > my custom kernel. I have compiled the kernel code inside DomU and > created the initramfs. I can see its entry after update-grub. But when I > reboot, I am getting following error: > Error: Boot loader didn''t return any data!There are several possible causes of this issue. The most common are: - Incorrect order of element in "disk" array in the config. Not you case, I see only one disk. - Boot partition formatted as ext3 with wrong options or as ext4. It has to be ext3 and inode-size set to 128 bytes (mkfs.ext3 default is 256 , use -I option), otherwise pygrub will not be able to read it. - Grub config file in Dom0 missing or with errors. In order to get more details from pygrub, try to do a manual run: /usr/lib/xen-default/bin/pygrub /dev/VG/ubuntu (might need something extra on your system, like creating manually a temporal directory to put kernel and initrd) Greetings. -- Alexandre Kouznetsov