Hello,

if the guest is powered off and I run the following command to attach a CD-ROM

virsh attach-disk QEmu-fedora-i686-3 myCDROM.iso hdc --driver file --type cdrom --mode readonly

I got error:

libvir: QEMU error : internal error cannot attach device on inactive domain


Is it a requirement to have the guest running to attach a CDROM ?
Is there a way to attache a CDROM to a guest powered off with VIRSH

I have

Compiled against library: libvir 0.6.0
Using library: libvir 0.6.0
Using API: QEMU 0.6.0
Running hypervisor: QEMU 0.10.0


Consider that the above command works if the guest is running.


Thanks in advance,
Francesco