0% found this document useful (0 votes)
487 views3 pages

Ldom On Solaris

The document provides step-by-step instructions to set up logical domains (LDOMs) on a Sun server using the Logical Domains Manager (LDom). It describes downloading the LDom software, creating default virtual services for disks, console and networking, setting up the control domain, enabling networking between domains, creating a guest domain, and providing links for additional documentation.

Uploaded by

asas988
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
487 views3 pages

Ldom On Solaris

The document provides step-by-step instructions to set up logical domains (LDOMs) on a Sun server using the Logical Domains Manager (LDom). It describes downloading the LDom software, creating default virtual services for disks, console and networking, setting up the control domain, enabling networking between domains, creating a guest domain, and providing links for additional documentation.

Uploaded by

asas988
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

POA Logical Domain manager

We can download Logical Domain manager from http://sun.com/ldoms . 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. solfoo23# /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: We 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.

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

2. Create Virtual Console concentrator Server (vcc): Virtual Console concentrator


server provides terminal service to logical domain consoles. solfoo23# ldm add-vcc port-range=5000-5100 primary-vcc0 primary

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

4. List the default services created


solfoo23# ldm list-services primary VDS NAME VOLUME OPTIONS DEVICE primary-vds0 VCC NAME PORT-RANGE primary-vcc0 5000-5100 VSW NAME MAC NET-DEV DEVICE MODE primary-vsw0 00:11:5a:12:dc:fc e1000g1 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 2 CPUs and 1 GB RAM. solfoo23# ldm set-mau 0 primary solfoo23# ldm set-vcpu 2 primary solfoo23# ldm set-memory 1024M primary

Now, set these modified configuration permanent using list-spconfig option. solfoo23# ldm list-spconfig factory-default [current] solfoo23# ldm add-spconfig initial solfoo23# ldm list-spconfig factory-default [current] initial [next]

Reboot the server and it will come up with initial configuration. Networking between domains: 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. On the server console and perform the following network configuration steps.

1. Plumb the virtual switch(vsw0)


solfoo23# ifconfig vsw0 plumb

2. Bring down the primary interface


solfoo23# ifconfig e1000g1 down unplumb

3. Configure Virtual switch with the primary interface details


solfoo23# ifconfig vsw0 <ip> netmask <netmask> broadcast + up

4. Modify the hostname file to make this configuration permanent


solfoo23# mv /etc/hostname.e1000g1 /etc/hostname.vsw0

5. Enable Virtual Network terminal server daemon


solfoo23# svcadm enable vntsd

Now the setup is done. Run "ldm list-bindings primary" and make sure they are ok. 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 2 CPUs and 1GB memory and "domfoo" is the name.

solfoo23# solfoo23# solfoo23# solfoo23# solfoo23# solfoo23# solfoo23# solfoo23# solfoo23#

ldm ldm ldm ldm ldm ldm ldm ldm ldm

add-domain domfoo add-vcpu 2 domfoo add-memory 1G domfoo add-vnet vnet1 primary-vsw0 domfoo add-vdsdev /dev/dsk/c1t2d0s2 vol1@primary-vds0 add-vdisk vdisk1 vol1@primary-vds0 domfoo bind domfoo set-var auto-boot\?=false domfoo start-domain domfoo

You will be able see the domain using "ldm list-domain" solfoo23# ldm list-domain NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv SP 2 2G 0.2% 3h 4m domfoo inactive ----- 2 1G

Connect to the logical domain console by telneting to the virtual console port. solfoo23# telnet localhost 5000 Trying 127.0.0.1... Connected to localhost.... Escape character is ^]. Connecting to console "domfoo" in group "domfoo" .... Press ~? for control options.. {0} ok

Our LDom is up!. We can install it using jumpstart. Our LDoms environment is ready!

Refer Solaris LDOM virtualization document links for more information: Overview : http://www.sun.com/servers/coolthreads/ldoms/wp.pdf LDOMs Beginners guide : http://www.sun.com/blueprints/0207/820-0832.pdf LDOMs Demo : http://blogs.sun.com/ash/resource/flashdemos/64-ldoms-ont2.html LDOMs presentation : http://www.snpnet.com/customer_pub/sun/isv_LDOM/ Admin guide : http://docs-pdf.sun.com/819-6428-11/819-6428-11.pdf

End.

You might also like