VirtualBox

Changeset 1187 in vbox


Ignore:
Timestamp:
Mar 4, 2007 8:23:31 PM (18 years ago)
Author:
vboxsync
Message:

sync HEAD with 1.3: Better error messages if vboxdrv could not be accessed on Linux

File:
1 edited

Legend:

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

    r914 r1187  
    290290        {
    291291            case VERR_VM_DRIVER_LOAD_ERROR:
    292                 pszError = N_("VirtualBox kernel driver not loaded");
     292#ifdef __LINUX
     293                pszError = N_("VirtualBox kernel driver not loaded. The vboxdrv kernel module "
     294                              "was either not loaded or /dev/vboxdrv is not set up properly. "
     295                              "Re-setup the kernel module by executing "
     296                              "'/etc/init.d/vboxdrv setup' as root");
     297#else
     298                pszError = N_("VirtualBox kernel driver not loaded.");
     299#endif
    293300                break;
    294301            case VERR_VM_DRIVER_OPEN_ERROR:
     
    296303                break;
    297304            case VERR_VM_DRIVER_NOT_ACCESSIBLE:
     305#ifdef __LINUX__
     306                pszError = N_("VirtualBox kernel driver not accessible, permission problem. "
     307                              "Make sure that the current user has write permissions to "
     308                              "/dev/vboxdrv by adding him to the vboxusers groups. Don't "
     309                              "forget to logout to take the change effect");
     310#else
    298311                pszError = N_("VirtualBox kernel driver not accessible, permission problem");
     312#endif
    299313                break;
    300314            case VERR_VM_DRIVER_NOT_INSTALLED:
     315#ifdef __LINUX__
     316                pszError = N_("VirtualBox kernel driver not installed. The vboxdrv kernel module "
     317                              "was either not loaded or /dev/vboxdrv was not created for some "
     318                              "reason. Re-setup the kernel module by executing "
     319                              "'/etc/init.d/vboxdrv setup' as root");
     320#else
    301321                pszError = N_("VirtualBox kernel driver not installed");
     322#endif
    302323                break;
    303324            case VERR_NO_MEMORY:
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