First post, by Exploit
If I booted DOS (whether FreeDOS, MS-DOS or DR-DOS doesn't matter) in QEMU from the hard drive and defined an ISO image file as a CD-ROM before starting the virtual machine, then I can view the contents of it with the
DIR D:
command.
But if I then load another ISO image file into the VM while the guest machine is running, DOS does not recognize that the disk has been changed. A call of
DIR D:
then leads to an error message.
With real hardware, you would press a key on the drive and this would trigger an eject signal. This also gives MSCDEX and the CD-ROM drivers the signal that the CD-ROM media should be ejected. So that they unmount the medium and are ready to mount a new medium.
Does QEMU offer any way to replicate this behavior?
Or is there an eject command for DOS with which you can give the command to a real drive that the CD-ROM media should be ejected. At least there is something like this in Linux.