Hi -- I''m getting this error even though I have correct DVD ISO image for snv_92. bash-3.2# uname -a SunOS stoakly2 5.11 snv_92 i86pc i386 i86xpv bash-3.2# xm create snv.py Using config file "./snv.py". Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') bash-3.2# cat snv.py memory = ''1024'' vcpus = 4 # for installation #disk = [ ''file:/export/home/solarisdvd.iso,6:cdrom,r'', ''phy:/dev/zvol/dsk/snv-pool/vol,0,w'' ] disk = [ ''file:/export/home/solarisdvd.iso,6:cdrom,r'', ''file:/export/home/f1,0,w'' ] on_poweroff = ''restart'' on_reboot = ''restart'' on_crash = ''preserve'' bash-3.2# ls -l /export/home/f1 -rw------T 1 root root 8589934592 Jul 3 14:14 /export/home/f1 bash-3.2# file /export/home/solarisdvd.iso /export/home/solarisdvd.iso: ISO 9660 filesystem image - El Torito bash-3.2# Running with -c reveals that grub loads fine but grub was not able to load OS. Does anybody know why? The same script used to work for me in past. The ISO image is of snv_92 ftp''ed from nana. -- /Saurabh http://blogs.sun.com/saurabh_mishra [2008-07-03 14:47:00 718] DEBUG (XendDomainInfo:1552) XendDomainInfo.constructDomain [2008-07-03 14:47:00 718] DEBUG (balloon:116) Balloon: 1053112 KiB free; need 2048; done. [2008-07-03 14:47:00 718] DEBUG (XendDomain:435) Adding Domain: 2 [2008-07-03 14:47:00 718] DEBUG (XendDomainInfo:1612) XendDomainInfo.initDomain: 2 256 [2008-07-03 14:47:00 816] DEBUG (XendBootloader:113) Launching bootloader as [''/usr/lib/xen/bin/pygrub'', ''--output=/var/run/xend/boot/xenbl.4403'', ''/export/home/solarisdvd.iso'']. [2008-07-03 14:47:03 718] DEBUG (XendDomainInfo:1646) _initDomain:shadow_memory=0x0, memory_static_max=0x40000000, memory_static_min=0x0. [2008-07-03 14:47:03 718] DEBUG (balloon:116) Balloon: 1053104 KiB free; need 1048576; done. [2008-07-03 14:47:03 718] INFO (image:129) buildDomain os=linux dom=2 vcpus=4 [2008-07-03 14:47:03 718] DEBUG (image:204) domid = 2 [2008-07-03 14:47:03 718] DEBUG (image:205) memsize = 1024 [2008-07-03 14:47:03 718] DEBUG (image:206) image = /var/run/xend/boot/boot_kernel.r7ZROl [2008-07-03 14:47:03 718] DEBUG (image:207) store_evtchn = 1 [2008-07-03 14:47:03 718] DEBUG (image:208) console_evtchn = 2 [2008-07-03 14:47:03 718] DEBUG (image:209) cmdline = -B install_media=cdrom [2008-07-03 14:47:03 718] DEBUG (image:210) ramdisk [2008-07-03 14:47:03 718] DEBUG (image:211) vcpus = 4 [2008-07-03 14:47:03 718] DEBUG (image:212) features [2008-07-03 14:47:03 718] ERROR (XendDomainInfo:1688) XendDomainInfo.initDomain: exception occurred Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1663, in _initDomain File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 112, in createImage File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 131, in createDomain File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 537, in buildDomain File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 221, in buildDomain Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') [2008-07-03 14:47:03 718] ERROR (XendDomainInfo:440) VM start failed Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 420, in start File "/usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1691, in _initDomain VmError: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') [2008-07-03 14:47:03 718] DEBUG (XendDomainInfo:1811) XendDomainInfo.destroy: domid=2 [2008-07-03 14:47:03 718] DEBUG (XendDomainInfo:1830) XendDomainInfo.destroyDomain(2) [2008-07-03 14:47:03 718] ERROR (XendDomainInfo:89) Domain construction failed Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 87, in create File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 420, in start File "/usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1691, in _initDomain VmError: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') [2008-07-03 14:47:03 718] DEBUG (XendDomainInfo:1811) XendDomainInfo.destroy: domid=None [2008-07-03 14:47:03 718] DEBUG (XendDomainInfo:1830) XendDomainInfo.destroyDomain(None) pyGRUB version 0.6 ?????????????????????????????????????????????????????????????????????????? ? Solaris Express ? ? Solaris Express Serial Console ttya ? ? Solaris Express Serial Console ttyb (for lx50, v60x and v65x) ? ? ? ? ? ? ? ? ? ? ? ?????????????????????????????????????????????????????????????????????????? Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS. ''e'' to edit the commands before booting, ''a'' to modify the kernel arguments before booting, or ''c'' for a command line. Will boot selected entry in 58 seconds bash-3.2# Error: (2, ''Invalid kernel'', ''elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images'') bash-3.2#
Hi, I am getting exactly the same error as Saurabh: # xm create -c /opt/vic/xen/config_files/pv_vic.py -------------------------------------------------------------- pyGRUB version 0.5 ┌────────────────────────────────────────────────────────────────────────┐ │ Solaris Express │ │ Solaris Express Serial Console ttya │ │ Solaris Express Serial Console ttyb (for lx50, v60x and v65x) │ │ │ │ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────┘ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS. 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line. Will boot selected entry in 1 seconds # Error: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images') -------------------------------------------------------------------- I am running OpenSolaris as Domain0 and I am trying to install OpenSolaris also as Domain1: # uname -a SunOS ge10 5.11 snv_86 i86pc i386 i86xpv # virsh list --all Id Name State ---------------------------------- 0 Domain-0 running This is the config file I am using, I tried many of them already, always unsuccessfully... # cat /opt/vic/xen/config_files/pv_vic.py name = "opensolaris-pv-install" vcpus = 1 memory = "1024" #bootloader = "/usr/lib/xen/bin/pygrub" #kernel = "/platform/i86xpv/kernel/amd64/unix" ramdisk = "/opt/vic/xen/ramdisks/x86.miniroot" extra = "/platform/i86xpv/kernel/amd64/unix -B console=ttya,livemode=text" disk = ['file:/opt/vic/xen/os_images/sol-nv-b98-x86-dvd.iso,6:cdrom,r','file:/opt/vic/xen/virtualdisks/disk01.img,0,w'] vif = [''] on_shutdown = "destroy" on_reboot = "destroy" on_crash = "destroy" I have been googeling quite a lot but without any luck, any advice??? Thanks a lot in advance. -- This message posted from opensolaris.org _______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org
Boris Derzhavets
2008-Oct-02 18:34 UTC
Re: xm create fails with ''elf_xen_note_check: ERROR:''
> Hi, I am getting exactly the same error as Saurabh: > > # xm create -c /opt/vic/xen/config_files/pv_vic.py > > ------------------------------------------------------ > -------- > pyGRUB version 0.5 > ┌───────────────────────────────────────────────────── > ───────────────────┐ > │ Solaris Express > > > │ Solaris Express Serial Console ttya > │ > yb (for lx50, v60x and v65x) │ > │ > > > │ > > > │ > > > │ > > > │ > > > └──────────────────────────────────────────────────── > ───────────────────┘ > Use the ^ and v keys to select which entry is > highlighted. > Press enter to boot the selected OS. 'e' to edit > the > commands before booting, 'a' to modify the kernel > arguments > before booting, or 'c' for a command line. > > > Will boot selected entry in 1 seconds > Error: (2, 'Invalid kernel', 'elf_xen_note_check: > ERROR: Will only load images built for the generic > loader or Linux images') > ------------------------------------------------------ > ------------- > > I am running OpenSolaris as Domain0 and I am trying > to install OpenSolaris also as Domain1: > > # uname -a > SunOS ge10 5.11 snv_86 i86pc i386 i86xpv > > # virsh list --all > Id Name State > --------------------------------- > 0 Domain-0 running > This is the config file I am using, I tried many of > them already, always unsuccessfully... > > # cat /opt/vic/xen/config_files/pv_vic.py > name = "opensolaris-pv-install" > vcpus = 1 > memory = "1024" > #bootloader = "/usr/lib/xen/bin/pygrub" > #kernel = "/platform/i86xpv/kernel/amd64/unix" > ramdisk = "/opt/vic/xen/ramdisks/x86.miniroot" > extra = "/platform/i86xpv/kernel/amd64/unix -B > console=ttya,livemode=text" > disk > ['file:/opt/vic/xen/os_images/sol-nv-b98-x86-dvd.iso,6 > :cdrom,r','file:/opt/vic/xen/virtualdisks/disk01.img,0 > ,w'] > vif = ['']Your intend is to create SNV98 PV DomU at SNV86 Dom0 ? I would try via virt-install command line and see what happens.> on_shutdown = "destroy" > on_reboot = "destroy" > on_crash = "destroy" > > > I have been googeling quite a lot but without any > luck, any advice??? > Thanks a lot in advance.-- This message posted from opensolaris.org _______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org
Thanks dbaxps, your comments made me realize of my mistake, I simply downloaded the wrong ISO image. I was trying to install sol-nv-b98-x86-dvd.iso as DomU on a "OpenSolaris 2008.05 snv_86_rc3 X86" Dom0 which will not work at all. Now I downloaded http://dlc.sun.com/osol/opensolaris/2008/05/os200805.iso and I followed the instructions on http://blogs.sun.com/mrj/entry/installing_opensolaris_on and it works fine. Appreciate your help. Vic. -- This message posted from opensolaris.org