Thursday, June 08, 2006

Mounting a ISO file in ESX VMware

Since I have the ESX ISO image file already, why I still need to use the CD? After some research, I found the command used to mount an ISO image on a Linux system.

mount -o loop -t iso9660 /usr/lib/vmware/isoimages/esx-2.5.2-16390.iso /mnt/cdrom/

The flag –o loop make the mount try to find some unused loop (none explicit loop) device and use it.
I was able to read the files from the ISO image without any problem.
However, when I run
it failed with the following error messages:

mount: you must specify the file system type
umount: /mnt/loop0: not mounted
Unable to open
for reading No such file or directory

After I umount the ISO image, and mount a real ESX CD by running:
mount /dev/scd0 -t iso9660 -o ro /mnt/cdrom/
and run the scripted install setup script, it finished successfully with the following messages:

Setup requires Apache to be restarted. This will invalidate all current VMware Management Interface sessions. Restart Apache now? (y/n)

To umount the ISO or the CD use the same command:
umount /mnt/cdrom

No comments: