VirtualBox

Changeset 11883 in vbox for trunk/src


Ignore:
Timestamp:
Aug 31, 2008 4:06:43 PM (16 years ago)
Author:
vboxsync
Message:

#3076: better error messages for when using the wrong driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VM.cpp

    r11794 r11883  
    269269                    break;
    270270                case VERR_VM_DRIVER_NOT_ACCESSIBLE:
    271 #ifdef RT_OS_LINUX
    272                     pszError = N_("The VirtualBox kernel driver is not accessible to the current "
    273                                   "user. Make sure that the user has write permissions for "
    274                                   "/dev/vboxdrv by adding them to the vboxusers groups. You "
    275                                   "will need to logout for the change to take effect.");
     271#ifdef VBOX_WITH_HARDENING
     272                    /* This should only happen if the executable wasn't hardened - bad code/build. */
     273                    pszError = N_("VirtualBox kernel driver not accessible, permission problem. "
     274                                  "Re-install VirtualBox. If you are building it yourself, you "
     275                                  "should make sure it installed correctly and that the setuid "
     276                                  "bit is set on the executables calling VMR3Create.");
    276277#else
    277                     pszError = N_("VirtualBox kernel driver not accessible, permission problem");
     278                    /* This should only happen when mixing builds or with the usual /dev/vboxdrv access issues. */
     279# if defined(RT_OS_DARWIN)
     280                    pszError = N_("VirtualBox KEXT is not accessible, permission problem. "
     281                                  "If you have built VirtualBox yourself, make sure that you do not "
     282                                  "have the vboxdrv KEXT from a different build or installation loaded.");
     283# elif defined(RT_OS_LINUX)
     284                    pszError = N_("VirtualBox kernel driver is not accessible, permission problem. "
     285                                  "If you have built VirtualBox yourself, make sure that you do "
     286                                  "not have the vboxdrv kernel module from a different build or "
     287                                  "installation loaded. Also, make sure the vboxdrv udev rule gives "
     288                                  "you the permission you need to access the device.");
     289# elif defined(RT_OS_WINDOWS)
     290                    pszError = N_("VirtualBox kernel driver is not accessible, permission problem.");
     291# else /* solaris, freebsd, ++. */
     292                    pszError = N_("VirtualBox kernel module is not accessible, permission problem. "
     293                                  "If you have built VirtualBox yourself, make sure that you do "
     294                                  "not have the vboxdrv kernel module from a different install loaded.");
     295# endif
    278296#endif
    279297                    break;
     298                case VERR_INVALID_HANDLE: /** @todo track down and fix this error. */
    280299                case VERR_VM_DRIVER_NOT_INSTALLED:
    281                 case VERR_INVALID_HANDLE:
    282300#ifdef RT_OS_LINUX
    283301                    pszError = N_("VirtualBox kernel driver not installed. The vboxdrv kernel module "
Note: See TracChangeset for help on using the changeset viewer.

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