CD tray opens automatically when I put a cd in it

Discussions about using Windows guests in VirtualBox.
Post Reply
obippo
Posts: 4
Joined: 19. Jul 2016, 09:26

CD tray opens automatically when I put a cd in it

Post by obippo »

Hi all,

I've just installed virtualbox and I'm having this little problem. When I put a disct into the cd tray (while in the VM) it just stays there for like 10 seconds, and then a window from the host machine appears with the text "insert a disc on D:) and the tray auto-opens.

I've tried everything and searched everywhere but I can't find a solution to this.

Please, give me a hand.

I'm running a 32 bit XP VM in a windows 10 host.

Thanks in advance! :)
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: CD tray opens automatically when I put a cd in it

Post by mpack »

That would be normal behaviour if the host CD is mapped to the VM, and the data CD you are trying to insert is unrecognizable.

It isn't, for example, a music CD is it?
obippo
Posts: 4
Joined: 19. Jul 2016, 09:26

Re: CD tray opens automatically when I put a cd in it

Post by obippo »

Hi mpack and thanks for your response.

No, it's a game CD (Riven). It worked fine yesterday and I could install some games (sierra's minigolf and pinball, etc), but it's just not working today, I don't know why.

Could it be because yesterday, the virtual CD drive 'matched' the physical cd drive? I mean, that both of them had the same letter (F), but today, I don't know why, the VM drive has another letter (D).

Excuse me but I'm extremely noob with this program, so please ELI5 :oops:
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: CD tray opens automatically when I put a cd in it

Post by mpack »

obippo wrote: Could it be because yesterday, the virtual CD drive 'matched' the physical cd drive? I mean, that both of them had the same letter (F), but today, I don't know why, the VM drive has another letter (D).
The drive letter which a Windows guest assigns to a virtual drive is completely independant of how that drive is identified by the host. E.g. Linux guests won't give the drive a letter at all, while Windows guests are quite happy to assign drive letters when the host is Linux. In both cases the host "drive" can actually be an ISO file, in which case the idea of a host drive letter is quite meaningless.

So, I guess the short answer to that question is no.

Try making an ISO image of the CD, mount the ISO image instead of the mapping the host drive. ISO images are quieter and more reliable than physical media.
ImgBurn.
obippo
Posts: 4
Joined: 19. Jul 2016, 09:26

Re: CD tray opens automatically when I put a cd in it

Post by obippo »

I've just made an iso from the XP installation disc, is that correct?

Now I have the ISO image sitting in my desktop, but as I said I'm pretty tech retard and I really didn't understand what should I do next. A new "install" of the XP virtual machine? How do I do that mapping thing?

Thanks again for your help, friend.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: CD tray opens automatically when I put a cd in it

Post by mpack »

obippo wrote:I've just made an iso from the XP installation disc, is that correct?
No, that is not correct. We were talking about your game CD, what made you think I meant the XP install disk (*)? Use ImgBurn to make an ISO image of your game CD, use the "Devices" menu item when the VM is running to mount the ISO file as virtual CD media in the guest.

(*) To answer my own question, I'm guessing that you don't really know what an ISO image is. You think it has something to do with OS installation? It doesn't. "ISO" refers to the filesystem used by data CDs. That's all data CDs, not just the ones which install something. An "ISO file" is simply an image of a data CD, ready to be burned to a CD media... except you don't burn the image, just mount it in the VM as already described.
obippo
Posts: 4
Joined: 19. Jul 2016, 09:26

Re: CD tray opens automatically when I put a cd in it

Post by obippo »

I've tried doing that but ImgBurn is creating two files, one .bin and one .cue; I can't mount neither of those, it says they're not a valid format.

I tried forcing the program to make an ISO but it says something about yoda and then it makes another set of .cue and .bin files :roll:

Is there any way to mount that kind of files or I'm out of luck?

edit/ well it's only happening with worms 2 apparently. I don't know how but I've managed to install it via de cd drive... thanks for your help :))
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: CD tray opens automatically when I put a cd in it

Post by mpack »

BIN/CUE is a different format. Tell it to create an ISO from an existing CD in the drive.
obippo wrote:edit/ well it's only happening with worms 2 apparently.
That brings us back to a damaged CD.
Post Reply