Version 3.1-en Solaris 10 Container Guide - 3.1 5. Cookbooks Effective: 30/11/2009
5.1.12.5. User level NFS server in a local zone
[ug] The native NFS in the Solaris kernel can currently not be used as a server within a local zone.
Instead, the unfs3d – an OpenSource NFS server – can be used (see the unfs3 project at
SourceForge) which runs completely in userland and is therefore not subject to this limitation. To do
so, the RPC configuration must be changed and the unfs3d called up instead of the Solaris NFS
daemon.
5.1.12.6. Using a DVD drive in the local zone
[dd] If access to a DVD drive is required in a local zone, the DVD drive for the zone must be assigned
to the local zone in the zone configuration. In addition, it must be prevented that the volume daemon
of the global zone automatically mounts the DVD once it is placed into the drive. To do so, the smf-
service svc:/system/filesystem/volfs in the global zone must be turned off. This
service is not available to local zones. Therefore, DVDs in local zones must be mounted by command
line. Once the zone has been restarted, the device is available to the zone. This is verifiable by the
entry in /dev/dsk. It is furthermore visible from the global zone that a device entry now exists in /
zones/zone1/dev/dsk.
zonecfg:zone1> add device
zonecfg:zone1:device> set match=/dev/dsk/c2t0d0s2
zonecfg:zone1:device> end
zonecfg:zone1> commit
zonecfg:zone1> exit
global# svcadm disable volfs
. . . . reboot der Zone . . . .
zone1# ls /dev/dsk
c2t0d0s2
zone1# mount -F hsfs /dev/dsk/c2t0d0s2 /mnt
zone1# df -k /dev/dsk/c2t0d0s2
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c2t0d0s2 2643440 2643440 0 100% /mnt
global# df -kZ /zones/zone1/root/dev/dsk/c2t0d0s2
/Filesystem kbytes used avail capacity Mounted on
/zones/zone1/root/dev/dsk/c2t0d0s2
2643440 2643440 0 100% /zones/zone1/root/mnt
Alternatively, the DVD can be mounted as a loopback file system in one or several zones. In this
case, it must be mounted by the global zone and cannot be ejected until all zone loopback mounts
are ended.
5.1.12.7. Dynamic configuration of devices
[ug] Devices can be assigned to a zone statically (permanently) by zonecfg. To activate them,
however, it is necessary to reboot the zone:
global# zonecfg -z test
zonecfg:test> add device
zonecfg:test:device> set match=/dev/dsk/c1t1d0s1
zonecfg:test:device> end
zonecfg:test> verify
zonecfg:test> commit
zonecfg:test> exit
76