1 |
On Wednesday, February 17, 2016 05:01:51 PM Peter Humphrey wrote: |
2 |
> On Wednesday 17 February 2016 15:11:50 J. Roeleveld wrote: |
3 |
> > On Wednesday, February 17, 2016 01:32:56 PM Peter Humphrey wrote: |
4 |
|
5 |
[....] |
6 |
|
7 |
> > This is ONLY for guests, NOT the host. |
8 |
> |
9 |
> As I thought. However, some BOINC projects download a .vdi file and present |
10 |
> it to VirtualBox as a guest. I wasn't sure (while going round in circles) |
11 |
> whether that required me to set some kernel options to suit. |
12 |
|
13 |
Shouldn't be necessary on the host. |
14 |
|
15 |
> > > I assume I'm missing something in my kernel config, but I can't see |
16 |
> > > what. |
17 |
> > > |
18 |
> > > linux # grep -i virt .config |
19 |
> > > # CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set |
20 |
> > > CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y |
21 |
> > > CONFIG_VIRT_TO_BUS=y |
22 |
> > > # CONFIG_FB_VIRTUAL is not set |
23 |
> > > # CONFIG_SND_VIRTUOSO is not set |
24 |
> > > CONFIG_VIRT_DRIVERS=y |
25 |
> > > # Virtio drivers |
26 |
> > > # CONFIG_VIRTIO_PCI is not set |
27 |
> > > # CONFIG_VIRTIO_MMIO is not set |
28 |
> > > # CONFIG_DEBUG_VIRTUAL is not set |
29 |
> > > CONFIG_VIRTUALIZATION=y |
30 |
> > |
31 |
> > VirtualBox does NOT use these. |
32 |
> > I only have the following set: |
33 |
> > # CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set |
34 |
> > CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y |
35 |
> > CONFIG_VIRT_TO_BUS=y |
36 |
> |
37 |
> Okay. I've tried that and I still get the pop-up notice "VBoxClient: the |
38 |
> VirtualBox kernel service is not running." This is with version 4.3.32. I'll |
39 |
> try later versions and see what happens. Thanks for the info. |
40 |
|
41 |
I actually run 4.3.28 myself at the moment. |
42 |
|
43 |
|
44 |
> > > Most of those unset values are for when this kernel is running as a |
45 |
> > > guest |
46 |
> > > of another OS, so I assume I don't need them when running as the host |
47 |
> > > OS. |
48 |
> > > Others I can't set because they're hidden until I set the values to be a |
49 |
> > > guest. |
50 |
> > > |
51 |
> > > I can find lots of other people struggling with this and similar |
52 |
> > > problems, |
53 |
> > > but no fix. |
54 |
> > > |
55 |
> > > Any ideas here? |
56 |
> > |
57 |
> > Yes, for the host, make sure you load the virtualbox modules: |
58 |
> > |
59 |
> > % lsmod | grep vbox |
60 |
> > vboxpci 12760 0 |
61 |
> > vboxnetflt 16280 0 |
62 |
> > vboxnetadp 17808 0 |
63 |
> > vboxdrv 347894 3 vboxnetadp,vboxnetflt,vboxpci |
64 |
> > |
65 |
> > |
66 |
> > I achieve this with the following: |
67 |
> > |
68 |
> > % cat /etc/conf.d/modules | grep vbox |
69 |
> > modules="vboxdrv vboxnetadp vboxnetflt vboxpci" |
70 |
> > |
71 |
> > These can be found in " app-emulation/virtualbox-modules " |
72 |
> > |
73 |
> > It tells you to do this in the post-emerge: |
74 |
> > * If you are using sys-apps/openrc, please add "vboxdrv", "vboxnetflt" |
75 |
> > * and "vboxnetadp" to: |
76 |
> > * /etc/conf.d/modules |
77 |
> |
78 |
> Yes, of course I did that long ago. I also found that it's important to |
79 |
> specify vboxnetadp before vboxnetflt, otherwise adp doesn't get loaded. |
80 |
|
81 |
I use the order listed above and all modules actually get loaded. |
82 |
|
83 |
One other thing, are you in the "vboxusers" group? |
84 |
My user is and I have the following devices: |
85 |
|
86 |
% ls -lsa /dev/vbox* |
87 |
0 crw------- 1 root root 10, 56 Feb 7 13:16 /dev/vboxdrv |
88 |
0 crw------- 1 root root 10, 55 Feb 7 13:16 /dev/vboxdrvu |
89 |
0 crw------- 1 root root 10, 54 Feb 7 13:16 /dev/vboxnetctl |
90 |
|
91 |
/dev/vboxusb: |
92 |
total 0 |
93 |
0 drwxr-x--- 3 root vboxusers 60 Feb 7 15:24 . |
94 |
0 drwxr-xr-x 18 root root 6360 Feb 17 18:13 .. |
95 |
0 drwxr-x--- 2 root vboxusers 100 Feb 17 18:13 001 |
96 |
|
97 |
What do you get for the following: |
98 |
|
99 |
% ls -lsa /dev/vbox* |
100 |
% lsmod | grep vbox |
101 |
|
102 |
|
103 |
-- |
104 |
Joost |