[libvirt] attach-disk (cdrom) requirements

Francesco Latino francesco.latino at gmail.com
Thu Jun 11 16:25:20 UTC 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090611/ba55fb4d/attachment-0001.htm>


More information about the libvir-list mailing list