via virsh, I get this:
attach-disk winxp /home/martin/path/to/my.iso hdc --mode readonly --driver file --type cdrom
(I tried various combinations of --driver, --type and --mode as well as hda,hdc,/dev/hdc,cdrom,/dev/cdrom and /dev/media for the target)
via virt-manager, I get this in an error box after completing the "add storage" wizard:
Unable to complete install: 'Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/addhardware.py", line 514, in add_device
self.vm.add_device(xml)
File "/usr/share/virt-manager/virtManager/domain.py", line 729, in add_device
raise RuntimeError, "Unable to attach device to live guest, libvirt reported error:\n" + device_exception
RuntimeError: Unable to attach device to live guest, libvirt reported error:
virDomainAttachDevice() failed CDROM not attached, cannot change media'
I was not able to attach a CDROM device either.
via virsh, I get this: path/to/ my.iso hdc --mode readonly --driver file --type cdrom /dev/hdc, cdrom,/ dev/cdrom and /dev/media for the target)
attach-disk winxp /home/martin/
(I tried various combinations of --driver, --type and --mode as well as hda,hdc,
via virt-manager, I get this in an error box after completing the "add storage" wizard: virt-manager/ virtManager/ addhardware. py", line 514, in add_device vm.add_ device( xml) virt-manager/ virtManager/ domain. py", line 729, in add_device Device( ) failed CDROM not attached, cannot change media'
Unable to complete install: 'Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
raise RuntimeError, "Unable to attach device to live guest, libvirt reported error:\n" + device_exception
RuntimeError: Unable to attach device to live guest, libvirt reported error:
virDomainAttach