Go to the CD/DVD settings and select the Disconnect option. The settings can be found in the Hardware configuration, the Devices menu, and the bottom of the virtual machine window. You do not need to shutdown the virtual machine to change this setting.