0% found this document useful (0 votes)
153 views2 pages

Ldom

The document provides instructions for configuring logical domains on Oracle Solaris. It describes how to view system information, create services for the control domain, add virtual devices, configure the primary domain, create an install media repository, and build a new logical domain called ldom01.

Uploaded by

Hieu Tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views2 pages

Ldom

The document provides instructions for configuring logical domains on Oracle Solaris. It describes how to view system information, create services for the control domain, add virtual devices, configure the primary domain, create an install media repository, and build a new logical domain called ldom01.

Uploaded by

Hieu Tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Check Operating System Version

root@labsrv:~# uname –a

View Logical Domains Software Version


root@labsrv:~# ldm -V

View Existing Logical Domains


root@labsrv:~# ldm list

LIST SERVICE PRIMARY


primary# ldm list-services primary

Create Services for Control Domain


root@labsrv:~# ldm add-vcc port-range=5000-5100 primary-vcc0 primary

Create a virtual disk server (vds) to allow importing virtual disks into a logical
domain.
For example, the following command adds a virtual disk server (primary-vds0) to the
control domain (primary).
primary# ldm add-vds primary-vds0 primary

Virtual Disk Service


root@labsrv:~# ldm add-vds primary-vds0 primary

Virtual Switch Service


root@labsrv:~# ldm add-vsw net-dev=net0 primary-vsw0 primary

Verify Changes
root@labsrv:~# ldm list-services primary

Configure the Control Domain


root@labsrv:~# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-c-- UART 64 32256M 0.0% 1d 30m
ldm start-reconf primary
root@labsrv:~# ldm set-vcpu 4 primary
root@labsrv:~# ldm set-memory 4G primary

Enable the Virtual Network Terminal Server Daemon.


root@labsrv:~# svcadm enable vntsd
root@labsrv:~# svcs | grep vntsd
online 13:10:01 svc:/ldoms/vntsd:default

Reboot now.
root@labsrv:~# reboot

After a reboot, make sure the primary domain must reflect the new memory and vCPU
configuration.

root@labsrv:~# ldm list


NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- UART 4 4G 0.4% 00h 15m

Save the SP configuration to the service processor (SP).


ldm add-spconfig ldom2sp

Verify that the SP configuration is ready to be used at the next reboot.


primary# ldm list-spconfig
factory-default
ldom2sp [current]

Create Install Media Repository


Create a ZFS file system to store ISO images of Solaris operating system.
root@labsrv:~# zfs create -p rpool/ldoms/OSImages
zfs create -p <pool>/<filesystem>

Add the Solaris iso images to the Virtual Disk Server service.
root@labsrv:~# ldm add-vdsdev /rpool/ldoms/OSImages/sol-10-u10-ga2-sparc-dvd.iso
solaris10_media@primary-vds0

root@labsrv:~# ldm add-vdsdev /rpool/ldoms/OSImages/sol-11-11.11-sparc.iso


solaris11_media@primary-vds0

****Create ldom ldom01


ldm add-domain ldom01
ldm add-core 2 ldom01
ldm add-memory 24G ldom01
ldm add-vnet vnet1 primary-vsw0 ldom01
zfs create -V 224gb rpool/ldom01_vol
ldm add-vdsdev /dev/zvol/dsk/rpool/ldom01_vol vol01@primary-vds0
ldm add-vdisk vdisk1 vol01@primary-vds0 ldom01
ldm set-var auto-boot?=false ldom01
ldm set-var boot-device=vdisk1 ldom01
ldm add-vdsdev options=ro /export/home/admin/sol-11_3-text-sparc.iso iso1@primary-
vds0
ldm add-vdisk sol11.3 iso1@primary-vds0 ldom01
ldm bind ldom01
ldm start ldom01

ldm add-spconfig ldom2sp

You might also like