Mount an iso file on Solaris and present it to a zone June 11, 2008Posted by claudio in Uncategorized.
Tags: iso, lofs, Solaris, System Administration, UNIX, zones
When installing software on servers, it is not practical to go the the serverroom (if possible at all), just to insert a cdrom in the machine. Just create an iso with your favorite cd burning software (brasero?), and follow these steps.
On the global zone (the iso cdrom.iso is in /var/tmp):
# mount -F hsfs -o ro `lofiadm -a /var/tmp/cdrom.iso` /mnt
# ls /mnt
Make it available to the virtual machine (being /zones/zone01/root the / of the zone zone01):
# mount -F lofs /mnt /zones/zone01/root/mnt
You can now read the cdrom on the zone:
# zlogin zone01 ls /mnt