[Xen-API] XAPI create PV (para-virtualized) Ubuntu guest 14.04

2014-12-30 Thread Dawid Kowalski
Hi Guys, Could any of you point me to how to create PV guest with minimal filesystem consumption? I've update template for Ubuntu 14.04 following http://www.mikeslab.net/?p=222 But I have no idea how to create PV system from CLI. I've created VM using Xen Orchestra and it seems to be PV sy

Re: [Xen-API] Storage Repository FileSR on ZFS won't work - Linux

2014-12-30 Thread Carlos Reategui
Glad you got it to work. BTW DirectIO support in ZFS on Linux is on the roadmap for 0.6.4 ( https://github.com/zfsonlinux/zfs/issues/224). However don't know when that is scheduled for. On Tue, Dec 30, 2014 at 4:04 PM, Dawid Kowalski wrote: > Hi Carlos, > > Thanks for hint! > This one worked.

Re: [Xen-API] Storage Repository FileSR on ZFS won't work - Linux

2014-12-30 Thread Dawid Kowalski
Hi Carlos, Thanks for hint! This one worked. So what worked: zpool -> zfs block device fomatted as ext4 and mounted as folder storage repository created with ffs driver. The other drivers, meaning : - file, fileSR on mounted ext4 FS, - ext/lvm pointed to /dev/zd0 - ffs directly on ZFS. Failed.

Re: [Xen-API] Storage Repository FileSR on ZFS won't work - Linux

2014-12-30 Thread Carlos Reategui
Have you tried using ext4 on a ZVOL and putting your VHDs there? Scroll down to the "Ext4 on a ZVOL" section: https://pthree.org/2012/12/21/zfs-administration-part-xiv-zvols/ On Tue, Dec 30, 2014 at 9:45 AM, Dawid Kowalski wrote: > Just as a form of an update. I'm stuck trying to get NFS worki

Re: [Xen-API] Storage Repository FileSR on ZFS won't work - Linux

2014-12-30 Thread Dawid Kowalski
Just as a form of an update. I'm stuck trying to get NFS working as no other way to use ZFS in background seems to be available for me. iSCSI share option for ZFS is not available on Linux. Should I try to enable it I'd need to add third-party daemon. I'm looking forward for your help in NFS c

Re: [Xen-API] Storage Repository FileSR on ZFS won't work - Linux

2014-12-30 Thread Dave Scott
> On 30 Dec 2014, at 17:24, Dawid Kowalski wrote: > > I'll answer myself. > > Modifying td.c line 258 to skip O_DIRECT and recompiling doesn't help. > For some unexplained reasons, it calls O_DIRECT flag still: Hm. As an experiment you could try an LD_PRELOAD wrapper like this: http://www.mcg

Re: [Xen-API] Storage Repository FileSR on ZFS won't work - Linux

2014-12-30 Thread Dawid Kowalski
I'll answer myself. Modifying td.c line 258 to skip O_DIRECT and recompiling doesn't help. For some unexplained reasons, it calls O_DIRECT flag still: strace ./td-util create vhd 2048 /path/to/file open("/path/to/file", O_WRONLY|O_CREAT|O_TRUNC|O_DIRECT, 0644) = -1 EINVAL (Invalid argument) ex

[Xen-API] Storage Repository FileSR on ZFS won't work - Linux

2014-12-30 Thread Dawid Kowalski
Hi Guys, Just wanted to report that file based Storage Repository won't work on Linux systems as td-util is required O_DIRECT when creating image file not supported on ZFS (Linux). When creating vm, i.e. vm-import it calls td-util similar to below: td-util create vhd 2048 /path/to/file Strac

Re: [Xen-API] NFS exported from ZFS on Ubuntu 14.04

2014-12-30 Thread David
Hi Dave, Many thanks for quick reply! Really appreciated. My comments inline below. On 30/12/14 16:30, Dave Scott wrote: Hi, On 30 Dec 2014, at 14:44, David wrote: Hi Guys, I'm looking for your help as I'm facing issue with Xen and NFS Storage Repository. The problem I'm facing is that vm

Re: [Xen-API] NFS exported from ZFS on Ubuntu 14.04

2014-12-30 Thread Dave Scott
Hi, > On 30 Dec 2014, at 14:44, David wrote: > > Hi Guys, > > I'm looking for your help as I'm facing issue with Xen and NFS Storage > Repository. > The problem I'm facing is that vm-import fails due to blktap2 issue (seems > like). > Last call is about vdi_activate failure (full dump below):

[Xen-API] NFS exported from ZFS on Ubuntu 14.04

2014-12-30 Thread David
Hi Guys, I'm looking for your help as I'm facing issue with Xen and NFS Storage Repository. The problem I'm facing is that vm-import fails due to blktap2 issue (seems like). Last call is about vdi_activate failure (full dump below): generic exception: vdi_activate: EXCEPTION 'exceptions.Attri