virsh attach-disk doesn't work
Bug #203020 reported by
Adam Sommer
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Output of "virsh -c qemu:///system attach-disk domain /dev/sr0 /media/cdrom" gives:
libvir: QEMU error ��e: only CDROM disk devices can be attached
Tried both with and without sudo. Also, CDROM is a sata device, but I guess that doesn't make a difference. Tried doing virsh dumpxml editing the file then doing virsh define as well, still not working.
Thanks
Changed in libvirt (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
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