Hi! I''ve recently installed Xen on a laptop with Ubuntu 12.04. I''ve followed this guide (except for changing amd64 to i386): https://help.ubuntu.com/community/Xen I''m using LVM filesystem and I have managed to install Ubuntu as PV guest os, according to the "manually creating PV guest OS" in the guide. But, when the installation of the guest OS is done, I can''t boot the guest OS. Directly after the pyGRUB 0.6 menu appears, I get an error: Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') When I do the same procedure with Debian, as in this guide: http://wiki.xen.org/wiki/Debian_Guest_Installation_Using_Debian_Installer everything works out fine and I can boot Debian. What am I doing wrong? -- View this message in context: http://xen.1045712.n5.nabble.com/Can-t-boot-ubuntu-domU-after-installation-tp5715472.html Sent from the Xen - User mailing list archive at Nabble.com.
Am Dienstag, 16. April 2013, 02:05:26 schrieb klasse:> Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load > images built for the generic loader or Linux images'')hmm, it seems your grub configuration is wrong and/or points not to a existing or correct kernel. If you use pygrub as boot loader make shure your grub config within the DomU is correct (check menu.cfg / grub.cfg - especially pathes to the kernel). It may help to first try to boot your DomU without pygrub (with a kernel located in the Dom0 filesystem - configured in the domu cfg file. If that works - switch over to pygrub boot mech (which uses a kernel and grub config within the DomUs filesystem). Without any more details about your current config i assume we can''t help you here... hth cheers, Niels. -- --- Niels Dettenbach Syndicat IT & Internet http://www.syndicat.com PGP: https://syndicat.com/pub_key.asc --- _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
There''s a note about changing/commenting out the kernel line "Once the install is done, the VM will shutdown. Next change the guest config, /etc/xen/ubuntu.cfg: ". Have you done that? On 04/16/2013 11:05 AM, klasse wrote:> Hi! > I''ve recently installed Xen on a laptop with Ubuntu 12.04. > I''ve followed this guide (except for changing amd64 to i386): > https://help.ubuntu.com/community/Xen > > I''m using LVM filesystem and I have managed to install Ubuntu as PV guest > os, according to the "manually creating PV guest OS" in the guide. > > But, when the installation of the guest OS is done, I can''t boot the guest > OS. > Directly after the pyGRUB 0.6 menu appears, I get an error: > > Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load > images built for the generic loader or Linux images'') > > When I do the same procedure with Debian, as in this guide: > http://wiki.xen.org/wiki/Debian_Guest_Installation_Using_Debian_Installer > everything works out fine and I can boot Debian. > > What am I doing wrong? > > > > -- > View this message in context: http://xen.1045712.n5.nabble.com/Can-t-boot-ubuntu-domU-after-installation-tp5715472.html > Sent from the Xen - User mailing list archive at Nabble.com. > > _______________________________________________ > 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
Yes, I have done that. If I don''t the VM will boot into the installation again. Jan Hejl wrote> There''s a note about changing/commenting out the kernel line "Once the > install is done, the VM will shutdown. Next change the guest config, > /etc/xen/ubuntu.cfg: ". Have you done that? > > On 04/16/2013 11:05 AM, klasse wrote: > ... > > _______________________________________________ > Xen-users mailing list> Xen-users@.xen> http://lists.xen.org/xen-users > > smime.p7s (5K) > <http://xen.1045712.n5.nabble.com/attachment/5715474/0/smime.p7s>-- View this message in context: http://xen.1045712.n5.nabble.com/Can-t-boot-ubuntu-domU-after-installation-tp5715472p5715475.html Sent from the Xen - User mailing list archive at Nabble.com.
On Tue, 2013-04-16 at 12:32 +0100, Niels Dettenbach wrote:> Am Dienstag, 16. April 2013, 02:05:26 schrieb klasse: > > Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load > > images built for the generic loader or Linux images'') > hmm, > it seems your grub configuration is wrong and/or points not to a existing or > correct kernel.One common issue is that you''ve ended up with a kernel which does not support Xen (e.g. no CONFIG_XEN). This is especially common on i386 where Xen requires PAE support whereas the default distro kernel often doesn''t have this feature. This relies on the distro installer doing the right thing or on the user fixing it up -- and since the guide was written for amd64 but used with s/amd64/i386/ I suppose it won''t cover this. I''m afraid I don''t know the name of the Ubuntu kernel flavour which includes Xen support on i386, but that is what you need to install. Ian.
Ok, thank you! I will take the easy path and stay with Debian then. Ian Campbell-10 wrote> On Tue, 2013-04-16 at 12:32 +0100, Niels Dettenbach wrote: > > I''m afraid I don''t know the name of the Ubuntu kernel flavour which > includes Xen support on i386, but that is what you need to install. > > Ian. > > > _______________________________________________ > Xen-users mailing list> Xen-users@.xen> http://lists.xen.org/xen-users-- View this message in context: http://xen.1045712.n5.nabble.com/Can-t-boot-ubuntu-domU-after-installation-tp5715472p5715480.html Sent from the Xen - User mailing list archive at Nabble.com.
Hello,> Hi! > I''ve recently installed Xen on a laptop with Ubuntu 12.04. > I''ve followed this guide (except for changing amd64 to i386): > https://help.ubuntu.com/community/Xen > > I''m using LVM filesystem and I have managed to install Ubuntu as PV guest > os, according to the "manually creating PV guest OS" in the guide. > > But, when the installation of the guest OS is done, I can''t boot the guest > OS. > Directly after the pyGRUB 0.6 menu appears, I get an error: > > Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load > images built for the generic loader or Linux images'') > > When I do the same procedure with Debian, as in this guide: > http://wiki.xen.org/wiki/Debian_Guest_Installation_Using_Debian_Installer > everything works out fine and I can boot Debian. > > What am I doing wrong?The Ubuntu installer is detecting less than 4G of memory in your VM so it is installing the regular generic kernel. Set your VM to have 4G or more and it will install the PAE kernel. HTH Tom.