<div dir="ltr"><div><div class="gmail_extra">First sorry for the delay, and thank you for the responses. <br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Inline:<br></div><div class="gmail_extra"><div class="gmail_quote">
On Tue, Sep 17, 2013 at 5:39 PM, Asias He <span dir="ltr">&lt;<a href="mailto:asias.hejun@gmail.com" target="_blank">asias.hejun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On Tue, Sep 17, 2013 at 9:59 PM, Andrew Niemantsverdriet<br>
&lt;<a href="mailto:andrew@rocky.edu">andrew@rocky.edu</a>&gt; wrote:<br>
&gt; Right now I am just using virsh to start the machines, I have also<br>
&gt; tried using Virtual Machine Manager to start them.<br>
<br>
</div>Try &#39;chmod qemu.qemu image_on_gluster.qcow2&#39;. This along with the<br>
&#39;option rpc-auth-allow-insecure on&#39; and &#39;gluster volume set &lt;volname&gt;<br>
server.allow-insecure on&#39; should make libvirt+qemu+libgfapi work.<br></blockquote><div> </div><div>The chown command worked great. Is there there a way to tell qemu-img 
when it creates the image to give it proper ownership? It is annoying to
 have to mount the gluster volume to the host and chown then unmount it.
 Any ideas on how to make that process less painful?<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div class="h5"><br>
&gt; I have enabled Gluster mounting from insecure ports, forgot to mention<br>
&gt; that in my first email. It looks like the disk mounts as it starts to<br>
&gt; boot but nothing can be written to the disk as it just hangs in an<br>
&gt; infinite loop.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;  _<br>
&gt; /-\ ndrew<br>
&gt;<br>
&gt; On Tue, Sep 17, 2013 at 1:05 AM, Samuli Heinonen &lt;<a href="mailto:samppah@neutraali.net">samppah@neutraali.net</a>&gt; wrote:<br>
&gt;&gt; Hello Andrew,<br>
&gt;&gt;<br>
&gt;&gt; How are you booting/managing VM&#39;s? Which user you use to launch them?<br>
&gt;&gt;<br>
&gt;&gt; Have you enabled Gluster mounting from insecure ports? It needs two changes.<br>
&gt;&gt; You have to edit glusterd.vol (in /etc/glusterfs directory) and add line<br>
&gt;&gt; &quot;option rpc-auth-allow-insecure on&quot;. Also you have to set volume option<br>
&gt;&gt; server.allow-insecure on (ie. gluster volume set volname<br>
&gt;&gt; server.allow-insecure on). Restart of glusterd and stop and start of the<br>
&gt;&gt; volume is required for these changes to take effect.<br>
&gt;&gt;<br>
&gt;&gt; 16.9.2013 21:38, Andrew Niemantsverdriet kirjoitti:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hey List,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m trying to test out using Gluster 3.4 for virtual machine disks. My<br>
&gt;&gt;&gt; enviroment consists of two Fedora 19 hosts with gluster and qemu/kvm<br>
&gt;&gt;&gt; installed.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have a single volume on gluster called vmdata that contains my qcow2<br>
&gt;&gt;&gt; formated image created like this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; qemu-img create -f qcow2 gluster://localhost/vmdata/test1.qcow 8G<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m able to boot my created virtual machine but in the logs I see this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [2013-09-16 15:16:04.471205] E [addr.c:152:gf_auth] 0-auth/addr:<br>
&gt;&gt;&gt; client is bound to port 46021 which is not privileged<br>
&gt;&gt;&gt; [2013-09-16 15:16:04.471277] I<br>
&gt;&gt;&gt; [server-handshake.c:567:server_setvolume] 0-vmdata-server: accepted<br>
&gt;&gt;&gt; client from<br>
&gt;&gt;&gt; gluster1.local-1061-2013/09/16-15:16:04:441166-vmdata-client-1-0<br>
&gt;&gt;&gt; (version: 3.4.0)[2013-09-16 15:16:04.488000] I<br>
&gt;&gt;&gt; [server-rpc-fops.c:1572:server_open_cbk] 0-vmdata-server: 18: OPEN<br>
&gt;&gt;&gt; /test1.qcow (6b63a78b-7d5c-4195-a172-5bb6ed1e7dac) ==&gt; (Permission<br>
&gt;&gt;&gt; denied)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have turned off SELinux to be sure that isn&#39;t in the way. When I<br>
&gt;&gt;&gt; look at the permissions on the file using ls -l I see the file is set<br>
&gt;&gt;&gt; to 600, this doesn&#39;t seem right. I tried manually changing the<br>
&gt;&gt;&gt; permission to 755 as a test and as soon as the machine booted it was<br>
&gt;&gt;&gt; changed back to 600.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Any hints as to what is going on and how to get the disk functioning?<br>
&gt;&gt;&gt; The machine will boot but as soon as anything is written to disk it<br>
&gt;&gt;&gt; will hang forever.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;  _<br>
&gt; /-\ ndrew Niemantsverdriet<br>
&gt; Linux System Administrator<br>
&gt; Academic Computing<br>
&gt; (406) 238-7360<br>
&gt; Rocky Mountain College<br>
&gt; 1511 Poly Dr.<br>
&gt; Billings MT, 59102<br>
</div></div>&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
<span class=""><font color="#888888"><br>
<br>
<br>
--<br>
Asias<br>
</font></span></blockquote></div><br><br clear="all"><br>Thanks,<br>-- <br> _<br>/-\ ndrew Niemantsverdriet<br>Linux System Administrator<br>Academic Computing<br>(406) 238-7360<br>Rocky Mountain College<br>1511 Poly Dr.<br>
Billings MT, 59102<br>
</div></div></div>