Solaris Logical Domains (LDoms)
List domains ldm ls -l
List domain information ldm ls-bindings {domain}
ldm ls-constraints {domain}
Start domain ldm start {domain}
Stop domain ldm stop {domain}
Connect to console (port from ldm ls) telnet localhost {port}
Disconnect from console Ctrl+{}
ldm list

Following are definitions of the flags in the list subcommand output:

Column Flag Definition
any - placeholder
1 s starting or stopping
2 n normal
t transition
3 d delayed reconfiguration
4 c control domain
5 v virtual I/O service domain
6 e error
s source domain
t target domain
Create Domain Quickstart
Add domain ldm add-domain {domain}
Add CPU ldm add-vcpu {num} {domain}
Add Memory ldm add-memory {N}G {domain}
Add virtual network ldm add-vnet vnet{N} primary-vsw{N} {domain}
Export virtual disk ldm add-vdsdev {backend} vol{N}@primary-vds{N}
Add virtual disk ldm add-vdisk vdisk{N} vol{N}@primary-vds{N} {domain}
Set auto-boot variable ldm set-var auto-boot\?=true {domain}
Set boot device variable ldm set-var boot-device=vdisk {domain}
Bind domain ldm bind-domain {domain}
LDom configuration persistence across various power events

LDom configuration persistence is tightly related to the two power events. The main two points to remember are:

Keeping in mind the above four points, its easy to understand that an LDom configuration which has not been saved to the SP will be lost after a poweron reset event but not after a soft reset event.

The more difficult part is keeping track of which commands cause which reset events. These commands may be invoked from different environments (SP, Openboot, Solaris) and the behavior is known to have been tweaked with certain firmware and OS versions. I suggest avoiding any dependencies on these differences and adopting a policy of always saving your current LDom configuration before *any* power or reset related command, just as you would always save your document before restarting your word processor.

If you still want to know which commands cause which power events keep in mind these rules of thumb: