KVM Virtual Machine Manager doesn't recognize USB CD boot disk
Hi there. I'm running F14 KDE. I have a legitimate Windows 7 Ultimate CD that I want to run under kvm/qemu. When I'm going through virt-manager to create a new image, the "Use CDROM or DVD" selection shows "No device present." I have an external USB CDROM attached and it works fine:
[root@08:44:31 /work]$ mount | grep media
/dev/sr0 on /media/UDF Volume type udf (ro,nosuid,nodev,uhelper=udisks,uid=500,gid=500,io charset=utf8,umask=0077)
root@08:44:38 /work]$ ls /media/UDF\ Volume/
autorun.inf boot bootmgr bootmgr.efi efi setup.exe sources support upgrade
Is there a way to tell virt-manager that this is a CD, or an alternative mount command? The ISO option in virt-manager is even more difficult; it's not as simple as mkisofs because of the missing boot.img, etc., etc.
---------- Post added at 08:31 AM ---------- Previous post was at 07:47 AM ----------
I hacked around this by commenting out the device type check in /usr/share/virt-manager/virtManager/uihelpers.py, removing uihelpers.pyc and uihelpers.pyo, and restarting virt-manager, and it worked!
def mediadev_added(ignore_helper, newobj, widget, devtype):
model = widget.get_model()
#if newobj.get_media_type() != devtype:
I'm normally not a huge fan of dynamic languages, but it sure does making hacking easier...