i'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">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&lang=en&action=artikel&cat=3&id=5&artlang=en">http://www.gluster.org/faq/index.php?sid=36929&lang=en&action=artikel&cat=3&id=5&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='linux' --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/">http://server/centos/5.4/os/x86_64/</a> -x "ks=<a href="http://server/kscfg/testvm.cfg">http://server/kscfg/testvm.cfg</a>" --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 'virsh start testvm'; 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 "/usr/bin/virt-install", line 1054, in <module><br> main()<br> File "/usr/bin/virt-install", line 936, in main<br> start_time, guest.start_install)<br>
File "/usr/bin/virt-install", line 978, in do_install<br> dom = install_func(conscb, progresscb, wait=(not wait))<br> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 973, in start_install<br>
return self._do_install(consolecb, meter, removeOld, wait)<br> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1038, in _do_install<br> "install")<br> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1009, in _create_guest<br>
dom = self.conn.createLinux(start_xml, 0)<br> File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1270, in createLinux<br> if ret is None:raise libvirtError('virDomainCreateLinux() failed', 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>