How to mount img files in VirtualBox?
If you are trying to mount an img file in a Virtual Machine inside of VirtualBox in a CD/DVD drive then you may get the following error.

Simply located the file in the file manager and change the extension from .img to .iso. Go to VirtualBox and then mount the file onto the CD/DVD drive as normal.

简直瞬间解决我的烦恼。