Ldom On Solaris
Ldom On Solaris
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
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
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.
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.
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.