summaryrefslogtreecommitdiffstats
path: root/debian/patches/04-vboxdrv-references.patch
blob: 7e3f72300ffb03c91f9b884769d404d894dc1de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Description: Change error messages for vboxdrv failure, according to virtualbox-dkms.
Author: Daniel Hahler <ubuntu@thequod.de>

Index: virtualbox/src/VBox/VMM/VMMR3/VM.cpp
===================================================================
--- virtualbox.orig/src/VBox/VMM/VMMR3/VM.cpp
+++ virtualbox/src/VBox/VMM/VMMR3/VM.cpp
@@ -261,12 +261,8 @@
 
 #ifdef RT_OS_LINUX
                 case VERR_SUPDRV_COMPONENT_NOT_FOUND:
-                    pszError = N_("One of the kernel modules was not successfully loaded. Make sure "
-                                  "that VirtualBox is correctly installed, and if you are using EFI "
-                                  "Secure Boot that the modules are signed if necessary in the right "
-                                  "way for your host system.  Then try to recompile and reload the "
-                                  "kernel modules by executing "
-                                  "'/sbin/vboxconfig' as root");
+                    pszError = N_("Please install the virtualbox-dkms package "
+                                  "and execute 'modprobe vboxdrv' as root");
                     break;
 #endif
 
@@ -329,12 +325,8 @@
             {
                 case VERR_VM_DRIVER_LOAD_ERROR:
 #ifdef RT_OS_LINUX
-                    pszError = N_("VirtualBox kernel driver not loaded. The vboxdrv kernel module "
-                                  "was either not loaded, /dev/vboxdrv is not set up properly, "
-                                  "or you are using EFI Secure Boot and the module is not signed "
-                                  "in the right way for your system.  If necessary, try setting up "
-                                  "the kernel module again by executing "
-                                  "'/sbin/vboxconfig' as root");
+                    pszError = N_("Please install the virtualbox-dkms package "
+                                  "and execute 'modprobe vboxdrv' as root");
 #else
                     pszError = N_("VirtualBox kernel driver not loaded");
 #endif
@@ -373,12 +365,8 @@
                 case VERR_INVALID_HANDLE: /** @todo track down and fix this error. */
                 case VERR_VM_DRIVER_NOT_INSTALLED:
 #ifdef RT_OS_LINUX
-                    pszError = N_("VirtualBox kernel driver not Installed. The vboxdrv kernel module "
-                                  "was either not loaded, /dev/vboxdrv is not set up properly, "
-                                  "or you are using EFI Secure Boot and the module is not signed "
-                                  "in the right way for your system.  If necessary, try setting up "
-                                  "the kernel module again by executing "
-                                  "'/sbin/vboxconfig' as root");
+                    pszError = N_("Please install the virtualbox-dkms package "
+                                  "and execute 'modprobe vboxdrv' as root");
 #else
                     pszError = N_("VirtualBox kernel driver not installed");
 #endif
Index: virtualbox/src/VBox/Frontends/VirtualBox/src/main.cpp
===================================================================
--- virtualbox.orig/src/VBox/Frontends/VirtualBox/src/main.cpp
+++ virtualbox/src/VBox/Frontends/VirtualBox/src/main.cpp
@@ -90,8 +90,9 @@
 
 QString g_QStrHintLinuxNoDriver = QApplication::tr(
     "The VirtualBox Linux kernel driver is either not loaded or not set "
-    "up correctly. Please try setting it up again by executing<br/><br/>"
-    "  <font color=blue>'/sbin/vboxconfig'</font><br/><br/>"
+    "up correctly. Please reinstall virtualbox-dkms "
+    "package and load the kernel module by executing<br/><br/>"
+    "  <font color=blue>'modprobe vboxdrv'</font><br/><br/>"
     "as root.<br/><br/>"
     "If your system has EFI Secure Boot enabled you may also need to sign "
     "the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before "
@@ -110,7 +111,7 @@
     "The VirtualBox kernel modules do not match this version of "
     "VirtualBox. The installation of VirtualBox was apparently not "
     "successful. Executing<br/><br/>"
-    "  <font color=blue>'/sbin/vboxconfig'</font><br/><br/>"
+    "  <font color=blue>'modprobe vboxdrv'</font><br/><br/>"
     "may correct this. Make sure that you are not mixing builds "
     "of VirtualBox from different sources."
     );