public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Peter Lees <peter.lees@yseda.com>
Cc: "kvm@vger.kernel.org list" <kvm@vger.kernel.org>
Subject: Re: cannot create VM with image on zfs filesystem (zfsonlinux)
Date: Mon, 07 Nov 2011 17:22:41 +0200	[thread overview]
Message-ID: <4EB7F7C1.9000005@redhat.com> (raw)
In-Reply-To: <98E301E7-7879-46A4-871A-834F4C1529A1@yseda.com>

On 11/07/2011 03:57 PM, Peter Lees wrote:
> 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

I'm guessing that qemu tried to open the file with O_DIRECT, and
zfsonlinux doesn't support O_DIRECT.  Please try changing the cache mode
to writeback.

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

zfsonlinux uses fuse, yes?  I'd be surprised if you can get decent
performance with it.

-- 
error compiling committee.c: too many arguments to function


  parent reply	other threads:[~2011-11-07 15:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-11-07 21:51   ` Peter Lees
2011-11-08  1:23     ` Peter Lees

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB7F7C1.9000005@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=peter.lees@yseda.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox