jump to navigation

Mount an iso file on Solaris and present it to a zone June 11, 2008

Posted by claudio in Uncategorized.
Tags: , , , , ,
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.

About these ads

Comments»

1. seiniuct - August 3, 2008

Very nice!!

2. kj - September 19, 2008

not working with ntfs

3. Grace - March 26, 2012

Worked exactly when followed your instructions. Thanks!!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 142 other followers

%d bloggers like this: