Detect when HVM guest ejects CDs

Bug #351845 reported by Evan Broder
2
Affects Status Importance Assigned to Milestone
Invirt Project
New
Wishlist
Unassigned

Bug Description

This is really a bug for upstream, but tracking it here seems like a good idea.

When an HVM finishes installing an OS or something, it typically tries to eject the CD in the CDROM drive. Xen/qemu-dm doesn't seem to detect this, with the result being that it turns around and boots right back into the CD until you actually power the VM off and then back on.

It seems like it shouldn't be too hard to detect ejects in the device driver and use that to trigger detaching the block device.

Evan Broder (broder)
Changed in invirt:
importance: Undecided → Wishlist
Revision history for this message
Evan Broder (broder) wrote :

Hmm...it looks like there's some code for ejecting CDs starting as early as 19cb3738 or so (although the code was substantially changed later on). That was included in v0.9.0, which our qemu-dm was branched from.

There's a documentation update in that commit that specifically refers a lot to directly passing through /dev/cdrom (or equivalent), so there may be more going on there, but this certainly seems like something that qemu has thought about.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.