[libvirt] adding scsi disk failed (code=9)

Hi, I'm newbie and sorry if this question was already post in this ML (is there any search engine for the ML archive?). I'm trying to attach a volume in my instance. The instance is running and the volume is available, but i got this error: ---- libvirt: operation failed: adding scsi disk failed (code=9) virDomainAttachDevice() failed (err=-1) XML=<disk type='block'><driver name='phy'/><source dev='/dev/etherd/e0.8'/><target dev='sdb'/></disk> doAttachVolume() failed error=1 ---- I'm not sure where I can start to debug this error. I'm using Fedora 11, x86_64, with these packages [root@minicloud eucalyptus]# rpm -qa | grep libv libvirt-devel-0.6.2-12.fc11.x86_64 libvorbis-1.2.0-7.fc11.x86_64 libvirt-0.6.2-12.fc11.x86_64 libvirt-python-0.6.2-12.fc11.x86_64 libvolume_id-141-3.fc11.x86_64 May you help me, please? Thanks in advance, M

On Thursday 09 July 2009 10:06:13 Massimo Canonico wrote:
I'm newbie and sorry if this question was already post in this ML (is there any search engine for the ML archive?). I ended up downloading the gzipped archive files and loading the messages into kmail so that I could search them.
Gene

On Thu, Jul 09, 2009 at 04:06:13PM +0200, Massimo Canonico wrote:
Hi, I'm newbie and sorry if this question was already post in this ML (is there any search engine for the ML archive?).
top of the http://libvirt.org/ page see "search" ? Enter newbie -> http://libvirt.org/search.php?query=newbie&submit=Search OMG !!! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On Thu, Jul 09, 2009 at 04:06:13PM +0200, Massimo Canonico wrote:
Hi, I'm newbie and sorry if this question was already post in this ML (is there any search engine for the ML archive?).
Google. Use site:redhat.com inurl:libvir-list
I'm trying to attach a volume in my instance. The instance is running and the volume is available, but i got this error:
---- libvirt: operation failed: adding scsi disk failed (code=9) virDomainAttachDevice() failed (err=-1) XML=<disk type='block'><driver name='phy'/><source dev='/dev/etherd/e0.8'/><target dev='sdb'/></disk> doAttachVolume() failed error=1 ----
Depending on your KVM/QEMU version that's probably this error http://www.redhat.com/archives/libvir-list/2009-July/msg00115.html Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Hi, first of all, thanks for replying with a patch. I'm running libvirt on fedora 11 64bit with kvm and I do not have the qemu_driver.c for that patch. I've installed libvirt and libvirt-devel packages. Where is contained this file? Moreover, How can I debug this error: ibvirt: operation failed: adding scsi disk failed (code=9) in order to have more information concerning the origin of this error? M Daniel P. Berrange wrote:
On Thu, Jul 09, 2009 at 04:06:13PM +0200, Massimo Canonico wrote:
Hi, I'm newbie and sorry if this question was already post in this ML (is there any search engine for the ML archive?).
Google. Use site:redhat.com inurl:libvir-list
I'm trying to attach a volume in my instance. The instance is running and the volume is available, but i got this error:
---- libvirt: operation failed: adding scsi disk failed (code=9) virDomainAttachDevice() failed (err=-1) XML=<disk type='block'><driver name='phy'/><source dev='/dev/etherd/e0.8'/><target dev='sdb'/></disk> doAttachVolume() failed error=1 ----
Depending on your KVM/QEMU version that's probably this error
http://www.redhat.com/archives/libvir-list/2009-July/msg00115.html
Daniel

On Mon, Jul 13, 2009 at 02:23:22PM +0200, Massimo Canonico wrote:
Hi, first of all, thanks for replying with a patch. I'm running libvirt on fedora 11 64bit with kvm and I do not have the qemu_driver.c for that patch.
You are definitely hitting the bug I refer to in the URL below with Fedora 11.
I've installed libvirt and libvirt-devel packages. Where is contained this file?
Moreover, How can I debug this error:
ibvirt: operation failed: adding scsi disk failed (code=9)
in order to have more information concerning the origin of this error?
As a general guide to debug libvirt problems http://libvirt.org/logging.html for QEMU issues, you generall need to set debugging in the libvirtd server config /etc/libvirt/libvirtd.conf
Depending on your KVM/QEMU version that's probably this error
http://www.redhat.com/archives/libvir-list/2009-July/msg00115.html
Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (4)
-
Daniel P. Berrange
-
Daniel Veillard
-
Gene Czarcinski
-
Massimo Canonico