19 November 2009

Open Solaris Sparc Installation


Solaris Container Create and Configuration

Solaris 10 Zone create and confgure with step by step.

Example create the zone and configuration .

1.mkdir -p /export/zone1

mkdir /u00

mkdir /u01

mount /export/zone1



Create zone configure commands.

zonecfg –z zone1



create -b

set zonepath=/export/zone1

set autoboot=true

add fs

set dir=/u00

set special=/dev/md/dsk/d62

set raw=/dev/md/rdsk/d62

set type=ufs

end

add fs

set dir=/u01

set special=/dev/md/dsk/d63

set raw=/dev/md/rdsk/d63

set type=ufs

end

add net

set address=10.0.0.100

set physical=neg0

end

filesystem

add fs

set dir=/usr/local

set special=/path/to/some/storage/local/twilight

set type=zfs

end

commit

exit



Divece Add



zonecfg –z zone1

add device

set match=/dev/sound/*

end

exit







Memory add





# zonecfg -z zone1

add capped-memory

set locked=4g

end

exit



# zonecfg -z zone1

set max-locked-memory=4g

exit

Solaris 10 11/06: Yes, Oracle can use DISM in a Container. To enable the use of DISM, the global zone administrator must add the privilege "proc_lock_memory" to the Container. To do this, use zonecfg(1M) to add the line

set limitpriv=default,proc_lock_memory

2. zoneadm list -cv

3. zoneadm -z zone1 install

4. zoneadm list -cv

5. zoneadm -z zone1 ready

6. zoneadm list -cv

7. zoneadm -z zone1 boot

8. zlogin -C zone1







network configuration of a running zone



# ifconfig bge0 addif 192.168.200.202 zone zone1

# ifconfig bge0 removeif 192.168.200.202





To change the number of CPU shares associated with a container without re-booting it, use the prctl command, e.g.

# prctl -n zone.cpu-shares -r -v $SHARES `pgrep -z $ZONENAME init`

Delete or uninstall zone

# zoneadm -z uninstall

# zonecfg -z delete

at 11:34 PM 0 comments Posted by LinuxGuru
Links to this post
Opensolaris sparck Jumpstart
OPensolaris Jumpstart (Sparc)

Step 1. Install X86 OpenSolaris
Step 2. # pkg install SUNWinstalladm (Add package installadm)
Step3. Download Sparc 2009.06 (http://dlc.sun.com/osol/opensolaris/2009/06/osol-0906-ai-sparc.iso)
Step 4. installadm create-service -n 0906sparc -i 10.0.80.10 -c 10 -s /export/osol-0906-ai-sparc.iso /export/ai/0906sparc
Step 5. installadm list
Step 6. netstat -an | grep 5555
step 7. /usr/lib/inet/in.dhcpd -dv
Step 8. boot net:dhcp -s (Sparc Machine)



If in case You face Network unreachable issue please follow this step

What follows is a workaround to install OpenSolaris on older SPARC hardware using wanboot from the SXCE install media. This process assumes that you have correctly configured the AI server and client as documented in the OpenSolaris Automated Installer Guide.

To get started, you will need to download and burn the SXCE install media (snv_111 or higher is required due to a number of recent fixes to wanboot). Place the install media into your DVD drive, drop into the PROM, and issue:

{0} ok boot cdrom -F wanboot -o dhcp

At this point, the system will boot wanboot from the install media and pick up its configuration from DHCP.

Eventually, the boot process will fail with an error:

Rebooting with command: boot cdrom -F wanboot -o dhcp
Boot device: /pci@8,700000/scsi@6/disk@6,0:f File and args: -F wanboot -o dhcp
wanboot info: WAN boot messages->console
wanboot info: configuring /pci@8,600000/pci@1/network@0

1000 Mbps FDX Link up
wanboot info: Starting DHCP configuration
wanboot info: DHCP configuration succeeded

wanboot info: Default net-config-strategy: dhcp
wanboot progress: wanbootfs: Read 366 of 366 kB (100%)
wanboot info: wanbootfs: Download complete
Sat Jul 11 01:40:14 wanboot progress: miniroot: Read 175868 of 175868 kB (100%)
Sat Jul 11 01:40:14 wanboot info: miniroot: Download complete
SunOS Release 5.11 Version snv_111b 64-bit
Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
strplumb: open /devices/pseudo/clone@0:sd failed: 19
Hostname: opensolaris
Remounting root read/write
Probing for device nodes ...
Preparing automated install image for use
The AI image will be retrieved from /export/aiserver/osol-0906-ai-sparc/ directory
Downloading solaris.zlib archive
--18:41:16-- http://10.8.0.8:5555/export/aiserver/osol-0906-ai-sparc//solaris.zlib
=> `/tmp/solaris.zlib'
Connecting to 10.8.0.8:5555... failed: Network is unreachable.
FAILED
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Enter user name for system maintenance (control-d to bypass):

At this point you will need to login as root (the password will be empty) and configure your network interfaces manually:

# ifconfig -a plumb
# ifconfig dhcp

You will also need to enable DNS; this is required for pkg(1) to locate and install packages. It should be noted that the wanboot miniroot is very minimal; you do not have access to some of the more common commands such as cp and rmdir. Also, the miniroot is using dcfs(7FS) which means some additional steps need to be taken to modify the filesystem contents:

# cat > /etc/resolv.conf
nameserver

^D
# rm /etc/nsswitch.conf
# cat /etc/nsswitch.dns > /etc/nsswitch.conf

At this point, the network has been configured correctly, however we will need to clean up state to allow the svc:/system/filesystem/root:live-media service to continue booting:

# umount /etc/netboot
# rm -rf /etc/netboot
# umount /tmp

Before clearing the svc:/system/filesystem/root:live-media service, I had to disable a couple of services for a clean boot. The svc:/platform/sun4u/dscp:default and svc:/platform/sun4u/sckmd:default services were not necessary for my hardware and if left enabled, caused the install process to fail. These services are safe to disable unless you have the hardware referenced in the services:

# svcadm disable dscp
# svcadm disable sckmd

You are now free to clear the svc:/system/filesystem/root:live-media service:

# svcadm clear root:live-media
Remounting root read/write
Probing for device nodes ...
Preparing automated install image for use

Before logging out, you will also want to clear the svc:/network/dns/multicast:default service to ensure service discovery works correctly:

# svcadm clear dns/multicast

Once you logout from the maintenance shell the AI process will continue:

# logout
The AI image will be retrieved from /export/aiserver/osol-0906-ai-sparc/ directory
Downloading solaris.zlib archive
--18:43:25-- http://10.8.0.8:5555/export/aiserver/osol-0906-ai-sparc//solaris.zlib
=> `/tmp/solaris.zlib'
Connecting to 10.8.0.8:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83,334,656 (79M) [text/plain]

100%[====================================>] 83,334,656 50.36M/s

18:43:26 (50.28 MB/s) - `/tmp/solaris.zlib' saved [83334656/83334656]

Downloading solarismisc.zlib archive
--18:43:26-- http://10.8.0.8:5555/export/aiserver/osol-0906-ai-sparc//solarismisc.zlib
=> `/tmp/solarismisc.zlib'
Connecting to 10.8.0.8:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,857,408 (3.7M) [text/plain]

100%[====================================>] 3,857,408 --.--K/s

18:43:26 (47.53 MB/s) - `/tmp/solarismisc.zlib' saved [3857408/3857408]

--18:43:26-- http://10.8.0.8:5555/export/aiserver/osol-0906-ai-sparc//install.conf
=> `/tmp/install.conf'
Connecting to 10.8.0.8:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 61 [text/plain]

100%[====================================>] 61 --.--K/s

18:43:26 (2.44 MB/s) - `/tmp/install.conf' saved [61/61]

Done mounting automated install image
Configuring devices.
Reading ZFS config: done.

opensolaris console login: Service discovery phase initiated
Service name to look up: 0906sparc
Service discovery finished successfully
Process of obtaining configuration manifest initiated
Configuration manifest obtained
Automated Installation started
The progress of the Automated Installation can be followed by viewing the logfile at /tmp/install_log

At this point you should be good to go - Enjoy!
at 10:13 PM 3 comments Posted by LinuxGuru
Links to this post
Subscribe to: Posts (Atom)
Followers
Blog Archive



This work has done my one of colleague in Xerago E-Biz Pvt LTD. His name is Mr.Kumareasan.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home