jaeyong yoo
2012-Jul-12 09:36 UTC
While installing guest OS, having error "Invalid kernel"
Hello, When I''m trying to boot with newly installed guest OS, I''m having the following error message. $ sudo xm create /etc/xen/ubuntu.cfg -c> Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only loadimages built for the generic loader or Linux images'') I''m absolutely clueless and any help would be really appreciated. Here goes the detail configuration. 1) I install ubuntu desktop 12.04 in a machine (32-bit intel Core 2 CPU with 2GB memory) 2) install xen by $ sudo apt-get install xen-hypervisor-4.1-i386 xen-tools xen-utils-4.1 xen-utils-common 3) reboot 4) xen looks working OK at dom0 and I check this with the following command $ xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1024 1 r----- 244.9 5) after creating logical volume using lvm (the dev is /dev/vgubuntu/ubuntu) make a configuration file (/etc/xen/ubuntu.cfg) as follows name = "ubuntu" memory = 512 disk = [''phy:/dev/vgubuntu/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" 6) Download vmlinuz and initrd file as below and place them at /var/lib/xen/images/ubuntu-netboot/ $ wget http://kr.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/xen/initrd.gz $ wget http://kr.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/xen/vmlinuz 7) installing the guest os using the command below $ sudo xm create /etc/xen/ubuntu.cfg -c 8) while installing, I set the filesystem ext3 in the guest OS. 9) everything looks normal. The console say the installation is completed. 10) After installing, I change the xen configuration file (/etc/xen/ubuntu.cfg) as follows. name = "ubuntu" memory = 512 disk = [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] bootloader = "pygrub" 11) And, i try to boot the Guest OS for the first time, I see this error. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2012-Jul-12 16:05 UTC
Re: While installing guest OS, having error "Invalid kernel"
On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo wrote:> > > 8) while installing, I set the filesystem ext3 in the guest OS. > > 9) everything looks normal. The console say the installation is > completed. > > 10) After installing, I change the xen configuration > file (/etc/xen/ubuntu.cfg) as follows. > > name = "ubuntu" memory = 512 disk > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] bootloader = "pygrub"Did ubuntu install a Xen capable kernel and is grub within the guest correctly pointing to it? You can usually use kpartx to expose the partitions of /dev/vgubuntu/ubuntu in dom0 and mount it to poke around. I don''t know which kernel flavour you need to have installed in Ubuntu to get Xen support. Perhaps someone else chime in. The other thing to consider is the use of LVM for the guest /boot. IIRC this does not work with pygrub. Ian.
jaeyong yoo
2012-Jul-13 06:01 UTC
Re: While installing guest OS, having error "Invalid kernel"
Thanks a lot Lan,> The other thing to consider is the use of LVM for the guest /boot. IIRC > this does not work with pygrub.did you mean pygrub is working fine with LVM for the guest /boot? jaeyong On Fri, Jul 13, 2012 at 1:05 AM, Ian Campbell <ian.campbell@citrix.com>wrote:> On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo wrote: > > > > > > 8) while installing, I set the filesystem ext3 in the guest OS. > > > > 9) everything looks normal. The console say the installation is > > completed. > > > > 10) After installing, I change the xen configuration > > file (/etc/xen/ubuntu.cfg) as follows. > > > > name = "ubuntu" memory = 512 disk > > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] bootloader = "pygrub" > > Did ubuntu install a Xen capable kernel and is grub within the guest > correctly pointing to it? > > You can usually use kpartx to expose the partitions > of /dev/vgubuntu/ubuntu in dom0 and mount it to poke around. > > I don''t know which kernel flavour you need to have installed in Ubuntu > to get Xen support. Perhaps someone else chime in. > > The other thing to consider is the use of LVM for the guest /boot. IIRC > this does not work with pygrub. > > Ian. > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Stephan Seitz
2012-Jul-13 08:01 UTC
Re: While installing guest OS, having error "Invalid kernel"
I assume pygrub does have problems with fancy lvm layouts and/or exotic filesystems INSIDE domU. To avoid potential problems, I''ve done all of my domU disk layouts with a separate (first and primary) partition for /boot which is always ext3. Anyway, that has nothing to do with lvm outside domU, pygrub is really fine with a (dom0''s) LV a domU disk . For your mentioned ubuntu domU, it''s necessary to use the kernel / ramdisk provided by linux-virtual. linux-generic is not xen capable. you could e.g. install your ubuntu domU fully virtualized (hvm) with additional linux-virtual and grub-legacy-ec2 packages. As of 12.04 some kernel modules are placed into linux-image-extra-virtual (None of them are necessary for a plain installation, but I recently found myself searching for "lost" modules). Am Freitag, den 13.07.2012, 15:01 +0900 schrieb jaeyong yoo:> Thanks a lot Lan, > > > > > The other thing to consider is the use of LVM for the guest /boot. > IIRC > > this does not work with pygrub. > > > did you mean pygrub is working fine with LVM for the guest /boot? > > > jaeyong > > > > On Fri, Jul 13, 2012 at 1:05 AM, Ian Campbell > <ian.campbell@citrix.com> wrote: > > On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo wrote: > > > > > > 8) while installing, I set the filesystem ext3 in the guest > OS. > > > > 9) everything looks normal. The console say the installation > is > > completed. > > > > 10) After installing, I change the xen configuration > > file (/etc/xen/ubuntu.cfg) as follows. > > > > name = "ubuntu" memory = 512 disk > > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] bootloader > "pygrub" > > > > Did ubuntu install a Xen capable kernel and is grub within the > guest > correctly pointing to it? > > You can usually use kpartx to expose the partitions > of /dev/vgubuntu/ubuntu in dom0 and mount it to poke around. > > I don''t know which kernel flavour you need to have installed > in Ubuntu > to get Xen support. Perhaps someone else chime in. > > The other thing to consider is the use of LVM for the > guest /boot. IIRC > this does not work with pygrub. > > Ian. > > > > > > _______________________________________________ > 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
Ian Campbell
2012-Jul-13 16:39 UTC
Re: While installing guest OS, having error "Invalid kernel"
On Fri, 2012-07-13 at 02:01 -0400, jaeyong yoo wrote:> Thanks a lot Lan, > > > > The other thing to consider is the use of LVM for the guest /boot. > IIRC > > this does not work with pygrub. > > > did you mean pygrub is working fine with LVM for the guest /boot?No, as far as I know it does not. I meant "consider" as in "think about and avoid", but that wasn''t especially obvious, sorry for the confusion.> > > jaeyong > > On Fri, Jul 13, 2012 at 1:05 AM, Ian Campbell > <ian.campbell@citrix.com> wrote: > On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo wrote: > > > > > > 8) while installing, I set the filesystem ext3 in the guest > OS. > > > > 9) everything looks normal. The console say the installation > is > > completed. > > > > 10) After installing, I change the xen configuration > > file (/etc/xen/ubuntu.cfg) as follows. > > > > name = "ubuntu" memory = 512 disk > > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] bootloader > "pygrub" > > > Did ubuntu install a Xen capable kernel and is grub within the > guest > correctly pointing to it? > > You can usually use kpartx to expose the partitions > of /dev/vgubuntu/ubuntu in dom0 and mount it to poke around. > > I don''t know which kernel flavour you need to have installed > in Ubuntu > to get Xen support. Perhaps someone else chime in. > > The other thing to consider is the use of LVM for the > guest /boot. IIRC > this does not work with pygrub. > > Ian. > > >
jaeyong yoo
2012-Jul-14 08:12 UTC
Re: While installing guest OS, having error "Invalid kernel"
Thanks stephan, Actually, the kernel for guest OS, I use, is the one recommended in the following guide. https://help.ubuntu.com/community/XenProposed But, I really want to test the one you mentioned in linux-virtual. I tried to google linux-virtual and failed to find one. Could you tell me the one that you are using? Thanks again, - jaeyong On Fri, Jul 13, 2012 at 5:01 PM, Stephan Seitz <s.seitz@netzhaut.de> wrote:> ** > I assume pygrub does have problems with fancy lvm layouts and/or exotic > filesystems INSIDE domU. > To avoid potential problems, I''ve done all of my domU disk layouts with a > separate (first and primary) partition for /boot which is always ext3. > > Anyway, that has nothing to do with lvm outside domU, pygrub is really > fine with a (dom0''s) LV a domU disk . > > > For your mentioned ubuntu domU, it''s necessary to use the kernel / ramdisk > provided by linux-virtual. linux-generic is not xen capable. > you could e.g. install your ubuntu domU fully virtualized (hvm) with > additional > linux-virtual and grub-legacy-ec2 packages. As of 12.04 some kernel modules > are placed into linux-image-extra-virtual (None of them are necessary for a > plain installation, but I recently found myself searching for "lost" > modules). > > > > Am Freitag, den 13.07.2012, 15:01 +0900 schrieb jaeyong yoo: > > Thanks a lot Lan, > > > > > The other thing to consider is the use of LVM for the guest /boot. IIRC > > this does not work with pygrub. > > > > did you mean pygrub is working fine with LVM for the guest /boot? > > > > jaeyong > > > On Fri, Jul 13, 2012 at 1:05 AM, Ian Campbell <ian.campbell@citrix.com> > wrote: > > On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo wrote: > > > > > > 8) while installing, I set the filesystem ext3 in the guest OS. > > > > 9) everything looks normal. The console say the installation is > > completed. > > > > 10) After installing, I change the xen configuration > > file (/etc/xen/ubuntu.cfg) as follows. > > > > name = "ubuntu" memory = 512 disk > > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] bootloader = "pygrub" > > > Did ubuntu install a Xen capable kernel and is grub within the guest > correctly pointing to it? > > You can usually use kpartx to expose the partitions > of /dev/vgubuntu/ubuntu in dom0 and mount it to poke around. > > I don''t know which kernel flavour you need to have installed in Ubuntu > to get Xen support. Perhaps someone else chime in. > > The other thing to consider is the use of LVM for the guest /boot. IIRC > this does not work with pygrub. > > Ian. > > > > _______________________________________________ > Xen-users mailing listXen-users@lists.xen.orghttp://lists.xen.org/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Stephan Seitz
2012-Jul-14 09:33 UTC
Re: While installing guest OS, having error "Invalid kernel"
Hi, sorry, I didn''t point it out too clear. linux-virtual is no project or website ;) it''s an ubuntu package. In detail it''s a meta-package always pointing to the latest linux-[VERSION]-virtual. Following the ubuntu guide, I''ld start with "Manually installing an HVM Guest VM". Just because of the possibility to reboot your domU if something went wrong or (in your case) is not completely ready. At least 12.04 Ubuntu domU''s can easily be setup to boot either HVM or PV. What I was trying to say was: After your installation is finished, do an "apt-get install linux-virtual grub-legacy-ec2" and you''re able to boot your domU with pvgrub, pygrub or hvmloader. it''s all about choices :) Am Samstag, den 14.07.2012, 17:12 +0900 schrieb jaeyong yoo:> Thanks stephan, > > > Actually, the kernel for guest OS, I use, is the one recommended in > the following guide. > > > https://help.ubuntu.com/community/XenProposed > > > But, I really want to test the one you mentioned in linux-virtual. > I tried to google linux-virtual and failed to find one. > Could you tell me the one that you are using? > > > Thanks again, > - jaeyong > > > > On Fri, Jul 13, 2012 at 5:01 PM, Stephan Seitz <s.seitz@netzhaut.de> > wrote: > I assume pygrub does have problems with fancy lvm layouts > and/or exotic > filesystems INSIDE domU. > To avoid potential problems, I''ve done all of my domU disk > layouts with a > separate (first and primary) partition for /boot which is > always ext3. > > Anyway, that has nothing to do with lvm outside domU, pygrub > is really > fine with a (dom0''s) LV a domU disk . > > > For your mentioned ubuntu domU, it''s necessary to use the > kernel / ramdisk > provided by linux-virtual. linux-generic is not xen capable. > you could e.g. install your ubuntu domU fully virtualized > (hvm) with additional > linux-virtual and grub-legacy-ec2 packages. As of 12.04 some > kernel modules > are placed into linux-image-extra-virtual (None of them are > necessary for a > plain installation, but I recently found myself searching for > "lost" modules). > > > > > Am Freitag, den 13.07.2012, 15:01 +0900 schrieb jaeyong yoo: > > > Thanks a lot Lan, > > > > > > > The other thing to consider is the use of LVM for the > > guest /boot. IIRC > > > this does not work with pygrub. > > > > > > did you mean pygrub is working fine with LVM for the > > guest /boot? > > > > > > jaeyong > > > > On Fri, Jul 13, 2012 at 1:05 AM, Ian Campbell > > <ian.campbell@citrix.com> wrote: > > On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo > > wrote: > > > > > > > > > 8) while installing, I set the filesystem ext3 in > > the guest OS. > > > > > > 9) everything looks normal. The console say the > > installation is > > > completed. > > > > > > 10) After installing, I change the xen > > configuration > > > file (/etc/xen/ubuntu.cfg) as follows. > > > > > > name = "ubuntu" memory = 512 disk > > > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] > > bootloader = "pygrub" > > > > > > Did ubuntu install a Xen capable kernel and is grub > > within the guest > > correctly pointing to it? > > > > You can usually use kpartx to expose the partitions > > of /dev/vgubuntu/ubuntu in dom0 and mount it to poke > > around. > > > > I don''t know which kernel flavour you need to have > > installed in Ubuntu > > to get Xen support. Perhaps someone else chime in. > > > > The other thing to consider is the use of LVM for > > the guest /boot. IIRC > > this does not work with pygrub. > > > > Ian. > > > > > > > > _______________________________________________ > > 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
jaeyong yoo
2012-Jul-14 10:33 UTC
Re: While installing guest OS, having error "Invalid kernel"
As you recommended, I''m newly starting with "Manually installing an HVM Guest VM." While I''m installing ubuntun 12.04, the installer hanged while copying files. (I attached the screen shot of vnc). The mouse still moves but I can not input the user name. I waited like a ten minutes to see whether it is slow or stucked. Now, my question is, my machine is intel core 2 cpus with 2GB memory. Is this machine too weak for xen virtualization? Best - jaeyong On Sat, Jul 14, 2012 at 6:33 PM, Stephan Seitz <s.seitz@netzhaut.de> wrote:> Hi, > > sorry, I didn''t point it out too clear. linux-virtual is no project or > website ;) > it''s an ubuntu package. In detail it''s a meta-package always pointing to > the latest linux-[VERSION]-virtual. > > Following the ubuntu guide, I''ld start with "Manually installing an HVM > Guest VM". > Just because of the possibility to reboot your domU if something went > wrong or (in your case) is not completely ready. > At least 12.04 Ubuntu domU''s can easily be setup to boot either HVM > or PV. > > What I was trying to say was: After your installation is finished, do an > "apt-get install linux-virtual grub-legacy-ec2" and you''re able to boot > your domU with pvgrub, pygrub or hvmloader. it''s all about choices :) > > > > > Am Samstag, den 14.07.2012, 17:12 +0900 schrieb jaeyong yoo: > > Thanks stephan, > > > > > > Actually, the kernel for guest OS, I use, is the one recommended in > > the following guide. > > > > > > https://help.ubuntu.com/community/XenProposed > > > > > > But, I really want to test the one you mentioned in linux-virtual. > > I tried to google linux-virtual and failed to find one. > > Could you tell me the one that you are using? > > > > > > Thanks again, > > - jaeyong > > > > > > > > On Fri, Jul 13, 2012 at 5:01 PM, Stephan Seitz <s.seitz@netzhaut.de> > > wrote: > > I assume pygrub does have problems with fancy lvm layouts > > and/or exotic > > filesystems INSIDE domU. > > To avoid potential problems, I''ve done all of my domU disk > > layouts with a > > separate (first and primary) partition for /boot which is > > always ext3. > > > > Anyway, that has nothing to do with lvm outside domU, pygrub > > is really > > fine with a (dom0''s) LV a domU disk . > > > > > > For your mentioned ubuntu domU, it''s necessary to use the > > kernel / ramdisk > > provided by linux-virtual. linux-generic is not xen capable. > > you could e.g. install your ubuntu domU fully virtualized > > (hvm) with additional > > linux-virtual and grub-legacy-ec2 packages. As of 12.04 some > > kernel modules > > are placed into linux-image-extra-virtual (None of them are > > necessary for a > > plain installation, but I recently found myself searching for > > "lost" modules). > > > > > > > > > > Am Freitag, den 13.07.2012, 15:01 +0900 schrieb jaeyong yoo: > > > > > Thanks a lot Lan, > > > > > > > > > > The other thing to consider is the use of LVM for the > > > guest /boot. IIRC > > > > this does not work with pygrub. > > > > > > > > > did you mean pygrub is working fine with LVM for the > > > guest /boot? > > > > > > > > > jaeyong > > > > > > On Fri, Jul 13, 2012 at 1:05 AM, Ian Campbell > > > <ian.campbell@citrix.com> wrote: > > > On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo > > > wrote: > > > > > > > > > > > > 8) while installing, I set the filesystem ext3 in > > > the guest OS. > > > > > > > > 9) everything looks normal. The console say the > > > installation is > > > > completed. > > > > > > > > 10) After installing, I change the xen > > > configuration > > > > file (/etc/xen/ubuntu.cfg) as follows. > > > > > > > > name = "ubuntu" memory = 512 disk > > > > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] > > > bootloader = "pygrub" > > > > > > > > > Did ubuntu install a Xen capable kernel and is grub > > > within the guest > > > correctly pointing to it? > > > > > > You can usually use kpartx to expose the partitions > > > of /dev/vgubuntu/ubuntu in dom0 and mount it to poke > > > around. > > > > > > I don''t know which kernel flavour you need to have > > > installed in Ubuntu > > > to get Xen support. Perhaps someone else chime in. > > > > > > The other thing to consider is the use of LVM for > > > the guest /boot. IIRC > > > this does not work with pygrub. > > > > > > Ian. > > > > > > > > > > > > _______________________________________________ > > > 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
jaeyong yoo
2012-Jul-14 10:49 UTC
Re: While installing guest OS, having error "Invalid kernel"
Hi Lan, It worked! I mounted the guest OS and see that the vmlinuz and initrd is not for virtualized (the filename is vmlinuz-xxx-generic). So I replaced them to vmlinuz-xxx-virtual (when I apt-get linux-virtual, suddenly vmlinuz-<version>-virtual poped up in my dom0 /boot directory), and then, it worked! Thanks a lot. Best, - jaeyong On Sat, Jul 14, 2012 at 1:39 AM, Ian Campbell <ian.campbell@citrix.com>wrote:> On Fri, 2012-07-13 at 02:01 -0400, jaeyong yoo wrote: > > Thanks a lot Lan, > > > > > > > The other thing to consider is the use of LVM for the guest /boot. > > IIRC > > > this does not work with pygrub. > > > > > > did you mean pygrub is working fine with LVM for the guest /boot? > > No, as far as I know it does not. > > I meant "consider" as in "think about and avoid", but that wasn''t > especially obvious, sorry for the confusion. > > > > > > > jaeyong > > > > On Fri, Jul 13, 2012 at 1:05 AM, Ian Campbell > > <ian.campbell@citrix.com> wrote: > > On Thu, 2012-07-12 at 05:36 -0400, jaeyong yoo wrote: > > > > > > > > > 8) while installing, I set the filesystem ext3 in the guest > > OS. > > > > > > 9) everything looks normal. The console say the installation > > is > > > completed. > > > > > > 10) After installing, I change the xen configuration > > > file (/etc/xen/ubuntu.cfg) as follows. > > > > > > name = "ubuntu" memory = 512 disk > > > [''phy:/dev/vgubuntu/ubuntu,xvda,w''] vif = ['' ''] bootloader > > "pygrub" > > > > > > Did ubuntu install a Xen capable kernel and is grub within the > > guest > > correctly pointing to it? > > > > You can usually use kpartx to expose the partitions > > of /dev/vgubuntu/ubuntu in dom0 and mount it to poke around. > > > > I don''t know which kernel flavour you need to have installed > > in Ubuntu > > to get Xen support. Perhaps someone else chime in. > > > > The other thing to consider is the use of LVM for the > > guest /boot. IIRC > > this does not work with pygrub. > > > > Ian. > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users