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

Re: [Xen-users] solaris


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

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

 


Rackspace

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