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#
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to