This procedure enables you to add read-only access to CD or DVD media in a non-global zone. The Volume Management file system is used in the global zone for mounting the media. A CD or DVD can then be used to install a product in the non-global zone. This procedure uses a DVD named jes_05q4_dvd.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
global# svcs volfs STATE STIME FMRI online Sep_29 svc:/system/filesystem/volfs:default
global# svcadm volfs enable
global# volcheck
global# ls /cdrom
You will see a display similar to the following:
cdrom cdrom1 jes_05q4_dvd
global# zonecfg -z my-zone zonecfg:my-zone> add fs zonecfg:my-zone:fs> set dir=/cdrom zonecfg:my-zone:fs> set special=/cdrom zonecfg:my-zone:fs> set type=lofs zonecfg:my-zone:fs> add options [ro,nodevices] zonecfg:my-zone:fs> end zonecfg:my-zone> commit zonecfg:my-zone> exit
global# zoneadm -z my-zone reboot
global# zoneadm list -v
You will see a display that is similar to the following:
ID NAME STATUS PATH BRAND IP 0 global running / solaris shared 1 my-zone running /zones/my-zone solaris excl
global# my-zone
my-zone# ls /cdrom
You will see a display similar to this:
cdrom cdrom1 jes_05q4_dvd
my-zone# exit
global# zonecfg -z my-zone zonecfg:my-zone> remove fs dir=/cdrom zonecfg:my-zone> commit zonecfg:my-zone> exit