In this post we will discuss how to mount ISO in Linux VM running inside Virtualbox or VMware.
You can mount ISO in Linux VM running on Virtualbox by following these steps
- Select the running machine window.
- Click on Devices > Optical Devices
- Choose disk image, browse and select ISO .(Refer image below)
- Now go to the redhat linux server and execute the mount command
mount /dev/cdrom /mnt
- If the linux VM is in VMware. You can select the iso image in vmware console similar to what we did for virtual box.
- Right click on the machine > “Removable Devices” > “CD/DVD” > Settings. Browse and select the ISO. Check mark on “Connected”.
- Finally execute the following command in Linux VM.
mount /dev/sr0 /mnt
- If you do “df -h” new ISO should be mounted and visible to you as /mnt .
Tip: If you are getting error /mnt busy ensure that /mnt is not already mounted. If /mnt is already mounted either unmount /mnt first and try again or create a new directory and mount the ISO on the new directory.