The original blog was moved to:-
http://www.neuhalfen.name/2008/12/04/Installing_OpenSolaris_2008_11_in_a_Linux_dom0/

Quote:-

Getting ZFS boot ID

The new installer unmounts the new boot environment before we can ge a hold on 
it. So we mount it by ourself:

$ beadm list
BE          Active Mountpoint Space Policy Created
--          ------ ---------- ----- ------ -------
opensolaris R      -          2.21G static 2008-12-05 06:58
$ pfexec beadm mount opensolaris /a

Update the boot archive

$ pfexec bootadm update-archive -R /a

And now get the kernel and boot_archive for you dom0 from 
/a/platform/i86xpv/kernel/unix and /a/platform/i86pc/boot_archive.
You will need the ZFS-ID of your boot-environment. Your harddisk will be known 
as c3d0, your boot-slice containing the ZPOOL is on c3d0s0. We need the ID of 
the /ROOT/opensolaris zpool. First, determine the pool_guid:

$ zpool get guid rpool
NAME   PROPERTY  VALUE  SOURCE
rpool  guid      14025158204312238343  -

You could also have used zpool import like this — the choice is yours.

# pfexec zpool import
  pool: rpool
    id: 14025158204312238343
 state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: http://www.sun.com/msg/ZFS-8000-EY
config:
        rpool       ONLINE
        c3d0s0    ONLINE

The guid by iself is useless – we need the ID of the ZPOOL inside the pool.

$ pfexec zdb -d -e 14025158204312238343
Dataset mos [META], ID 0, cr_txg 4, 512K, 84 objects
Dataset 14025158204312238343/ROOT/opensola...@install [ZPL], ID 84, cr_txg 276, 
2.21G, 101427 objects
Dataset 14025158204312238343/ROOT/opensolaris [ZPL], ID 50, cr_txg 72, 2.21G, 
101427 objects
Dataset 14025158204312238343/ROOT [ZPL], ID 44, cr_txg 69, 18.0K, 4 objects
Dataset 14025158204312238343/dump [ZVOL], ID 36, cr_txg 13, 512M, 3 objects
Dataset 14025158204312238343/export/home/jens [ZPL], ID 68, cr_txg 80, 20.5K, 6 
objects
Dataset 14025158204312238343/export/home [ZPL], ID 62, cr_txg 78, 19.0K, 5 
objects
Dataset 14025158204312238343/export [ZPL], ID 56, cr_txg 76, 19.0K, 5 objects
Dataset 14025158204312238343/swap [ZVOL], ID 30, cr_txg 8, 16K, 3 objects
Dataset 14025158204312238343 [ZPL], ID 16, cr_txg 1, 72.0K, 12 objects

Your output might look different. Look out for /ROOT/opensolaris (here: 50). 
Remember it!
-- 
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to