[SOLVED] [Tutorial] Compile Proxmox VE 5 with patched intel-iommu driver to remove RMRR check

Discussion in 'Proxmox VE: Installation and configuration' started by Feni, Aug 16, 2017.

  1. txolo99

    txolo99 New Member

    Joined:
    Feb 28, 2019
    Messages:
    1
    Likes Received:
    1
    Great job @Feni !!!

    Comment two things:

    1. Is necessary to remove the graphic card before doing this process?

    2. In the installation of the required packages there two of them that are missing:

    Code:
    
    # pveversion
    pve-manager/5.3-11/d4907f84 (running kernel: 4.15.18-11-pve)
    
    # apt-get install git nano screen patch fakeroot build-essential devscripts libncurses5 libncurses5-dev libssl-dev bc flex bison libelf-dev libaudit-dev libgtk2.0-dev libperl-dev libperl-dev asciidoc xmlto gnupg gnupg2 rsync lintian debhelper libibery-dev libdw-dev libnuma-dev libsplang2-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package libibery-dev
    E: Unable to locate package libsplang2-dev
    
    
     
    Feni likes this.
  2. Nullos

    Nullos New Member

    Joined:
    Mar 3, 2019
    Messages:
    3
    Likes Received:
    1
    Hi, thanks for your tutorial !
    I have a question, when i run the "make" command i have this messages (like your old post) :

    root@pve:/usr/src/pve-kernel# make
    gcc --version|grep "6\.3" || false
    gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
    test -f "submodules/ubuntu-bionic/README" || git submodule update --init submodules/ubuntu-bionic
    test -f "submodules/zfsonlinux/Makefile" || git submodule update --init submodules/zfsonlinux
    (test -f "submodules/zfsonlinux/zfs/upstream/README.markdown" && test -f "submodules/zfsonlinux/spl/upstream/README.markdown") || (cd submodules/zfsonlinux; git submodule update --init)
    Cloning into '/usr/src/pve-kernel/submodules/zfsonlinux/spl/upstream'...
    fatal: remote error: access denied or repository not exported: /git/mirror_spl
    fatal: clone of 'git://git.proxmox.com/git/mirror_spl' into submodule path '/usr/src/pve-kernel/submodules/zfsonlinux/spl/upstream' failed
    Failed to clone 'spl/upstream'. Retry scheduled
    Cloning into '/usr/src/pve-kernel/submodules/zfsonlinux/zfs/upstream'...
    fatal: remote error: access denied or repository not exported: /git/mirror_zfs
    fatal: clone of 'git://git.proxmox.com/git/mirror_zfs' into submodule path '/usr/src/pve-kernel/submodules/zfsonlinux/zfs/upstream' failed
    Failed to clone 'zfs/upstream'. Retry scheduled
    Cloning into '/usr/src/pve-kernel/submodules/zfsonlinux/spl/upstream'...
    fatal: remote error: access denied or repository not exported: /git/mirror_spl
    fatal: clone of 'git://git.proxmox.com/git/mirror_spl' into submodule path '/usr/src/pve-kernel/submodules/zfsonlinux/spl/upstream' failed
    Failed to clone 'spl/upstream' a second time, aborting
    Makefile:158: recipe for target 'submodule' failed
    make: *** [submodule] Error 1
     
  3. takipeti90

    takipeti90 New Member

    Joined:
    Feb 20, 2019
    Messages:
    5
    Likes Received:
    0

    The HEAD on the master branch is not working, checkout the previous commit:
    Code:
    git clone -n git://git.proxmox.com/git/pve-kernel.git
    git checkout HEAD^
     
  4. takipeti90

    takipeti90 New Member

    Joined:
    Feb 20, 2019
    Messages:
    5
    Likes Received:
    0
    Hi all,

    I could compile the kernel based on this tutorial, works fine.

    But I have a question, after the kernel compilation I modified again the ACS override patch (inserted some debug messages) and tried to recompile again with:
    Code:
    # make
    The compilation has started but after 10 sec it stopped without any error, see:
    Code:
    # make
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MEASUREMENT = "hu_HU.UTF-8",
        LC_PAPER = "hu_HU.UTF-8",
        LC_MONETARY = "hu_HU.UTF-8",
        LC_NAME = "hu_HU.UTF-8",
        LC_ADDRESS = "hu_HU.UTF-8",
        LC_NUMERIC = "hu_HU.UTF-8",
        LC_TELEPHONE = "hu_HU.UTF-8",
        LC_IDENTIFICATION = "hu_HU.UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    gcc --version|grep "6\.3" || false
    gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
    test -f "submodules/ubuntu-bionic/README" || git submodule update --init submodules/ubuntu-bionic
    test -f "submodules/zfsonlinux/Makefile" || git submodule update --init submodules/zfsonlinux
    (test -f "submodules/zfsonlinux/zfs-debian/debian/changelog" && test -f "/debian/changelog") || (cd submodules/zfsonlinux; git submodule update --init)
    #

    Should I rename the kernel again, clean and recompile? Because it is too much time if I have to do it always. Anyone has any idea why make did not work?

    thanks
     
  5. takipeti90

    takipeti90 New Member

    Joined:
    Feb 20, 2019
    Messages:
    5
    Likes Received:
    0

    # apt-get install libiberty-dev libslang2-dev
     
  6. fabian

    fabian Proxmox Staff Member
    Staff Member

    Joined:
    Jan 7, 2016
    Messages:
    3,193
    Likes Received:
    494
    if you edit a patch, you need to rebuild the whole kernel - we don't support incremental builds in our Makefile as we always rebuild from clean source.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. fabian

    fabian Proxmox Staff Member
    Staff Member

    Joined:
    Jan 7, 2016
    Messages:
    3,193
    Likes Received:
    494
    seems like a repo is not exported on our public mirror (yet) - I'll try to get that sorted out ASAP.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. fabian

    fabian Proxmox Staff Member
    Staff Member

    Joined:
    Jan 7, 2016
    Messages:
    3,193
    Likes Received:
    494
    should work again!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Feni likes this.
  9. Nullos

    Nullos New Member

    Joined:
    Mar 3, 2019
    Messages:
    3
    Likes Received:
    1
    Hi, thanks for the fix, it's ok for the repo, but i have another error :

    Code:
    dpkg-buildpackage: info: source package spl-linux
    dpkg-buildpackage: info: source version 0.7.13-pve1~bpo2
    dpkg-buildpackage: info: source distribution unstable
    dpkg-buildpackage: info: source changed by Proxmox Support Team <support@proxmox                      .com>
     dpkg-source --before-build spl-linux_0.7.13
    dpkg-source: info: using options from spl-linux_0.7.13/debian/source/options: --                      extend-diff-ignore=.*
     debian/rules clean
    make[2]: Entering directory '/usr/src/pve-kernel/build/modules/tmp/spl-linux_0.7                      .13'
    dh clean --with autoreconf --parallel
    make[2]: dh: Command not found
    debian/rules:11: recipe for target 'clean' failed
    make[2]: *** [clean] Error 127
    make[2]: Leaving directory '/usr/src/pve-kernel/build/modules/tmp/spl-linux_0.7.                      13'
    dpkg-buildpackage: error: debian/rules clean gave error exit status 2
    Makefile:66: recipe for target 'spl-linux_0.7.13-pve1~bpo2.dsc' failed
    make[1]: *** [spl-linux_0.7.13-pve1~bpo2.dsc] Error 2
    make[1]: Leaving directory '/usr/src/pve-kernel/build/modules/tmp'
    Makefile:134: recipe for target 'pkg-zfs.prepared' failed
    make: *** [pkg-zfs.prepared] Error 2
    
     
  10. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,106
    Likes Received:
    88
    please try installing 'debhelper'
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Feni likes this.
  11. Nullos

    Nullos New Member

    Joined:
    Mar 3, 2019
    Messages:
    3
    Likes Received:
    1
    I need to install a lot of packages but it works !
    Thanks for your help.
     
    Feni likes this.
  12. Feni

    Feni New Member

    Joined:
    Jun 22, 2017
    Messages:
    19
    Likes Received:
    7
    No it is not, just follow the tutorial for RMRR check removal and whatever tutorial you are using for passthrough. :)
     
  13. warnerizo

    warnerizo New Member

    Joined:
    Mar 18, 2019
    Messages:
    1
    Likes Received:
    1
    thank you my friend, this tutorial works like a charm on hp gen8 microserver
     
    Feni likes this.
  14. werter

    werter Member

    Joined:
    Dec 10, 2017
    Messages:
    37
    Likes Received:
    6
    #34 werter, Apr 19, 2019
    Last edited: Apr 19, 2019
  15. Feni

    Feni New Member

    Joined:
    Jun 22, 2017
    Messages:
    19
    Likes Received:
    7
    This tutorial is only for the G6 and G7 variant (possibly the G5 too), the G8 and later has other options to deal with RMRR like the one you listed. :)

    Where did I list xenial? I did not see any mention of it.
     
  16. blockedpitottube

    blockedpitottube New Member

    Joined:
    Apr 22, 2019
    Messages:
    1
    Likes Received:
    0
    Hi!

    do you have a recommended guide for passthrough?

    I compiled the kernel according to your steps, and followed a ton of different guides.

    I can get the GPU seen in windows - but can not get rid of the error 43!

    Thanks!
     
  17. werter

    werter Member

    Joined:
    Dec 10, 2017
    Messages:
    37
    Likes Received:
    6
    Hi.

    Did u try it with G5-7 hardware ? Just exclude the slot from RMRR with conrep utility. It's much, much easier than compiling new kernel.

    You must did it here http://www.jimmdenton.com/proliant-intel-dpdk/
     
  18. Feni

    Feni New Member

    Joined:
    Jun 22, 2017
    Messages:
    19
    Likes Received:
    7
    Conrep does not work for G6 and G7 hardware, otherwise I would not have written this tutorial. ;) The link you sent has nothing to do with this tutorial since Proxmox is not on Xenial.
     
  19. Feni

    Feni New Member

    Joined:
    Jun 22, 2017
    Messages:
    19
    Likes Received:
    7
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice