1 |
On Thursday 18 February 2016 11:23:42 I wrote: |
2 |
> On Thursday 18 February 2016 11:51:19 J. Roeleveld wrote: |
3 |
> > On Thursday, February 18, 2016 10:06:25 AM Peter Humphrey wrote: |
4 |
> --->8 |
5 |
> |
6 |
> > > I still can't shake the idea that I don't have my kernel set up right. |
7 |
> > > Do |
8 |
> > > I |
9 |
> > > need anything particular in control groups, or name spaces, or anything? |
10 |
> > |
11 |
> > About the kernel: I don't have anything special. |
12 |
> > |
13 |
> > USE-flags: |
14 |
> > |
15 |
> > [I] app-emulation/virtualbox |
16 |
> > |
17 |
> > Installed versions: 4.3.32{tbz2}(03:46:09 PM 11/25/2015)(additions |
18 |
> > |
19 |
> > alsa extensions java opengl pam pulseaudio qt4 sdk udev -doc -headless |
20 |
> > -libressl - python -vboxwebsrv -vnc ELIBC="-FreeBSD" |
21 |
> > PYTHON_TARGETS="python2_7") |
22 |
> |
23 |
> My USE flags: |
24 |
> |
25 |
> Installed versions: 4.3.32{tbz2}(10:25:28 18/02/16)(additions alsa |
26 |
> extensions opengl pam qt4 sdk udev -doc -headless -java -libressl |
27 |
> -pulseaudio -python -vboxwebsrv -vnc ELIBC="-FreeBSD" |
28 |
> PYTHON_TARGETS="python2_7") |
29 |
> |
30 |
> I don't have pulseaudio here, but do I need java for virtualbox? |
31 |
> |
32 |
> > What does " dmesg " have to say? |
33 |
> > |
34 |
> > For me: |
35 |
> > % dmesg | grep -i vbox |
36 |
> > [ 165.950507] vboxdrv: Found 8 processor cores. |
37 |
> > [ 165.950787] vboxdrv: fAsync=0 offMin=0x1fe offMax=0xa4f9 |
38 |
> > [ 165.950828] vboxdrv: TSC mode is 'synchronous', kernel timer mode is |
39 |
> > 'normal'. |
40 |
> > [ 165.950829] vboxdrv: Successfully loaded version 4.3.32 (interface |
41 |
> > 0x001a000b). |
42 |
> > [ 165.978641] vboxpci: pci-stub module not available, cannot detach PCI |
43 |
> > devices |
44 |
> > [ 165.978643] vboxpci: IOMMU found |
45 |
> |
46 |
> $ dmesg | grep -i vbox |
47 |
> [ 4.163645] vboxdrv: Found 4 processor cores. |
48 |
> [ 4.163748] vboxdrv: fAsync=0 offMin=0x1d8 offMax=0xd44 |
49 |
> [ 4.163792] vboxdrv: TSC mode is 'synchronous', kernel timer mode is |
50 |
> 'normal'. |
51 |
> [ 4.163793] vboxdrv: Successfully loaded version 4.3.32 (interface |
52 |
> 0x001a000b). |
53 |
> [ 4.173458] vboxpci: pci-stub module not available, cannot detach PCI |
54 |
> devices |
55 |
> [ 4.173461] vboxpci: IOMMU not found (not registered) |
56 |
> |
57 |
> That last one is suspicious, presumably connected with this: |
58 |
> |
59 |
> $ dmesg | grep IOMMU |
60 |
> [ 0.119875] dmar: IOMMU: failed to map dmar0 |
61 |
> [ 4.173461] vboxpci: IOMMU not found (not registered) |
62 |
> |
63 |
> I wonder what dmar0 is. |
64 |
|
65 |
While exploring that, I found advice to add iommu=soft to the kernel options. |
66 |
Then I got this: |
67 |
|
68 |
# dmesg | grep -i dmar |
69 |
[ 0.000000] ACPI: DMAR 0x00000000BFE880C0 000090 (v01 AMI OEMDMAR |
70 |
00000001 MSFT 00000097) |
71 |
[ 0.119714] dmar: Host address width 36 |
72 |
[ 0.119873] dmar: DRHD base: 0x000000fed90000 flags: 0x1 |
73 |
[ 0.120202] WARNING: CPU: 0 PID: 1 at drivers/iommu/dmar.c:829 |
74 |
warn_invalid_dmar+0x7c/0x90() |
75 |
[ 0.120481] Your BIOS is broken; DMAR reported at address fed90000 returns |
76 |
all ones! |
77 |
[ 0.123772] [<ffffffff813f12bc>] warn_invalid_dmar+0x7c/0x90 |
78 |
[ 0.123934] [<ffffffff813f2549>] dmar_parse_one_drhd+0x4f9/0x550 |
79 |
[ 0.124096] [<ffffffff813f1129>] dmar_walk_remapping_entries+0x29/0x140 |
80 |
[ 0.124260] [<ffffffff81907be6>] dmar_table_init+0xb9/0x138 |
81 |
[ 0.124421] [<ffffffff813f2050>] ? dmar_free_dev_scope+0xb0/0xb0 |
82 |
[ 0.124918] [<ffffffff813f12d0>] ? warn_invalid_dmar+0x90/0x90 |
83 |
[ 0.127042] dmar: IOMMU: failed to map dmar0 |
84 |
[ 0.127201] dmar: parse DMAR table failure. |
85 |
|
86 |
Without that kernel option: |
87 |
|
88 |
[ 0.000000] ACPI: DMAR 0x00000000BFE880C0 000090 (v01 AMI OEMDMAR |
89 |
00000001 MSFT 00000097) |
90 |
[ 0.000000] WARNING: CPU: 0 PID: 0 at drivers/iommu/dmar.c:829 |
91 |
warn_invalid_dmar+0x7c/0x90() |
92 |
[ 0.000000] Your BIOS is broken; DMAR reported at address fed90000 returns |
93 |
all ones! |
94 |
[ 0.000000] [<ffffffff813f12bc>] warn_invalid_dmar+0x7c/0x90 |
95 |
[ 0.000000] [<ffffffff815749a0>] dmar_validate_one_drhd+0xb0/0xf0 |
96 |
[ 0.000000] [<ffffffff813f1129>] dmar_walk_remapping_entries+0x29/0x140 |
97 |
[ 0.120132] dmar: Host address width 36 |
98 |
[ 0.120291] dmar: DRHD base: 0x000000fed90000 flags: 0x1 |
99 |
[ 0.120472] dmar: IOMMU: failed to map dmar0 |
100 |
[ 0.120631] dmar: parse DMAR table failure. |
101 |
|
102 |
So all the kernel option adds is some extra debug info. ATLAS@home still can't |
103 |
communicate with VirtualBox. |
104 |
|
105 |
Now that I think about it, I did update the AMI BIOS several weeks ago. It |
106 |
went from 1102 to 2101 - a bit of a step. Maybe that's what's broken my system |
107 |
- well, this bit of it, anyway. |
108 |
|
109 |
> > How exactly are you starting the VMs? |
110 |
> > |
111 |
> > I do it all with the GUI: /usr/bin/VirtualBox |
112 |
> |
113 |
> Me too, with no problems, but one BOINC project I use includes a .vdi which |
114 |
> it submits to virtualbox as a guest. That's what's failing. I want to make |
115 |
> sure virtualbox is set up right before going after that. |
116 |
|
117 |
-- |
118 |
Rgds |
119 |
Peter |