Jürgen Keil
2007-Nov-14 18:56 UTC
linux xen 3.1.0 dom0 / solaris domU PV install from usb dvd reader
When trying to boot the OpenSolaris b75a dvd in a pv domU (using the linux phy:/dev/cdrom device as the source for the boot media), running on an Ubuntu 7.10 x86_64 dom0 box with xen 3.1.0 hypervisor, using the following config file... =======================================# # Hostname # name = ''solaris-install2'' # # Kernel + memory size # kernel = ''/boot/platform/i86xpv/kernel/amd64/unix'' ramdisk = ''/boot/amd64/x86.miniroot'' bootloader = ''pygrub'' extra = ''/platform/i86xpv/kernel/amd64/unix -kd - nowin -B install_media=cdrom'' memory = ''1024'' # # Disk device(s). # disk = [ ''phy:/dev/cdrom,6:cdrom,r'' ] # # Networking # vif = [ ''mac=ed:b7:8e:10:3b:b7'' ] # # Behaviour # on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' ======================================= ... Solaris prints the following to the console and fails to install: SunOS Release 5.11 Version snv_75 64-bit Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. WARNING: Found xen v3.1.0 but need xen v3.0.4-1-xvm WARNING: The kernel may not function correctly Configuring /dev WARNING: g.e. still in use! Solaris Interactive Text (Console session) Using RPC Bootparams for network configuration information. Attempting to configure interface xnf0... Reading ZFS config: done. ERROR: Cannot find install software, Exiting to shell # The message "WARNING: g.e. still in use!" is unusual, it is from gnttab_end_foreign_access_ref+0x55, with this stack backtrace [0]> $c gnttab_end_foreign_access_ref+0x55(20a, 0) xvdi_free_ring+0x1d(ffffff00c7923150) xdf`xdf_post_disconnect+0x36(ffffff00c73a9200) xdf`xdf_oe_change+0x17e(ffffff00c679e250, ffffff00c6c63be0, 0, ffffff0002377bc4) ndi_event_run_callbacks+0x94(ffffff00c48610c0, ffffff00c679e250, ffffff00c6c63be0, ffffff0002377bc4) xpvd`xpvd_post_event+0x24(ffffff00c660d680, ffffff00c679e250, ffffff00c6c63be0, ffffff0002377bc4) ndi_post_event+0x2d(ffffff00c679e250, ffffff00c679e250, ffffff00c6c63be0, ffffff0002377bc4) i_xvdi_oestate_handler+0x74(ffffff00c679e250) taskq_thread+0x1a7(ffffff00c6cda0e8) thread_start+8() xdf_oe_change() is called with an "XenbusStateClosed" event! That is: Using config file "./solaris-install2". Started domain solaris-install2 Loading kmdb... Welcome to kmdb Loaded modules: [ unix krtld genunix ] [0]> ::bp xdf`_init [0]> :c SunOS Release 5.11 Version snv_75 64-bit Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. WARNING: Found xen v3.1.0 but need xen v3.0.4-1-xvm WARNING: The kernel may not function correctly Configuring /dev Loaded modules: [ scsi_vhci crypto neti ptm xpv_psm ufs mpt zfs uhci hook ip logindmux usba specfs random sctp arp ] kmdb: stop at xdf`_init kmdb: target stopped at: xdf`_init: pushq %rbp [0]> xdf_oe_change+0x21:b <rcx::print XenbusState [0]> :c 2 (XenbusStateInitWait) <<<<<<<<<<<<<<<<<<<<<<<< kmdb: stop at xdf`xdf_oe_change+0x21 kmdb: target stopped at: xdf`xdf_oe_change+0x21: movl (%rcx),%ebx [0]> :c Loaded modules: [ md ] 4 (XenbusStateConnected) <<<<<<<<<<<<<<<<<<<<<<<< kmdb: stop at xdf`xdf_oe_change+0x21 kmdb: target stopped at: xdf`xdf_oe_change+0x21: movl (%rcx),%ebx [0]> :c 6 (XenbusStateClosed) <<<<<<<<<<<<<<<<<<<<<<<< kmdb: stop at xdf`xdf_oe_change+0x21 kmdb: target stopped at: xdf`xdf_oe_change+0x21: movl (%rcx),%ebx [0]> :c WARNING: g.e. still in use! Solaris Interactive Text (Console session) Using RPC Bootparams for network configuration information. Attempting to configure interface xnf0... Skipped interface xnf0 Reading ZFS config: done. ERROR: Cannot find install software, Exiting to shell # This doesn''t happen when I try to boot from an iso image file, like this: disk = [ ''file:/volumes/xen-install-images/solaris/solaris.iso,6:cdrom,r'' ] In the "file:" case, xdf_oe_change() gets an XenbusStateInitWait and XenbusStateConnected event, but no XenbusStateClosed. And the OpenSolaris installer is able to find the installation media CD just fine. Is this a linux / dom0 bug? This message posted from opensolaris.org