this worked, thank you!<br><br><div class="gmail_quote">On Fri, Jul 29, 2011 at 3:47 PM, Michael <span dir="ltr">&lt;<a href="mailto:michael.auckland@gmail.com">michael.auckland@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
try to start kvm disk image with cache=writeback or writethrough.<div>if cache=none than will get this error.</div><div><br></div><div>Runnig kvm on gluster 3.3beta1 on debian x64 sqeeze. so far so good. live -migartion, failover works ok.<br>

<br><div class="gmail_quote"><div><div></div><div class="h5">On Sat, Jul 30, 2011 at 10:22 AM, Eric <span dir="ltr">&lt;<a href="mailto:campee@gmail.com" target="_blank">campee@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
i&#39;m having difficulty running KVM virtual machines off of a glusterFS volume mounted using the glusterFS client. i am running centOS 6, 64-bit.  <br><br>i am using virt-install to create my images but encountering the following error:<br>


<br>qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid argument<br>(see below for a more lengthy version of the error)<br><br>i have found an example of someone else having this issue as well but no solution was offered (<a href="http://gluster.org/pipermail/gluster-users/2011-February/006731.html" target="_blank">http://gluster.org/pipermail/gluster-users/2011-February/006731.html</a>). i also found the following FAQ entry that states that NFS should be used to store VM images (<a href="http://www.gluster.org/faq/index.php?sid=36929&amp;lang=en&amp;action=artikel&amp;cat=3&amp;id=5&amp;artlang=en" target="_blank">http://www.gluster.org/faq/index.php?sid=36929&amp;lang=en&amp;action=artikel&amp;cat=3&amp;id=5&amp;artlang=en</a>)<br>


<br>i would prefer to use the glusterFS client for the automatic fail-over that it offers. is this possible? <br><br>i am creating the VM as follows:<br><br>sudo virt-install --name testvm --ram 4096 --os-type=&#39;linux&#39; --os-variant=rhel5.4 --disk path=/mnt/myreplicatestvolume/testvm.img,size=50 --network bridge:br0 --accelerate --vnc --mac=54:52:00:A1:B2:C3 --location <a href="http://server/centos/5.4/os/x86_64/" target="_blank">http://server/centos/5.4/os/x86_64/</a> -x &quot;ks=<a href="http://server/kscfg/testvm.cfg" target="_blank">http://server/kscfg/testvm.cfg</a>&quot; --uuid=00000000-0000-0000-0000-000000000001 --vcpus=4<br>


<br>full text of error:<br><br>Starting install...<br>Retrieving file vmlinuz...                                                                                                                                                              | 3.7 MB     00:00 ...<br>


Retrieving file initrd.img...                                                                                                                                                           |  14 MB     00:00 ...<br>ERROR    internal error process exited while connecting to monitor: char device redirected to /dev/pts/5<br>


qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid argument<br><br>Domain installation does not appear to have been<br> successful.  If it was, you can restart your domain<br> by running &#39;virsh start testvm&#39;; otherwise, please<br>


 restart your installation.<br>ERROR    internal error process exited while connecting to monitor: char device redirected to /dev/pts/5<br>qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid argument<br>


Traceback (most recent call last):<br>  File &quot;/usr/bin/virt-install&quot;, line 1054, in &lt;module&gt;<br>    main()<br>  File &quot;/usr/bin/virt-install&quot;, line 936, in main<br>    start_time, guest.start_install)<br>


  File &quot;/usr/bin/virt-install&quot;, line 978, in do_install<br>    dom = install_func(conscb, progresscb, wait=(not wait))<br>  File &quot;/usr/lib/python2.6/site-packages/virtinst/Guest.py&quot;, line 973, in start_install<br>


    return self._do_install(consolecb, meter, removeOld, wait)<br>  File &quot;/usr/lib/python2.6/site-packages/virtinst/Guest.py&quot;, line 1038, in _do_install<br>    &quot;install&quot;)<br>  File &quot;/usr/lib/python2.6/site-packages/virtinst/Guest.py&quot;, line 1009, in _create_guest<br>


    dom = self.conn.createLinux(start_xml, 0)<br>  File &quot;/usr/lib64/python2.6/site-packages/libvirt.py&quot;, line 1270, in createLinux<br>    if ret is None:raise libvirtError(&#39;virDomainCreateLinux() failed&#39;, conn=self)<br>


libvirtError: internal error process exited while connecting to monitor: char device redirected to /dev/pts/5<br>qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid argument<br><br>
<br></div></div>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>--<br>Michael<br>
</div>
</blockquote></div><br>