Enter your Email


BTOI | © copyight


Feb 22, 2010
Solaris LDOM Virtualization
I have created LDOM on Sun Blade T6320 server using the below given procudure. Please use this as a beginners guide for your LDOM creation. Refer Sun online documentation on LDOM for more information on this.
-------------------------------------------------------------------------------------

Sun Logical Domains or LDoms is a full virtual machine that runs an independent operating system instance and contains virtualized CPU, memory, storage, console, and cryptographic devices. This technology allows you to allocate a system resources into logical groupings and create multiple, discrete systems, each with their own operating system, resources, and identity within a single computer system. We can run a variety of applications software in different logical domains and keep them independent of performance and security purposes. The LDoms environment can help to achieve greater resource usage, better scaling, and increased security and isolation.

Logical & Control domain: The control domain communicates with the hypervisor to create and manage all logical domain configurations within a server platform. The Logical Domains Manager is used to create and manage logical domains. The Logical Domains Manager maps logical domains to physical resources. Without access to the Logical Domains Manager all logical domain resource levels remain static. The initial domain created when installing Logical Domains software is a control domain and is named primary.

You can download Logical Domain manager from http://www.sun.com/servers/coolthreads/ldoms/index.jsp.
Please read the release notes for system firmware requirements and patch requirements. By default, Ldoms software gets installed to /opt/SUNWldm/. Make sure the below commands works - and that confirms Logical domain manager is running.

primary-control01# /opt/SUNWldm/bin/ldm list

Name State Flags Cons VCPU Memory Util Uptime
primary active -t-cv SP 32 16128M 49% 90mm

Creating default services: You need to create the default virtual services that the control domain uses to provide disk services, console access and networking. The below commands explains them.

Create Virtual Disk server(vds) : Virtual disk server helps importing virtual disks into a logical domain from the control domain.
primary-control01# ldm add-vds primary-vds0 primary

Create Virtual Console concentrator Server(vcc) : Virtual Console concentrator server provides terminal service to logical domain consoles.
primary-control01# ldm add-vcc port-range=5000-5100 primary-vcc0 primary

Create Virtual Switch server(vsw) : Virtual Switch server enables networking between virtual network devices in logical domains.
primary-control01# ldm add-vsw net-dev=e1000g0 primary-vsw0 primary


List the default services created
primary-control01# ldm list-services primary
VDSNAME VOLUME OPTIONS DEVICE
primary-vds0
VCCNAME PORT-RANGE
primary-vcc0 5000-5100
VSWNAME MAC NET-DEV DEVICE MODE
primary-vsw0 00:11:5a:12:dc:fc e1000g0 switch@0 prog,promisc


Control Domain Creation: The next step is to perform the initial setup of the primary domain, which will act as the control domain. You should specify the resources that the primary domain will use and what will be released for use by other guest domains. In this document, we are creating the control domain with 4 cpu's and 4GB RAM.
primary-control01# ldm set-mau 1 primary

primary-control01# ldm set-vcpu 4 primary
primary-control01# ldm set-memory 4g primary

Now, set these modified configuration permanent using list-spconfig option.


primary-control01# ldm list-spconfig

factory-default [current]
primary-control01# ldm add-spconfig initial
primary-control01# ldm list-spconfig
factory-default [current]
initial [next poweron]
Reboot the server and it will come up with initial configuration.


Logical Domain Creation : Now that the system is ready, prepare and plan for the logical domain configuration. In this document, we are creating a logical domain with 4 CPUs and 8GB memory and "guest1" is the name.
primary-control01# ldm add-domain guest1

primary-control01# ldm add-vcpu 4 guest1
primary-control01# ldm add-memory 8G guest1
primary-control01# ldm add-vnet vnet1 primary-vsw0 guest1
primary-control01# ldm add-vdsdev /dev/dsk/c1t2d0s2 vol1@primary-vds0
primary-control01# ldm add-vdisk vdisk1 vol1@primary-vds0 guest1
primary-control01# ldm add-vdsdev /image/sol-10-u8-ga-sparc-dvd.iso iso_vol@primary-vds0
primary-control01# ldm add-vdisk cdrom iso_vol@primary-vds0 guest1

primary-control01# ldm set-var auto-boot\?=false guest1
primary-control01# ldm bind guest1

primary-control01# ldm start-domain guest1

You will be able see the domain using "ldm list-domain"
primary-control01# ldm list-domain

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 4G 0.2% 3h 4m
guest1 inactive ----- 4 8G

Connect to the logical domain console by telneting to the virtual console port.
primary-control01# telnet localhost 5000

Trying 127.0.0.1...Connected to localhost....
Escape character is ’^]’.Connecting to console "guest1" in group "guest1" ....
Press ~? for control options ..
{0} ok
{0} ok boot cdrom


You will go through normal Solaris CDROM installation procedure. Customize the installation according to your requirement.

Refer
http://www.sun.com/servers/coolthreads/ldoms/index.jsp for more details.

Labels: ,

0 Comments:

Post a Comment

<< Home