I have an interesting but also annoying problem: when I want to disconnect a mounted drive/ISO image from a VM, a prompt appears saying that this drive/ISO image is in use and if you want to force it. During exactly this query the VM freezes and is no longer accessible. This is very bad so how to solve this problem? By the way, is this a known problem?
Thanks and many greetings,
Disconnect / unmount the CDrom from within the guest first. Yes - of course this is a known issue.
Thanks for the quick reply.
Unfortunately, this is not always possible without further ado, since these are customer VMs and I rarely have access to the operating system.
I was hoping that it is just a bug and that there is a patch or a workaround for it.
In Linux-VMs you would need to umount the CDrom-device.
In Windows VMs make sure that the content of the ISO is not listed in an explorer-window.
When ever you try to unmount an ISO forcefully you can expect that the VM freezes for a few seconds.
So you don not want login on vm and eject CD from there ? then you can use powercli command
Get-VM <vmname> | Get-CDDrive | Set-CDDrive -NoMedia -Confirm:$false