Virtual Machine CD-ROM disappears on its own - kvm virt-manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager |
Won't Fix
|
Medium
|
|||
kvm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
virt-manager (Ubuntu) |
Fix Released
|
Medium
|
Soren Hansen |
Bug Description
Binary package hint: kvm
I have tested the following on Ubuntu 8.04. I am using kvm and virt-manager. I beleive this bug to be related to the libvirt-manager package. What happens is that virt-manager disconnects the CD-ROM without user intervention and does not allow the user to reconnected through the virt-manager GUI.
Steps to reproduce:
$ sudo apt-get install kvm libvirt-bin ubuntu-vm-builder virt-manager
$ sudo adduser ubuntu kvm
# reboot
$ virt-manager
# double click on the localhost (User) to make status "Active"
# new (button)
# create a new VM using an XP CD
# after first reboot, installer asks for CD, CD disappears from VM device list
======
When creating a virtual machine you get the following options:
-ISO
-CD-ROM or DVD
-Network PXE Boot
On a VM with no CD-ROM these are the options you get when attempting to add a device:
-Normal Disk Partition (Grayed Out)
-Simple File (Works fine for ISO/Image but not for physical CD drive device)
-Device Type (Selected CD-ROM)
I would recommend that the CD-ROM or DVD option be the same in "Creating a VM" and "Add Device" so that a physical CD-ROM can be bound to a VM in a few clicks. Can the developers please try to find out why the CD drive is there (bound from host to guest) when the machine is created, but disapears after a reboot of the VM.
description: | updated |
Changed in kvm: | |
status: | New → Invalid |
Changed in virt-manager: | |
status: | Unknown → Confirmed |
Changed in virt-manager: | |
status: | Confirmed → Invalid |
Changed in virt-manager: | |
status: | Invalid → Fix Released |
Changed in virt-manager: | |
importance: | Unknown → Medium |
status: | Fix Released → Won't Fix |
AFAICS, this is a missing feature (configuration option) in virt-manager but possible on the command lie with kvm with a combination of -cdrom and -boot d flags. From experience with Ubuntu installs in VMs, the system 'ejects' the CD (tested with ISO images in my case) which the VM manager remembers. Is this the case with virt-manager as well?
Søren, could you have a look at this please? Is it simply a matter of adding a configuration option to virt-manager and/or should libvirt have more sensible defaults in this case?
David, can you confirm that you can make kvm behave as you expect from the command line?