Posted by on November 29, 2007

This is a step by step guide to installing solaris rev. 77 (this guide assumes smp, and 64bit proccessor)It’s quite long so… Here is my config file which has two halves to comment out depending on the state of the domU (installing or installed)*PLEASE BE AWARE THERE ARE LINE BREAKS THAT NEED FIXING AS IT WOULDN’T FIT IN WORDPRESS* 

 
# Solaris Build - Dan rev 3 - 29/11/07
# GENERIC BUILD INFO
 
name = "solaris-a"
memory = "512"
vif = [ 'mac=00:16:3E:00:00:22, bridge=xenbr0','mac=00:16:3E:00:00:23
, bridge=xenbr0','mac=00:16:3E:00:00:24, bridge=xenbr0' ]
on_shutdown = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'
 
# Script options
# - Generic install uses a kernel and ramdisk extracted from rev 66,
also boots the domU using the install dvd iso
# - Generic installed removes the inclusion of the iso, and uses the
#internal kernel/ramdisk from , this is important as the ramdisk
#(boot_archive) contains things like nic fix/kernel tweaks etc..
 
# GENERIC INSTALL (with hack)
#disk = [ 'file:/xen/iso/sol-nv-b77-x86-dvd.iso,6:cdrom,r',
'phy:/dev/rootdg/sol-a,0,w' ]
#kernel = '/xen/dump/solaris/solaris-kernel'
#ramdisk = '/xen/dump/solaris/solaris-ramdisk'
#extra = '/platform/i86xpv/kernel/amd64/unix -kd -B - install nowin
-B install_media=cdrom'
 
# GENERIC INSTALLED
disk = [ 'phy:/dev/rootdg/sol-a,0,w' ]
ramdisk = '/platform/i86pc/amd64/boot_archive'
extra = '/platform/i86xpv/kernel/amd64/unix'
root = '/dev/dsk/x0d0s0'
 

Currently i’ve installed my solaris, so you for doing an install swap the comments around also note paths will need changing etc. So thats my basic config file (512 ram, 3 x nic etc.) booting using the dvd iso of opensolaris release 77. The first problem we will have installing this is that the hsfs driver for mounting cd’s is buggy and therefore stops us being able to install. My solution for this was to extract the kernel and ramdisk from a previous version of solaris (rel. 66 worked for me). My config then will boot up using this kernel and ramdisk, and use the install dvd of release 77.Also note that my extra line forces the kernel to drop to the debugger as soon as it starts, there is an I/O bug in opensolaris. This will mean that the installer will crash as it makes it’s way through the install, unless you do a small install and then it can sometimes *just* make it through without hanging. As the domU boots you will be presented with the debug prompt:

 
Loading kmdb...
Welcome to kmdb
Loaded modules: [ unix krtld genunix ]
[0]>

here you need to enter:

workaround_6557577?W 1

after which it will show the value has changed. After this we will need to continue the boot process, so type:

 
:c

Off we go, this info was taken from here which is a fantastic source for fixing your open solaris domU’s.

                            Now onto the rest of the install                          

The installer will bring up a text menu, select number six and then do the following steps 

 
6. Single user shell
mount -F hsfs  /dev/dsk/c0d6p0 /cdrom
sysid-setup 
- 1. English 
- 2. PC Console
install-solaris

– Ensure that in disk layout you give / more than 1mb as auto layout is awfulThen select your install option, and install, once complete the system attempt to reboot however my configuration will just bring the domU down and require manual intervention to bring back up again.*now* if you are going to copy/clone/duplicate this basic domU, now is the time as it has apps installed just no identity (i.e. no IP/hostname etc and other configuration).Alter the domU config file so that it’s installing config is commented out and vice versa, and then bring the domU up. The domU will then boot up using the release 77 kernel and boot_archive etc (as specificied in my config file above) As soon as the box is up it will start it’s configuration wizard and prompt for ip’s etc..Finish up the last screen setting ip’s and generating ssh keys etc.. add a user (useradd) then add the two kernel settings so that they are always done without need of the kernel debugging.

bash-3.2# echo "set workaround_6557577 = 1" >> /etc/system
bash-3.2# echo "set xnf:xnf_cksum_offload = 0" >> /etc/system

* FINAL REBOOT *Thats it, depending on your set up you can leave the -c out of the xm create xxxxx.cfg as it will be up on the network etc.

Posted in: Computers
Tags: ,

Comments

Be the first to comment.

Leave a Reply


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*