Mount an iso file on Solaris and present it to a zone June 11, 2008
Posted by claudio in Uncategorized.Tags: iso, lofs, Solaris, System Administration, UNIX, zones
trackback
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
this_file_is_on_the_cdrom.txt
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
this_file_is_on_the_cdrom.txt
That’s it.
Very nice!!
not working with ntfs
Worked exactly when followed your instructions. Thanks!!