WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How to install OpenIndiana DomU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to install OpenIndiana DomU
From: Christophe Bailleux <ch.bailleux@xxxxxxxxx>
Date: Sun, 6 Mar 2011 17:56:48 +0100
Delivery-date: Sun, 06 Mar 2011 08:58:47 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=nWksfZPznXrYQgzR9OZ+S06Qo0F2uxZr6PgJJvtcAhw=; b=BDy4kXxGeUX4qE6XgEJC2htcIYIFo3nKG0q/HVWno1PDY3VI9MnnESWk+TSINNKWd/ veP4g5v6tmc2WbcA02SgOCuXRA48/9nPna73WfhCyeovkfNd5b+Ukpvi+PQv3LB8lSsy HIqfxU/Bhj5LsisXHN5vseUr3RPOlu81H3ZYA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YTJIjuxBGcnvpxQUfzLKKOPB2XeeEaqjV6ZFwvXACN1QWDbKJQq5aRcVteqy4id0ds c7kaXkF+eOrYbM+DlvRhskCk9uwhBhL488O7QHfLDB/2Is1V5dcBqqEgVvp7DoIdtq3O kKEtcnXu5EheG6qvg8JBZjA+8RwDF8rgMYJBA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinJ2fhGVC_1x6=OXWcmdKSH4fpcBcqcq=EWyg2x@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikdc6MaVGH6EjDavCdXx+CjEkT2QNwofZkJzsiU@xxxxxxxxxxxxxx> <AANLkTinJ2fhGVC_1x6=OXWcmdKSH4fpcBcqcq=EWyg2x@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks for your help.

When i try your config file i get this:

   pyGRUB  version 0.6
 
 │ OpenIndiana Development oi_148 X86                    
 │ Boot from Hard Disk                                                 
           

Error: Boot loader didn't return any data!

What's the problem with the bootlooder ? Any idea ?



On Sun, Mar 6, 2011 at 4:55 PM, Fajar A. Nugraha <list@xxxxxxxxx> wrote:
On Sun, Mar 6, 2011 at 10:25 PM, Christophe Bailleux
<ch.bailleux@xxxxxxxxx> wrote:
> Hi,
>
> I would like to install OpenIndiana on domU.
> My dom0 is runnning under Debian Squeeze.
>
> Do you have any information about it ? Maybe a config sample ?

Funny thing about that. INSTALLING is currently easier than RUNNING it :P

Installing it as HVM domU should be straight forward, so I'm going to
write what I learned installing it as PV domU. You can run Openindiana
(I tested b148) and Solaris 11 Express (I tested 2010.11) Live ISO by
simply using pygrub. The config is something like this (tested on Xen
4.0.1)

#=============================
memory = "1024"
vif = [ "mac=00:16:3E:C7:E3:7F, bridge=br0, vifname=oi-e0" ]
disk =  [
       "file:/data/iso/oi.iso,xvdc:cdrom,r",
       "phy:/dev/zvol/vm/oi/xvda,xvda,w",
       ]

vcpus=1
bootloader = "/usr/bin/pygrub"
localtime = 1
> > #=============================

To make your life easy, use a bridge that has dhcp server on it. If
you have libvirt/virt-manager installed, there should a be a virbr0
that you can use.

Once you got the text console login, you can get X session with vnc
following http://blogs.sun.com/mrj/entry/installing_opensolaris_on
(search for "jack", start from there). If you need root access, you
can use "sudo -s".

After installation completes, now comes the complicated part.
openindiana comes with zfs pool version 28, which seems to be newer
than what pygrub supports. So don't shutdown/reboot yet, cause there's
couple of things you must do first:
- copy the kernel (/platform/i86xpv/kernel/amd64/unix) and ramdisk
(/platform/i86pc/amd64/boot_archive) from the installation root
(forgot what the path was on live session, should be easy to find out)
to dom0, using scp/rsync/whatever.
- find out what your "/" dataset is (Try running "zfs list". It should
be "rpool/ROOT/openindiana")
- find out what your domU disk is detected as (Try "format". It should
be "/xpvd/xdf@51712" for xvda).

Then you can shutdown the live session. Create a new config file that
looks something like this

#=============================
memory = "1024"
vif = [ "mac=00:16:3E:C7:E3:7F, bridge=br0, vifname=oi-e0" ]
disk =  [
       "phy:/dev/zvol/vm/oi/xvda,xvda,w",
       ]

vcpus=1
kernel = "/vm/oi/boot/unix"
ramdisk = "/vm/oi/boot/boot_archive"
extra = "/platform/i86xpv/kernel/amd64/unix -B
zfs-bootfs=rpool/ROOT/openindiana,bootpath='/xpvd/xdf@51712:a'"
localtime = 1
#=============================

The "zfs-bootfs" part points to your "/" dataset, while "bootpath"
points to domU disk's first slice. Note that the end of "extra" line
has both single quote (') and double quote (").

Good luck.

--
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users