Ldom Quick Setup Guide
Ldom Quick Setup Guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
www.geekyfacts.com
Terminalogy
Hypervisor
Hypervisor is a thin firmware layer that provides a stable virtualized machine architecture to
which an operating system can be written.
It resides in the flas PROM of the motherboard and act as interface between operating system
and the hardware.
It provides a set of support fuctions to the operating system, so that the OS does not need to
know intimate details of how to
perform fuctions with the hardware.
Logical Domain
Logical domain is a discrete logical grouping with its own operating system, resources and
identity within a single computer system.
Each logical domain cab be created, destroyed, reconfigured, and rebooted independently,
without requiring a power cycle of the
server. We can run a variety of applications software in different logical domains and keep them
independent of performance
and security purposes.
1 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
The Logical Domains Manager is used to create and manage logical domains. There can be
only
one Logical Domains Manager per serer. The Logical Domains Manager maps logical domains
to physical resources.
Control Domain
Domain in which the Logical Domain Manager runs allowing you to create and manager other
logical domains and allocate virtual resources
to other domains. There can be only one control domain per servers. The initial domain created
when installing Logical Domains software is a
control domain and is named primary.
Service Domain
Domain that provides virtual device services to other domains, such as a virtual switch, a virtual
console concentrator, and a
virtual disk server.
I/O Domain
Domain that has direct ownership of and direct access to physical I/O devices, such as a
network card in a PCI express controller.
Shares the devices with other domains in the form of virtual devices wehn the I/O domain is
2 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
Guest Domain
Domain that is managed by the control domain and uses services from the I/O and service
domains.
Patch Installation
Refer the Logical Domains 1.0.2 Release notes for the required patches/softwares for your OS
release
3 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
Refer the Logical Domains 1.0.2 Release notes for the required System Firmware patches for
your OS release
sc>showhost
2) Download the latest firmware based on your hardware model from http://sunsolve.sun.com
3) Use sysfwdownload utility comes with the downloaded firmware package to install the
firmware
#./sysfwdownload [firmware].bin
4 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
sc>flashupdate -s 127.0.0.1
sc>resetsc -y
sc>poweron
sc>boot
5 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
#./install-ldm
Welcome to the LDoms installer.
You are about to install the domain manager package that will enable
you to create, destroy and control other domains on your system. Given
the capabilities of the domain manager, you can now change the security
configuration of this Solaris instance using the Solaris Security
Toolkit.
Enter a, b, or c [a]:
The changes made by selecting this option can be undone through the
Solaris Security Toolkit's undo feature. This can be done with the
'/opt/SUNWjass/bin/jass-execute -u' command.
Installing LDoms and Solaris Security Toolkit packages.
pkgadd -n -d "/ldom/LDOM/LDoms_Manager-1_0_2/Product" -a pkg_admin SUNWldm.v
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
6 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
All LDOM related commands will be available under /opt/SUNWldm/bin/ldm. Add this path to
your PATH variable(export PATH=$PATH:/opt/SUNWldm/bin/ldm)
Virtual disk server helps importing virtual disks into a logical domain from the control domain.
7 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
Virtual Console concentrator server provides terminal service to logical domain consoles.
Virtual Switch server enables networking between virtual network devices in logical domains.
8 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:11:4a:19:ac:3c e1000g1 switch@0 prog,promisc
ether 0:2:ac:d9:11:12
9 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
#ldm list-spconfig
factory-default [current]
#ldm list-spconfig
factory-default [current]
initial [next]
10 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
Networking between control,service and other domains is disabled by default. To enable this,
the virtual switch device
should be configured as a network device.
Login to the server console and perform the following network configuration steps,
primary#ifconfig -a
11 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
Bring down the primary interface(use appropriate interface name in place of e1000g1)
12 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
13 / 14
LDOM(1.0.2) quick setup guide
Written by geekyS
Monday, 15 December 2008 06:39 - Last Updated Tuesday, 16 December 2008 12:28
#ldm list-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 0.2% 1h 3m
gdomain inactive ----- 8 1G
Configure the guest domain as jumpstart client and initiate jumpstart from guest domain
console. Login to guest domain console from control domain
14 / 14