Problems installing ubuntu 11.04 with native ZFS root

mfinifter mfinifter at gmail.com
Fri May 20 17:10:39 EDT 2011


This did help.  Thanks.  Installing these manually like you described
works perfectly.

It's not the case that I'm building for a different kernel variant
than the host, though.
It appears that there are failures during the package install after
running 'apt-get install ubuntu-zfs zfs-initramfs'.
Here are the parts that I think are relevant:

"""
Loading new spl-0.6.00.14 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.38-8-generic
Building initial module for 2.6.38-8-generic
configure: error: in '/var/lib/dkms/spl/0.6.0.14/build':
configure: error: C compiler cannot create executables
See 'config.log' for more details.

Error! Bad return status for module build on kernel: 2.6.38-8-generic
(x86_64)
Consult the make.log in the build directory
/var/lib/dkms/spl/0.6.0.14/build for more information.
"""

and

"""
Setting up zfs-dkms (0.6.0.14-0ubuntu1-natty1) ...
Loading new zfs-0.06.0.14 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.38-8-generic
Building initial module for 2.6.38-8-generic
configure: error:
        *** Please make sure the spl devel package for your
distribution
        *** is installed then try again.  If that fails you can
specify the
        *** location of the spl source with the '--with-spl=PATH'
option.

Error! Bad return status for module build on kernel: 2.6.38-8-generic
(x86_64)
Consult the make.log in the build directory
/var/lib/dkms/zfs/0.6.0.14/build/ for more information.
"""

My problems are solved, but hopefully this will be useful for
smoothing out the install process a bit.


On May 19, 10:34 am, Darik Horn <dajh... at vanadac.com> wrote:
> On Wed, 2011-05-18 at 18:09 -0700, mfinifter wrote:
> > Any ideas as to what I'm doing wrong here?  I followed the
> > instructions exactly multiple times, with the same result each time.
> > Thanks in advance for any suggestions.
>
> This can happen when the host kernel is a different variant than the
> target kernel during installation.
>
> For example, you boot into the LiveCD environment that has a -generic
> kernel, but you install the -server or -virtual kernel in the chroot
> environment.
>
> Run `dkms status` in the installation target sometime after step 5.6 and
> you should get this on Ubuntu Natty:
>
>   spl, 0.6.0.14, 2.6.38-8-generic, x86_64: installed
>   zfs, 0.6.0.14, 2.6.38-8-generic, x86_64: installed
>
> If the spl or zfs modules are not in the "installed" state after step
> 5.6, then manually invoke dkms for the target kernel.  For example, if
> you installed the -server kernel variant, then do this:
>
>   # dkms add -m spl -v 0.6.0.14 -k 2.6.38-8-server
>   # dkms build -m spl -v 0.6.0.14 -k 2.6.38-8-server
>   # dkms install -m spl -v 0.6.0.14 -k 2.6.38-8-server
>
> Repeat for the zfs module, and then create the initrd file:
>
>   # update-initramfs -c -k 2.6.38-8-server
>
> Verify that the zfs module is in the boot image:
>
>   # gzip -dc /boot/initrd.img-2.6.38-8-server | cpio -it | grep zfs.ko
>   lib/modules/2.6.38-8-server/updates/dkms/zfs.ko
>
> HTH.



More information about the zfs-discuss mailing list