public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* cannot create VM with image on zfs filesystem (zfsonlinux)
@ 2011-11-07 13:57 Peter Lees
  2011-11-07 15:03 ` Michael Tokarev
  2011-11-07 15:22 ` Avi Kivity
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Lees @ 2011-11-07 13:57 UTC (permalink / raw)
  To: kvm@vger.kernel.org list

hello all

when trying to create a VM using a RAW image on a zfs filesystem, i get an 
"invalid argument" error.

has anyone made this work? is it a known issue and/or is there a workaround?




more detail:

- i can create the VM on a ext4 filesystem
- i can create the VM on a ZFS zvol ("raw" device - too slow, however)
- linux is centos 6 (2.6.32-71.el6.x86_64 )
- zfsonlinux is v0.6.0 (http://zfsonlinux.org)
- qemu-kvm is v0.12.1.2 ; release  2.113.el6_0.8
- copying the VM disk from ext4fs to zfs & then running it results in a similar error


disk creation line was:

# qemu-img create -f raw elveros_001.raw 15G


full error was:
Unable to complete install '<class 'libvirt.libvirtError'> internal error Process exited while reading console log output: char device redirected to /dev/pts/3
qemu: could not open disk image /space/vm_store/elveros_001.raw: Invalid argument

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1561, in do_install
    dom = guest.start_install(False, meter = meter)
  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)



any suggestions in getting ZFS as the vm_store, working with decent performance ?

tia

p

--
peter lees

 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-08  1:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 13:57 cannot create VM with image on zfs filesystem (zfsonlinux) Peter Lees
2011-11-07 15:03 ` Michael Tokarev
2011-11-07 15:22 ` Avi Kivity
2011-11-07 21:51   ` Peter Lees
2011-11-08  1:23     ` Peter Lees

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox