FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    leigh123linux Guest

    VBox with F15 2.6.41.1 kernel.

    I rebuilt this kernel version for SL6 and noticed a vbox build error that I believe will prevent it building on F15 as well.


    Code:
    [root@main_pc ~]# uname -r
    2.6.41.1-1.el6.x86_64
    [root@main_pc ~]# locate amd_iommu.h
    [root@main_pc ~]# locate amd-iommu.h
    /usr/src/kernels/2.6.41.1-1.el6.x86_64/include/linux/amd-iommu.h
    [root@main_pc ~]#

    This file needs editing /var/lib/dkms/vboxhost/4.1.6/source/vboxpci/linux/VBoxPci-linux.c

    from

    Code:
    /* $Id: VBoxPci-linux.c 73307 2011-08-03 11:35:54Z klaus $ */
    /** @file
     * VBoxPci - PCI Driver (Host), Linux Specific Code.
     */
    
    /*
     * Copyright (C) 2011 Oracle Corporation
     *
     * This file is part of VirtualBox Open Source Edition (OSE), as
     * available from http://www.virtualbox.org. This file is free software;
     * you can redistribute it and/or modify it under the terms of the GNU
     * General Public License (GPL) as published by the Free Software
     * Foundation, in version 2 as it comes in the "COPYING" file of the
     * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     */
    
    /*******************************************************************************
     *   Header Files                                                               *
     *******************************************************************************/
    #include "the-linux-kernel.h"
    #include "version-generated.h"
    #include "product-generated.h"
    
    #define LOG_GROUP LOG_GROUP_DEV_PCI_RAW
    #include <VBox/log.h>
    #include <VBox/err.h>
    #include <iprt/process.h>
    #include <iprt/initterm.h>
    #include <iprt/string.h>
    #include <iprt/mem.h>
    
    #include "VBoxPciInternal.h"
    
    #ifdef VBOX_WITH_IOMMU
    #include <linux/dmar.h>
    #include <linux/intel-iommu.h>
    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
    # include <asm/amd_iommu.h>
    #else
    # include <linux/amd-iommu.h>
    #endif
    #endif
    
    
    /*******************************************************************************
     *   Internal Functions                                                         *
     *******************************************************************************/
    to


    Code:
    /* $Id: VBoxPci-linux.c 73307 2011-08-03 11:35:54Z klaus $ */
    /** @file
     * VBoxPci - PCI Driver (Host), Linux Specific Code.
     */
    
    /*
     * Copyright (C) 2011 Oracle Corporation
     *
     * This file is part of VirtualBox Open Source Edition (OSE), as
     * available from http://www.virtualbox.org. This file is free software;
     * you can redistribute it and/or modify it under the terms of the GNU
     * General Public License (GPL) as published by the Free Software
     * Foundation, in version 2 as it comes in the "COPYING" file of the
     * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     */
    
    /*******************************************************************************
     *   Header Files                                                               *
     *******************************************************************************/
    #include "the-linux-kernel.h"
    #include "version-generated.h"
    #include "product-generated.h"
    
    #define LOG_GROUP LOG_GROUP_DEV_PCI_RAW
    #include <VBox/log.h>
    #include <VBox/err.h>
    #include <iprt/process.h>
    #include <iprt/initterm.h>
    #include <iprt/string.h>
    #include <iprt/mem.h>
    
    #include "VBoxPciInternal.h"
    
    #ifdef VBOX_WITH_IOMMU
    #include <linux/dmar.h>
    #include <linux/intel-iommu.h>
    # include <linux/amd-iommu.h>
    #endif
    
    
    /*******************************************************************************
     *   Internal Functions                                                         *
     *******************************************************************************/

  2. #2
    Join Date
    Sep 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VBox with F15 2.6.41.1 kernel.

    Thank you, it works well.

  3. #3
    Join Date
    Apr 2005
    Posts
    344
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VBox with F15 2.6.41.1 kernel.

    Awesome!

    uname -r
    Code:
    2.6.41.1-1.fc15.x86_64
    On F15 the file VBoxPci-linux.c was located here:
    Code:
    /usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c

  4. #4
    leigh123linux Guest

    Re: VBox with F15 2.6.41.1 kernel.

    Quote Originally Posted by psyklops
    Awesome!

    uname -r
    Code:
    2.6.41.1-1.fc15.x86_64
    On F15 the file VBoxPci-linux.c was located here:
    Code:
    /usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c
    I think the path is different for you because your not using dkms to build the kernel module.
    If dkms is installed vbox will use it.

  5. #5
    Join Date
    Nov 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VBox with F15 2.6.41.1 kernel.

    Thank you so much

  6. #6
    Join Date
    Jan 2010
    Location
    Vernonia, Oregun
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VBox with F15 2.6.41.1 kernel.

    The above edit of VBoxPci-linux.c worked great for me as well ! Thanks

    Should I install DKMS ?
    Fedora 19 64bit (Installed Dec. 2013)
    Memory 3Gb
    Video nVidia GeForce 9800GT 512Mb DDR3, CPU AMD Phenom 9550
    Disk Samsung HD103SJ 1Tb 3Gb/s (Installed April 2010)

  7. #7
    leigh123linux Guest

    Re: VBox with F15 2.6.41.1 kernel.

    Quote Originally Posted by JValeck
    The above edit of VBoxPci-linux.c worked great for me as well ! Thanks

    Should I install DKMS ?
    It's not a requirement but IMO it makes life easier when updating the kernel.

  8. #8
    Join Date
    Jan 2010
    Location
    Vernonia, Oregun
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VBox with F15 2.6.41.1 kernel.

    Sorry I am still a newbe, how do I install DKMS ?
    Fedora 19 64bit (Installed Dec. 2013)
    Memory 3Gb
    Video nVidia GeForce 9800GT 512Mb DDR3, CPU AMD Phenom 9550
    Disk Samsung HD103SJ 1Tb 3Gb/s (Installed April 2010)

  9. #9
    leigh123linux Guest

    Re: VBox with F15 2.6.41.1 kernel.

    Quote Originally Posted by JValeck
    Sorry I am still a newbe, how do I install DKMS ?
    Try
    Code:
    su
    yum install dkms
    Then you will need to reinstall the vbox rpm to initialize dkms support.

Similar Threads

  1. Can't get my USB pot work in vbox!!
    By Zeus212 in forum Using Fedora
    Replies: 3
    Last Post: 12th January 2011, 02:24 AM
  2. vbox not work
    By iraqb in forum Using Fedora
    Replies: 26
    Last Post: 6th January 2011, 10:40 AM
  3. 7 64bits on vbox 32b
    By raji1 in forum Using Fedora
    Replies: 1
    Last Post: 24th September 2010, 11:18 AM
  4. py-2.7 will break vbox
    By SlowJet in forum F16 Development
    Replies: 9
    Last Post: 29th July 2010, 06:22 PM
  5. Vbox kernel issue
    By TechDragon in forum Using Fedora
    Replies: 2
    Last Post: 28th August 2008, 05:03 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •