How to Mount the Host CD-ROM to the ESXi Shell

How to Mount the Host CD-ROM to the ESXi Shell

I had to mount the ESXi Host CD-ROM to the ESXi shell to perform some tasks and these are the steps to mount the CD-ROM to the ESXi host

First of all login to the ESXi host using whatever the remote console available (iDRAC, ILO, IMM or CIMC) and mount the ISO

These are the steps for DELL iDRAC and the steps of Mounting the ISO can be different in the other vendors.

Activate the Virtual Media in the iDRAC , Go to “Virtual Media -> Connect Virtual Media

Map the CD/DVD media

Browse the ISO and Map the Device


Now login to the ESXi host using the SSH console and check the “ls /vmfs/volumes” to see the CD-ROM, No CD-ROM listed in the Volumes

Load the iso9660 module using “vmkload_mod iso9660

Find the Path to the CD-ROM using the “esxcfg-mpath -l | grep -i cd-rom” you can find the path as below

Set the loaded module to the CD-ROM to access via the shell, use “vsish -e set /vmkModules/iso9660/mount <devicename>

Now you can see the CD-ROM in the “ls /vmfs/volumes/

You will be able to access the CD-ROM as a normal volume from the ESXi Shell

You can unmount the CD-ROM from this command “vsish -e set /vmkModules/iso9660/umount <devicename>


Unload the module from ” vmkload_mod -u iso9660

If you found this post as useful please rate the post and share it!

Click to rate this post!
[Total: 27 Average: 4.8]

5 responses

  1. Jeff Avatar
    Jeff

    Didn’t work for me

  2. Mengxiaon Avatar
    Mengxiaon

    Hello, what’s version of your ESXi? And, ESXi 6.7 can or not?

    1. Aruna Lakmal Avatar

      Hi, Didn’t try with 6.7

  3. […] or craft a custom ISO file with the NSX-T module ZIP to mount over iDRAC/iLO/IPMI (to mount ISO on ESXi this might be helpful) […]

  4. MHaensch Avatar
    MHaensch

    Great article. Helped me a lot. Worked on ESXi 6.7 too

Leave a Reply

Your email address will not be published. Required fields are marked *