Hi,

I want to create an USB stick with Solaris that can be booted on bare 
metal and in a QEMU virtual machine -- but it does not work as expected:
 
I can boot the USB stick in QEMU but I can not boot it on bare metal.
 

Booting the USB stick on bare metail always leads to the error message
 

 error reading device labels
....

spa_import_rootpool: error 22
 
 panic : cannot mount rootpath
...


 
 What I've done until now:
 

1. boot the Milax CD (Solaris snv95) in QEMU/kvm (under Linux) using
 
  sudo kvm  -net user -usb -usbdevice tablet -L /usr/share/qemu -m 512 
-net nic -redir tcp:1135::22 -name "Milax" \
         -hda /dev/sdb -cdrom /data/nobackup/iso/milax.iso -boot d

  and install Solaris snv95 (Milax) with the zfsinstall script from 
Milax on the USB stick
 
  (-> /dev/sdb in Linux is the USB stick;  in QEMU the USB stick is a 
normal harddisk for Solaris)


  2. after the installation finished I created the signature file for 
the grub command findroot:

(root at milax)# ls -l /milaxusb/boot/grub/bootsign/pool_milaxusb
-rw-r--r--   1 root     root           0 Oct 31 10:27 
/milaxusb/boot/grub/bootsign/pool_milaxusb

and added the findroot command to the grub menu entries:

  title MilaX 0.3.2 (32 bit)
        findroot pool_milaxusb
        kernel$ /platform/i86pc/kernel/unix -B $ZFS-BOOTFS,console=text
        module$ /platform/i86pc/boot_archive


  3. Then I shutdown the virtual machine,  attached the USB stick to a 
machine running Solars snv_101 and installed the grub
  from that Solaris version on the USB stick using installgrub
 
  installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c3t0d0s1


Now I can boot  the USB stick in QEMU but I can not boot it on bare metal.


I already tested the following work around which I found via google:
 
Boot the machine from the Milax CD, attach the USB stick, and import the 
ZFS pool. It seems that this solutions destroys the grub configuration
on the USB stick because after doing this I can not boot the USB stick 
anymore (neither in QEMU nor on bare metal).  The booting always
ends in the grub shell (-> no grub menu is shown).
 
 
My understanding of the findroot command is, that it checks for the 
signature file and uses the disk on which it finds the file as root disk 
for Solaris (independent from the type of the disk)
     

So I think the configuration should work as expected -- or do I miss 
something here?
     
 regards
 
Bernd
 
 

 

-- 
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M s temprano que tarde el mundo cambiar .
                        Fidel Castro


Reply via email to