[Gluster-users] issue with GlusterFS to store KVM guests

Eric campee at gmail.com
Fri Jul 29 22:22:23 UTC 2011


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.

i am using virt-install to create my images but encountering the following
error:

qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid
argument
(see below for a more lengthy version of the error)

i have found an example of someone else having this issue as well but no
solution was offered (
http://gluster.org/pipermail/gluster-users/2011-February/006731.html). i
also found the following FAQ entry that states that NFS should be used to
store VM images (
http://www.gluster.org/faq/index.php?sid=36929&lang=en&action=artikel&cat=3&id=5&artlang=en
)

i would prefer to use the glusterFS client for the automatic fail-over that
it offers. is this possible?

i am creating the VM as follows:

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
http://server/centos/5.4/os/x86_64/ -x "ks=http://server/kscfg/testvm.cfg"
--uuid=00000000-0000-0000-0000-000000000001 --vcpus=4

full text of error:

Starting install...
Retrieving file
vmlinuz...
| 3.7 MB     00:00 ...
Retrieving file
initrd.img...
|  14 MB     00:00 ...
ERROR    internal error process exited while connecting to monitor: char
device redirected to /dev/pts/5
qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid
argument

Domain installation does not appear to have been
 successful.  If it was, you can restart your domain
 by running 'virsh start testvm'; otherwise, please
 restart your installation.
ERROR    internal error process exited while connecting to monitor: char
device redirected to /dev/pts/5
qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid
argument
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 1054, in <module>
    main()
  File "/usr/bin/virt-install", line 936, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 978, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 973, in
start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1038, in
_do_install
    "install")
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1009, in
_create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1270, in
createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error process exited while connecting to monitor:
char device redirected to /dev/pts/5
qemu: could not open disk image /mnt/myreplicatestvolume/testvm.img: Invalid
argument
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20110729/522ce841/attachment.html>


More information about the Gluster-users mailing list