blob: b0bbfaf87190805df3fb6497b50016e68f3dc2c4 (
plain) (
blame)
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
|
arm: 0.829
graphic: 0.771
device: 0.756
socket: 0.747
network: 0.689
semantic: 0.608
PID: 0.551
mistranslation: 0.474
user-level: 0.434
boot: 0.423
performance: 0.346
architecture: 0.309
peripherals: 0.280
virtual: 0.240
debug: 0.226
register: 0.217
ppc: 0.196
permissions: 0.189
vnc: 0.114
VMM: 0.040
TCG: 0.039
files: 0.033
x86: 0.022
hypervisor: 0.012
kernel: 0.010
risc-v: 0.010
i386: 0.009
assembly: 0.009
KVM: 0.004
getifaddrs: Address family not supported by protocol
Calling ip addr fails with the following error message:
Cannot open netlink socket: Address family not supported by protocol
My use case is running a docker raspberry pi arm container on Ubuntu 14.04 x64 with qemu-static.
My steps to reproduce are the following:
# docker pull philipz/rpi-raspbian:latest
# docker run -it --rm -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static philipz/rpi-raspbian bash
root@3b4ddc174279:/# ip addr
Cannot open netlink socket: Address family not supported by protocol
A fix or an workaround would be awesome.
note: we are also working with a embedded arm distro which has no package manager available, would be nice if the workaround would not depend on apt-get
We got netlink sockets working for linux-user over the course of 2016, and "ip addr" now works for me with a 32-bit arm chroot. This should be fixed in QEMU 2.10.
|