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] solaris

To: mattias <mj@xxxxxx>
Subject: Re: [Xen-users] solaris
From: Thiago Camargo Martins Cordeiro <thiagocmartinsc@xxxxxxxxx>
Date: Mon, 8 Jun 2009 11:00:47 -0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Jun 2009 07:01:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5uHtOgbnd4IuUFdXY+up9uwT2eW2fMD+3M1GwRJCaWQ=; b=QGu8uPfKn2CRxOXO2+uh79gLZTpkZcoK8ec12a3EYn3bTWQlIM4ORPk+zkaLge8rZw 2gyPCZNA5NozD9hSo8WfVZtyVDbU3XrX3F1RpkamLg1yOVlaOolx48ThtmpEL4ATd6/m 9/yYUQO1RRB1S6Q+nJR9gW1E2NjK3P8agAtHE=
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 :cc:content-type; b=xf908cDFxtCFL9vBOYpr6aA90DkZgaPnpRhW2OeGYMtPXvKJY7n+9avbYho+u+9vM8 1dOgcFC6eDT6GACb7r4z3jJPBFlHbwiWZCM9la5w3XUsmXT3Pa/UhMtuhH4otqX0hG/P t7e1hkOfpsuYN3dfBRRk9EnUTDuBkBbwZMquY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <000001c9e6d4$7caabfb0$7b16e255@jonsson2>
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: <000001c9e6d4$7caabfb0$7b16e255@jonsson2>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Mattias!

 To install OpenSolaris 2008.11 as paravirt guest you'll need two files, one for the installation and another for runtime.

To install;

/etc/xen/osol-install.cfg
#
#  Hostname
#
name        = "opensolaris01"


#
# Stuff to boot the OpenSolaris 2008.11 CD (ISO) under a PVM
# PyGRUB will receive the osol-0811.iso file system to boot it.
#
bootloader  = '/usr/bin/pygrub'
kernel      = "/platform/i86xpv/kernel/unix"
extra       = "/platform/i86xpv/kernel/unix - nowin -B install_media=cdrom"
ramdisk     = "/boot/x86.microroot"

#
#  PyGRUB + memory size
#
memory      = '512'
vcpus       = 1

#
#  Disk device(s).
#
disk        = [ 'file:/mnt/images/osol-0811.iso,6:cdrom,r', 'file:/mnt/xendomains/opensolaris01/opensolaris01-disk1.img,0,w' ]

#
#  Behaviour
#
>on_reboot   = 'restart'
on_crash    = 'restart'

#
#  Networking
#
vif         = [ 'mac=XX:XX:XX:XX:XX:XX' ]

--------------------------

xm create -c osol-install.cfg

Login "jack" with password "jack".

su -                                               # The root password is opensolaris.
ps -Af | grep Xvnc                         # to see if the VNC is running.
vncpasswd /etc/X11/.vncpasswd  # to change the password for VNC session.
ifconfig -a                                     # to see your IP address.

From your dom0 or another machine, run:

 vncviewer IP_SOLARIS:1

 If you can't see the Xvnc, you can run one with the user jack:

jack:~$ mkdir .vnc ; cp .Xclients .vnc/xstartup
jack:~$ vncserver


 After installtion finishes, DON'T reboot! Come back to xen text console of your opensolaris installation and run these commands:

     beadm list
     pfexec beadm mount opensolaris /a
     pfexec bootadm update-archive -R /a
     tar cf /tmp/opensolaris-2008.11-kernel.tar /a/platform/i86xpv/kernel/unix /a/platform/i86pc/boot_archive
     scp /tmp/opensolaris-2008.11-kernel.tar root@YOUR_DOM0_IP:/var/lib/xen/kernels

 You'll need the ZFS ID, get it with:

     zpool get guid rpool

 Save the guid number

     pfexec zdb -d -e 14025158204312238343   <- Your guid!

 Save the Dataset ID for the ROOT/opensolaris, it will be used in runtime file.

     halt # your opensolaris installation

--------------------------

 Now you have to write your Dataset ID of the ROOT/opensolaris at the "extra" line, change the option "rpool/52" to your Dataset ID!

 At your dom0, run:

 cd /var/lib/xen/kernels
 tar vxf /tmp/opensolaris-2008.11-kernel.tar

To run:
/etc/xen/osol-runtime.cfg
#
#  Hostname
#
name        = "opensolaris01"

#
#  Kernel and ramdisk
#
kernel      = "/var/lib/xen/kernels/platform/i86xpv/kernel/unix"
ramdisk     = "/var/lib/xen/kernels/platform/i86pc/boot_archive"
extra       = "/platform/i86xpv/kernel/unix - nowin -B bootpath=/xpvd/xdf@0:a -B console=xen -B zfs-bootfs=rpool/52"


#
#  PyGRUB + memory size
#
memory      = '512'
vcpus       = 1

#
#  Disk device(s).
#
disk        = [ 'file:/mnt/xendomains/opensolaris01/opensolaris01-disk1.img,0,w' ]

#
#  Behaviour
#
>on_reboot   = 'restart'
on_crash    = 'restart'

#
#  Networking
#
vif         = [ 'mac=XX:XX:XX:XX:XX:XX' ]

--------------------------

 xm create osol-runtime.cfg

 That's it!

 I'm preparing this steps to the new version of the Xen Live CD v2.0 soon!

Good luck!
Thiago


2009/6/6 mattias <mj@xxxxxx>
Any working solaris para guest image?


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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>