<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>On 2013-07-09 09:40, Vijay Bellur wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">Hi, I'm trying to use qemu native glusterfs integration with libvirt. It's all working well from the qemu side, but libvirt fails to start a domain with a gluster drive or attach a drive. I have exactly the same error as this person: <a href="https://www.redhat.com/archives/libvirt-users/2013-April/msg00204.html">https://www.redhat.com/archives/libvirt-users/2013-April/msg00204.html</a> I use qemu 1.5.1 with glusterfs 3.4 beta 4 and libvirt 1.0.6. [root bbox ~]# virsh start test error: Failed to start domain test error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/3 (label charserial0) qemu-system-x86_64: -drive file=gluster://127.0.0.1/vol0/test0.img,if=none,id=drive-virtio-disk1,format=raw: Gluster connection failed for server=127.0.0.1 port=0 volume=vol0 image=test0.img transport=tcp qemu-system-x86_64: -drive file=gluster://127.0.0.1/vol0/test0.img,if=none,id=drive-virtio-disk1,format=raw: could not open disk image gluster://127.0.0.1/vol0/test0.img: No data available</blockquote>
<pre>Do you observe errors in the logs from gluster bricks that make up vol0? 
Brick logs are available at /var/log/glusterfs/bricks.

Thanks,
Vijay
</pre>
</blockquote>
<p>Hi Vijay,<br /><br />Thanks for your answer. <br />I did reset the files and tried to attach the device using: virsh attach-device test /tmp/gluster_disk.xml<br /><disk type='network' device='disk'><br />      <driver name='qemu' type='raw' cache='none'/><br />      <source protocol='gluster' name='vol0/test0.img'><br />        <host name='127.0.0.1' transport='tcp' /><br />      </source><br />      <target dev='vdb' bus='virtio'/><br />            <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/><br />    </disk><br /><br /># virsh attach-device test /tmp/gluster_disk.xml <br />error: Failed to attach device from /tmp/gluster_disk.xml<br />error: operation failed: open disk image file failed<br /><br /><br />Sadly, nothing reported in ...bricks/*.log<br /><br /><br />Thanks,<br />Olivier</p>
<div> </div>
</body></html>