[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.