Friday Dec 07, 2007
Virtualization - Using logical domains (LDom)
You have heard about this word "virtualization" now days in the IT world. Logical domains (LDOM) is one of the para virtualization available with the Sun Sparc T1 and T 2 systems(Sun4v). You can follow these simple steps to create your logical domains on your T1 and T2 systems. If you want to try it on x86 boxes , please use XEN
Before going to the install , understand the key components in LDOM's.
Hypervisor
Software piece works on the top of the hardware. Responsible for maintaining the isolation of domains. Interacts between the hardware and the OS.
Control Domain
Creats and manages the other logical domains ans service and services
Service, I/O domains
Provides the virtual network switch or virtual disk
Guest Domain
Uses the services from the services and I/O domains and is managed by the control domain. In broad term , can be considered as the additional OS which will get installed on the machine
Virtual devices
.All the guest domains will be accessing the virtual devices. Like CPU,memory MAU,NIC,Disks,Consoles.
Ldom manager
Controls hypervisor and all domains. It can run in any domain, but only 1 domain at a time. its a Cli utilty exposes to the administrator. maps logical domains to physical resources.
Now its ready for action:---
Get a T1000 or T2000 box
Install Solaris 10 U3 or higher
Connect to Service processor or SC to check the firmware version
sc> show host
Sun-Fire-T2000 System Firmware 6.4.2 2007/04/02 18:07
Host flash versions:
Hypervisor 1.4.1 2007/04/02 16:37
OBP 4.26.1 2007/04/02 16:26
POST 4.26.0 2007/03/26 16:45
Upgrade your system firmware if its below 6.4.2. If its below 6.4.2 , please follow the instruction mention at the bottom of this page or refer the firmware upgrade docs.
Check the OS verison and patch level
# uname -a
SunOS 5.10 Generic_118833-36 sun4v sparc SUNW,Sun-Fire-T200
# pkginfo -x | grep jass
upgrade the OS level or add the patches/packages
-bash-3.00# patchadd 124921-xx
-bash-3.00# patchadd 125043-xx
-bash-3.00# pkgadd -d SUNWldm
-bash-3.00# pkgadd -d SUNWjass
Ensure that the install packages and services are running
-bas>h-3.00# svcadm enable ldmd
-bash-3.00# svcadm enable vntsd
-bash-3.00# /opt/SUNWldm/bin/ldm list
Name State Flags Cons VCPU Memory Util Uptime
primary active -n-cv SP 32 32G 0.5% 6d 3h 29m
-bash-3.00# psrinfo -vp
The physical processor has 32 virtual processors (0-31)
UltraSPARC-T1 (cpuid 0 clock 1200 MHz)
-bash-3.00# ldm add-vdiskserver primary-vds0 primary
-bash-3.00# ldm add-vconscon port-range=5000-5100 \
primary-vcc0 primary
-bash-3.00# ldm add-vswitch net-dev=e1000g0 primary-vsw0 primary
-bash-3.00# ldm set-vcpu 4 primary
-bash-3.00# ldm set-memory 1g primary
-bash-3.00# ldm add-config initial
-bash-3.00# ldm list-config
factory-default [current]
initial [next]
-bash-3.00# shutdown -y -g0 -i6
-bash-3.00# ldm add-domain myldom1
-bash-3.00# ldm set-vcpu 4 myldom1
-bash-3.00# ldm set-mau 1 myldom1
-bash-3.00# ldm set-memory 1g myldom1
-bash-3.00# ldm add-vnet vnet1 primary-vsw0 myldom1
-bash-3.00# ldm add-vdiskserverdevice /images/ldom1.disk vol1@primary-vds0
-bash-3.00# ldm add-vdisk vdisk1 vol1@primary-vds0 myldom1
-bash-3.00# ldm set-variable autoboot\?=false myldom1
-bash-3.00# ldm set-variable boot-device=/virtual-devices@100/channel-devices@200/disk@0 myldom1
-bash-3.00# ldm bind-domain myldom1
-bash-3.00# ldm start-domain myldom1
Now your ldom is ready .You can follow the below steps to get your virtualized console
>-bash-3.00# telnet localhost 5000
Trying 127.0.0.1...
Connected to localhost....
Escape character is '^}'.
Connecting to console “myldom1” in group “myldom1” ....
Press ~? for control options ..
{0} ok
>{0} ok show-disks
a) /virtual-devices@100/channel-devices@200/disk@0
q) NO SELECTION
Enter Selection, q to quit:q
{0} ok show-nets
a) /virtual-devices@100/channel-devices@200/network@0
q) NO SELECTION
Enter Selection, q to quit:q
{0} ok banner
Sun Fire T200, No Keyboard
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.26.1, 1024 MB memory available, Serial #66588434.
Ethernet address 0:14:4f:f8:f:12, Host ID: 83f80f12.
To Install Solaris OS using Jumpstart
{0} ok show-nets
a) /virtual-devices@100/channel-devices@200/network@0
q) NO SELECTION
Enter Selection, q to quit: a
/virtual-devices@100/channel-devices@200/network@0 has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for /virtual-devices@100/channel-devices@200/network@0
{0} ok nvalias vnet0 /virtual-devices@100/channel-devices@200/network@0
{0} ok boot vnet0
This will start the installation of Solaris from the jumpstart server in the network. Make sure you have added this mac id generated for ldom in the /etc/ethers file of your jumpstart server to start it.
To use file as virtual disk to install Solaris on Guest domain
#/usr/sbin/mkdir -p /ldoms/disk-images
# /usr/sbin/mkfile 5G /ldoms/disk-images/s10-5g.img
# ldm add-vdsdev /ldoms/disk-images/s10-5g.img vol2@primary-vds0
# ldm add-vdisk vdisk2 vol2@primary-vds0 myldom1
Wednesday Aug 08, 2007
What's New in SPS 6.0?
1) Install Step Component Variable
Allow plans to set component variables on install
2) Dynamic Targetting
This feature provides you the ability to dynamically target components
3) Fine Grained Host Locking
This feature allows you to run multiple plans on same host and provides ability to disable locking of virtual hosts. It is a wonderful feature which you can run the plans in parellel on same host without interupting each others task. This provides you a lot of configurable parameters which you can set according to your requirement.
4) Credentail Constraint
Ability to specify the minimum / maximum username and password length
Ability to specify a character set to which username and password must adhere
5) Service Tag Support
This feature provides SPS to align with the Sun connection . This provides the online patch and application management. If you want to know more about Sun connection Click Here
6) Unix Reboot
Now the MS,RA*& LD comes online even after reboot of the host. This feature provides the startup scripts for all platforms along with the installer. And we introduced "reboot" function in plan which will reboot the hosts. Reboot is required to apply some unix patches, so No manual reboot of hosts and No need of wrting the startup scripts.
7) Installed Component Views
8) Import /Export
Ability to import/export SPS components/plans and compoents from one environment to another. Now you can bundle n number of plans and components from your MS to another.
9) New UI
New UI which you love to work with. The new UI provides you the inline and Online help.
10) SPS Modeler
Its an easy tool(IDE) for writing plans and components. Using the modeler you can write the complex plans and components quickly. Not only that even you can directly check in /check out the from/to your production/test server from your own desktop. This is a wonderful product which have
Intensive help to write the plans, Sysntax Validation & Plan/comp checkin/checkout facilities and much more
For more details on SPS Modeler ClickHere
11) rpm Installers for Linux
You can choose your own installer type for MS and CLI either File based or RPM based for the linux platforms. So better packaging for your environment.
12) New JDK and Postgress
The latest versions of JDK 1.5 and the New version of Postgress 8.1.4 for more stabilty and reliabilty.
13) New Platforms
This release supports RedHat Linux WS 3.0 U5 and Solaris 10 U3 /U4. And what more ... SPS suppports SOLARIS ZONES.
Stay tuned for more details....
Monday Jul 30, 2007
Here is my blog on SPS
N1 Service Provisioning is a application/service which help you to Install/Monitor/Upgrade/virtualize the Opearting systems and applications on 1000's of hosts across the geos in heterogeneous environments.
N1 Service Provisioning System is capable of automating application provisioning through "One-Touch" installation, configuration, and updating thousands of servers. This is a huge value proposition for the customers for it drastically reduces the deployment time from weeks or months to days or hours and thereby reduces costs.
N1 Service Provisioning System is a comprehensive application provisioning tool that eliminates the need for custom scripts. N1 Service Provisioning System's Application-Aware approach to provisioning enables data center personnel to think and plan in terms of services and application components, rather than individual files and custom scripts. The result is streamlined, consistent, and accelerated data center operations.
Do I need to use this software?
Do you want to automate the installation and configuration of OS?
Apply the patches across many hosts in different geo's?
Install Applications across the number of hosts or datacentres?
Install the rpm's/patches across the number of hosts or datacentres?
Would like to install the solaris zones and apps over zones?
Need to virtulalize your SAP deployments across the hosts depends on load? And after all,
Do you want to save the time,errors in deployment and need to reduce the Operationg cost? - all by "One touch" mechanism
If your answer is "yes" for any of the above question , you can start using SPS and It's FREE!!!
What inside SPS?
-Plans
A plan is defined by an xml-based file that contains a set of instructions for deploying one or more components to one or more hosts. Each execution plan step is an action which is performed on a component.
Example: A simple plan which will reboot the host if you run this plan.
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by N1 SPS -->
<executionPlan xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
name='wrstep' version='5.2'
xsi:schemaLocation='http://www.sun.com/schema/SPS plan.xsd'
xmlns='http://www.sun.com/schema/SPS'>
<simpleSteps>
<reboot timeout='1'></reboot>
</simpleSteps>
</executionPlan>
-Components
A component is a deployable object within the N1 Service provisioning System software. A component can be a single object,such as file or a Windows registry key. A component can also be a collection of files that represent a specific entity , such as a set of binaries,configuration files,and data files that make up a web server.
Example:
1)One or more files/directories
2)A file archive such as EAR, WAR or COM
- Plugins
Plugins are packaged solutions that uses plans and components and extends the provisioning capabilty of the product for a specific platform,application, or environment. Its easy way to provision the application. System administrators can easily deploy the applications using plugins.
Example: Available plugins
1) Oracle 10g plugin - To install Oracle 10g DB and APP server
2) Weblogic plugin - To install Weblogic
3) Websphere plugin - To install Websphere
4) OSP - To install OS on the hardware boxes and configurations
5) Linux rpm- - To install rpm's on the linux boxes
6) Solaris plugin - To apply patches/packages + zones in solaris 10
7) Java Appserver - To install Java Appserver + Webserver
- Modeler
Its an easy tool(IDE) for writing plans and components. Using the modeler you can write the complex plans and components quickly. Not only that even you can directly check in /check out the from/to your production/test server from your own desktop. This is a wonderful product which have
Intensive help to write the plans, Sysntax Validation & Plan/comp checkin/checkout facilities and much more.
For more details on SPS Modeler Click here
Where can I get the SPS
You can get it for free Click Here to Download Try it out and enjoy the difference!!
Tuesday Jul 24, 2007
Its a passion to work in sun micro systems. The innovation and the technology we deliver to the community gives us the energy to work/play in our playground(office). It is ofcourse a great place to work.
Saturday Jun 30, 2007
This document provided the easy configuration of SSL in SPS . Configuration screenshot are available at the bottom of the page.
[Read More]
Hi
Its very usefull information ..can you advice...
Hi Saju,
Thanks a lot!! Using the s...
Hi Saju,
Can you help me better understand where...
Hi Saju,
Thanks a lot for the steps of LDOM i...
This is help full...please elaborate if I wan...