Hi, My configuration is the following: Xen 3.3.1 compiled from sources(with PAE enabled) Dom0 Debian Etch i386 I''m trying to create Debian domU from scratch with netinst and get the kernel and ram disk to boot to installation procedure from install.386/ folder of netinst iso image. Then I use the following config file debian.cfg for installation: kernel = ''/xen/kernel/install/vmlinuz'' ramdisk = ''/xen/kernel/install/initrd.gz'' memory = ''1024'' root = ''/dev/xvda1 ro'' disk = [ ''tap:aio:/xen/domains/debian/debian.img,xvda,w''] name = ''debian'' vif = [ '''' ] vfb = [ ''type=vnc,vncunused=1'' ] on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' After running ''xm create /etc/xen/domu/install/debian'' I get the error: Using config file "/etc/xen/domu/install/debian". Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') What is the problem? Xen can''t recognize Debian kernel from netinst iso? Also I''ve noted that there was a such problem with installing Fedora 11 in domU. It''s netinst ISO have 2 versions of kernels non-PAE and PAE. In the case of non-PAE kernel I got the same error. With PAE boot kernel everything works fine. I know that I can use xen-tools for creating domU but I want to try this method. Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Sep-24 13:08 UTC
Re: [Xen-users] Debian domU installation problem: Invalid kernel
On Thu, Sep 24, 2009 at 4:48 PM, Andrey <basketboy@bk.ru> wrote:> Hi, > > My configuration is the following: > > Xen 3.3.1 compiled from sources(with PAE enabled) > Dom0 Debian Etch i386 > > I''m trying to create Debian domU from scratch with netinst and get the > kernel and ram disk to boot to installation procedure from install.386/ > folder of netinst iso image.Is that kernel a xen kernel, or a plain i386 kernel? Usually you need -xen kernel for that.> Also I''ve noted that there was a such problem with installing Fedora 11 in > domU.F11 comes with newer kernel, which have pv_ops support. So in short with F11 you can use the same kernel for both xen and bare metal. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Quiroz
2009-Sep-24 13:15 UTC
Re: [Xen-users] Debian domU installation problem: Invalid kernel
Andrey wrote:> Hi, > > My configuration is the following: > > Xen 3.3.1 compiled from sources(with PAE enabled) > Dom0 Debian Etch i386 > > I''m trying to create Debian domU from scratch with netinst and get the > kernel and ram disk to boot to installation procedure from install.386/ > folder of netinst iso image. Then I use the following config file > debian.cfg for installation: > > kernel = ''/xen/kernel/install/vmlinuz'' > ramdisk = ''/xen/kernel/install/initrd.gz'' > > memory = ''1024'' > > root = ''/dev/xvda1 ro'' > disk = [ ''tap:aio:/xen/domains/debian/debian.img,xvda,w''] > > > name = ''debian'' > vif = [ '''' ] > vfb = [ ''type=vnc,vncunused=1'' ] > > > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > > After running ''xm create /etc/xen/domu/install/debian'' I get the error: > > Using config file "/etc/xen/domu/install/debian". > Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load > images built for the generic loader or Linux images'') > > What is the problem? Xen can''t recognize Debian kernel from netinst iso? > > Also I''ve noted that there was a such problem with installing Fedora 11 > in domU. It''s netinst ISO have 2 versions of kernels non-PAE and PAE. In > the case of non-PAE kernel I got the same error. With PAE boot kernel > everything works fine. > > I know that I can use xen-tools for creating domU but I want to try this > method. > > Thanks. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Hi Andrey, I guess your vmlinuz and initrd.gz were downloaded from /xen''s debian mirror, from somewhere like [1]. Also, take a look at .cfg file in that URL. It has some specific variables needed for debian. 1. http://people.debian.org/~joeyh/d-i/images/daily/netboot/xen/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrey
2009-Sep-24 13:22 UTC
Re: [Xen-users] Debian domU installation problem: Invalid kernel
Fajar A. Nugraha пишет:> On Thu, Sep 24, 2009 at 4:48 PM, Andrey <basketboy@bk.ru> wrote: >> Hi, >> >> My configuration is the following: >> >> Xen 3.3.1 compiled from sources(with PAE enabled) >> Dom0 Debian Etch i386 >> >> I''m trying to create Debian domU from scratch with netinst and get the >> kernel and ram disk to boot to installation procedure from install.386/ >> folder of netinst iso image. > > Is that kernel a xen kernel, or a plain i386 kernel? > Usually you need -xen kernel for that.I guess Lenny kernel in netinst image has pv_ops support. I think that the problem is that PAE support is not included in it. Does dom0 kernel and domU kernel both should have PAE enabled in case it is enabled in dom0?> >> Also I''ve noted that there was a such problem with installing Fedora 11 in >> domU. > > F11 comes with newer kernel, which have pv_ops support. So in short > with F11 you can use the same kernel for both xen and bare metal. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrey
2009-Sep-24 13:26 UTC
Re: [Xen-users] Debian domU installation problem: Invalid kernel
Boris Quiroz пишет:> Andrey wrote: >> Hi, >> >> My configuration is the following: >> >> Xen 3.3.1 compiled from sources(with PAE enabled) >> Dom0 Debian Etch i386 >> >> I''m trying to create Debian domU from scratch with netinst and get the >> kernel and ram disk to boot to installation procedure from >> install.386/ folder of netinst iso image. Then I use the following >> config file debian.cfg for installation: >> >> kernel = ''/xen/kernel/install/vmlinuz'' >> ramdisk = ''/xen/kernel/install/initrd.gz'' >> >> memory = ''1024'' >> >> root = ''/dev/xvda1 ro'' >> disk = [ ''tap:aio:/xen/domains/debian/debian.img,xvda,w''] >> >> >> name = ''debian'' >> vif = [ '''' ] >> vfb = [ ''type=vnc,vncunused=1'' ] >> >> >> on_poweroff = ''destroy'' >> on_reboot = ''restart'' >> on_crash = ''restart'' >> >> After running ''xm create /etc/xen/domu/install/debian'' I get the error: >> >> Using config file "/etc/xen/domu/install/debian". >> Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only >> load images built for the generic loader or Linux images'') >> >> What is the problem? Xen can''t recognize Debian kernel from netinst iso? >> >> Also I''ve noted that there was a such problem with installing Fedora >> 11 in domU. It''s netinst ISO have 2 versions of kernels non-PAE and >> PAE. In the case of non-PAE kernel I got the same error. With PAE boot >> kernel everything works fine. >> >> I know that I can use xen-tools for creating domU but I want to try >> this method. >> >> Thanks. >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > Hi Andrey, > > I guess your vmlinuz and initrd.gz were downloaded from /xen''s debian > mirror, from somewhere like [1]. > Also, take a look at .cfg file in that URL. It has some specific > variables needed for debian. > > 1. http://people.debian.org/~joeyh/d-i/images/daily/netboot/xen/ >I copied them from downloaded debian-503-i386-netinst.iso in install.386 folder. Should I try vmlinuz and initrd.gz from your link?> _______________________________________________ > 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
Boris Quiroz
2009-Sep-24 13:35 UTC
Re: [Xen-users] Debian domU installation problem: Invalid kernel
Andrey wrote:> Boris Quiroz пишет: >> Andrey wrote: >>> Hi, >>> >>> My configuration is the following: >>> >>> Xen 3.3.1 compiled from sources(with PAE enabled) >>> Dom0 Debian Etch i386 >>> >>> I''m trying to create Debian domU from scratch with netinst and get >>> the kernel and ram disk to boot to installation procedure from >>> install.386/ folder of netinst iso image. Then I use the following >>> config file debian.cfg for installation: >>> >>> kernel = ''/xen/kernel/install/vmlinuz'' >>> ramdisk = ''/xen/kernel/install/initrd.gz'' >>> >>> memory = ''1024'' >>> >>> root = ''/dev/xvda1 ro'' >>> disk = [ ''tap:aio:/xen/domains/debian/debian.img,xvda,w''] >>> >>> >>> name = ''debian'' >>> vif = [ '''' ] >>> vfb = [ ''type=vnc,vncunused=1'' ] >>> >>> >>> on_poweroff = ''destroy'' >>> on_reboot = ''restart'' >>> on_crash = ''restart'' >>> >>> After running ''xm create /etc/xen/domu/install/debian'' I get the error: >>> >>> Using config file "/etc/xen/domu/install/debian". >>> Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only >>> load images built for the generic loader or Linux images'') >>> >>> What is the problem? Xen can''t recognize Debian kernel from netinst iso? >>> >>> Also I''ve noted that there was a such problem with installing Fedora >>> 11 in domU. It''s netinst ISO have 2 versions of kernels non-PAE and >>> PAE. In the case of non-PAE kernel I got the same error. With PAE >>> boot kernel everything works fine. >>> >>> I know that I can use xen-tools for creating domU but I want to try >>> this method. >>> >>> Thanks. >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >>> >> >> Hi Andrey, >> >> I guess your vmlinuz and initrd.gz were downloaded from /xen''s debian >> mirror, from somewhere like [1]. >> Also, take a look at .cfg file in that URL. It has some specific >> variables needed for debian. >> >> 1. http://people.debian.org/~joeyh/d-i/images/daily/netboot/xen/ >> > I copied them from downloaded debian-503-i386-netinst.iso in install.386 > folder. Should I try vmlinuz and initrd.gz from your link?Yes, you should :)>> _______________________________________________ >> 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
Andrey
2009-Sep-24 13:48 UTC
Re: [Xen-users] Debian domU installation problem: Invalid kernel
Boris Quiroz пишет:> Andrey wrote: >> Boris Quiroz пишет: >>> Andrey wrote: >>>> Hi, >>>> >>>> My configuration is the following: >>>> >>>> Xen 3.3.1 compiled from sources(with PAE enabled) >>>> Dom0 Debian Etch i386 >>>> >>>> I''m trying to create Debian domU from scratch with netinst and get >>>> the kernel and ram disk to boot to installation procedure from >>>> install.386/ folder of netinst iso image. Then I use the following >>>> config file debian.cfg for installation: >>>> >>>> kernel = ''/xen/kernel/install/vmlinuz'' >>>> ramdisk = ''/xen/kernel/install/initrd.gz'' >>>> >>>> memory = ''1024'' >>>> >>>> root = ''/dev/xvda1 ro'' >>>> disk = [ ''tap:aio:/xen/domains/debian/debian.img,xvda,w''] >>>> >>>> >>>> name = ''debian'' >>>> vif = [ '''' ] >>>> vfb = [ ''type=vnc,vncunused=1'' ] >>>> >>>> >>>> on_poweroff = ''destroy'' >>>> on_reboot = ''restart'' >>>> on_crash = ''restart'' >>>> >>>> After running ''xm create /etc/xen/domu/install/debian'' I get the error: >>>> >>>> Using config file "/etc/xen/domu/install/debian". >>>> Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only >>>> load images built for the generic loader or Linux images'') >>>> >>>> What is the problem? Xen can''t recognize Debian kernel from netinst >>>> iso? >>>> >>>> Also I''ve noted that there was a such problem with installing Fedora >>>> 11 in domU. It''s netinst ISO have 2 versions of kernels non-PAE and >>>> PAE. In the case of non-PAE kernel I got the same error. With PAE >>>> boot kernel everything works fine. >>>> >>>> I know that I can use xen-tools for creating domU but I want to try >>>> this method. >>>> >>>> Thanks. >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xensource.com >>>> http://lists.xensource.com/xen-users >>>> >>> >>> Hi Andrey, >>> >>> I guess your vmlinuz and initrd.gz were downloaded from /xen''s debian >>> mirror, from somewhere like [1]. >>> Also, take a look at .cfg file in that URL. It has some specific >>> variables needed for debian. >>> >>> 1. http://people.debian.org/~joeyh/d-i/images/daily/netboot/xen/ >>> >> I copied them from downloaded debian-503-i386-netinst.iso in >> install.386 folder. Should I try vmlinuz and initrd.gz from your link? > > Yes, you should :)Great! It works. Thank you very much for you help.>>> _______________________________________________ >>> 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 > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users