In Solaris LDOMS (Oracle Virtual machine for Sparc) the CDROM or DVD is not connected to the guest by default.
Many examples of setting up LDOMS refer to using a jumpstart or network boot.
Here is a quick tip for using the CDROM drive or an ISO image of the Solaris Install CD on the guest. This can then be used to install or recover an unbootable guest
Mount Physical CDROM to Guest domain
-------------------------------------------------------
Insert dvd
# cdrw -l ### Checks CDRom device path ##
Looking for CD devices...
Node Connected Device Device type
----------------------+--------------------------------+-----------------
/dev/rdsk/c0t0d0s2 TSSTcorp CDDVDW TS-T633A SR00 CD Reader/Writer
# ldm add-vdsdev options=ro /dev/dsk/c0t0d0s2 cdrom@primary-vds0
# ldm add-vdisk cdrom cdrom@primary-vds0 Guest1
Create and Mount ISO virtual CDROM on Guest domain
--------------------------------------------------------------------------------# cdrw -l ### Checks CDRom device path ##
Looking for CD devices...
Node Connected Device Device type
----------------------+--------------------------------+-----------------
/dev/rdsk/c0t0d0s2 TSSTcorp CDDVDW TS-T633A SR00 CD Reader/Writer
# ldm add-vdsdev options=ro /dev/dsk/c0t0d0s2 cdrom@primary-vds0
# ldm add-vdisk cdrom cdrom@primary-vds0 Guest1
Create and Mount ISO virtual CDROM on Guest domain
#/etc/init.d/volmgt stop
# dd if=/dev/rdsk/c0t0s0s2 of= /var/tmp/Sol10_U8_Sparc.iso bs=1024k
#/etc/init.d/volmgt startMount CD Image on guest as a virtual cdrom drive
# ldm add-vdsdev options=ro /var/tmp/Sol10_U8_Sparc.iso iso@primary-vds0
# dd if=/dev/rdsk/c0t0s0s2 of= /var/tmp/Sol10_U8_Sparc.iso bs=1024k
#/etc/init.d/volmgt startMount CD Image on guest as a virtual cdrom drive
# ldm add-vdsdev options=ro /var/tmp/Sol10_U8_Sparc.iso iso@primary-vds0
# ldm list-services
# ldm add-vdisk iso iso@primary-vds0 Guest1
In LDOMS 2.0 you wont even have to assign a devalias.
# telnet localhost 5000
ok} boot iso
/You should be booting to Solaris intall now.
If you just need to get into recovery mode do:
ok} boot iso -s