VirtualBox

Changeset 77196 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 7, 2019 1:33:50 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128689
Message:

Help text: explain about EFI Secure Boot and signing.
ticketref:18312: Unable to build Virtualbox 6.0 on Fedora 29
When a user tries to use VirtualBox on a Linux system with EFI Secure Boot
enabled, it sometimes fails in a non-obvious way due to unsigned kernel
modules. As it is rather tricky to detect this properly, mention it in the
help text which is shown when there are problems with the modules.

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r76818 r77196  
    8787
    8888QString g_QStrHintLinuxNoDriver = QApplication::tr(
    89     "The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or "
    90     "there is a permission problem with /dev/vboxdrv. Please reinstall the kernel "
    91     "module by executing<br/><br/>"
     89    "The VirtualBox Linux kernel driver is either not loaded or not set "
     90    "up correctly. Please try setting it up again by executing<br/><br/>"
    9291    "  <font color=blue>'/sbin/vboxconfig'</font><br/><br/>"
    93     "as root."
     92    "as root.<br/><br/>"
     93    "If your system has EFI Secure Boot enabled you may also need to sign "
     94    "the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before "
     95    "you can load them. Please see your Linux system's documentation for "
     96    "more information."
    9497    );
    9598
     
    106109    "successful. Executing<br/><br/>"
    107110    "  <font color=blue>'/sbin/vboxconfig'</font><br/><br/>"
    108     "may correct this. Make sure that you do not mix the "
    109     "OSE version and the PUEL version of VirtualBox."
     111    "may correct this. Make sure that you are not mixing builds "
     112    "of VirtualBox from different sources."
    110113    );
    111114
  • trunk/src/VBox/Installer/linux/postinst-common.sh

    r76611 r77196  
    104104        echo "There were problems setting up VirtualBox.  To re-start the set-up process, run" >&2
    105105        echo "  /sbin/vboxconfig" >&2
    106         echo "as root." >&2
     106        echo "as root.  If your system is using EFI Secure Boot you may need to sign the" >&2
     107        echo "kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load" >&2
     108        echo " them. Please see your Linux system's documentation for more information." >&2
    107109    else
    108110        start_init_script vboxdrv
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r76553 r77196  
    273273                case VERR_SUPDRV_COMPONENT_NOT_FOUND:
    274274                    pszError = N_("One of the kernel modules was not successfully loaded. Make sure "
    275                                   "that no kernel modules from an older version of VirtualBox exist. "
    276                                   "Then try to recompile and reload the kernel modules by executing "
     275                                  "that VirtualBox is correctly installed, and if you are using EFI "
     276                                  "Secure Boot that the modules are signed if necessary in the right "
     277                                  "way for your host system.  Then try to recompile and reload the "
     278                                  "kernel modules by executing "
    277279                                  "'/sbin/vboxconfig' as root");
    278280                    break;
     
    339341#ifdef RT_OS_LINUX
    340342                    pszError = N_("VirtualBox kernel driver not loaded. The vboxdrv kernel module "
    341                                   "was either not loaded or /dev/vboxdrv is not set up properly. "
    342                                   "Re-setup the kernel module by executing "
     343                                  "was either not loaded, /dev/vboxdrv is not set up properly, "
     344                                  "or you are using EFI Secure Boot and the module is not signed "
     345                                  "in the right way for your system.  If necessary, try setting up "
     346                                  "the kernel module again by executing "
    343347                                  "'/sbin/vboxconfig' as root");
    344348#else
     
    380384                case VERR_VM_DRIVER_NOT_INSTALLED:
    381385#ifdef RT_OS_LINUX
    382                     pszError = N_("VirtualBox kernel driver not installed. The vboxdrv kernel module "
    383                                   "was either not loaded or /dev/vboxdrv was not created for some "
    384                                   "reason. Re-setup the kernel module by executing "
     386                    pszError = N_("VirtualBox kernel driver not Installed. The vboxdrv kernel module "
     387                                  "was either not loaded, /dev/vboxdrv is not set up properly, "
     388                                  "or you are using EFI Secure Boot and the module is not signed "
     389                                  "in the right way for your system.  If necessary, try setting up "
     390                                  "the kernel module again by executing "
    385391                                  "'/sbin/vboxconfig' as root");
    386392#else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette