Minikube: please enable CONFIG_TUN in the vm image kernel config

Created on 31 Jan 2017  路  7Comments  路  Source: kubernetes/minikube

FEATURE REQUEST
minikube version: v0.15.0

Environment:

  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName):
    "DriverName": "virtualbox",
  • Docker version (e.g. docker -v):
    Docker version 1.12.6, build 78d1802

What happened:
I am deploying an image running openvpn into a minikube pod. It fails with

ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)

To debug I run

minikube ssh
cat /proc/config.gz | grep "_TUN "
# CONFIG_TUN is not set

What you expected to happen:
TUN support enabled on the vm host kernel.
https://github.com/kubernetes/minikube/blame/master/deploy/iso/minikube-iso/board/coreos/minikube/linux-4.7_defconfig

How to reproduce it (as minimally and precisely as possible):
There is not simple repro as you need to configure a vpn before you can run it.

Anything else do we need to know:
This docker image has good info for a dockerized vpn setup: https://github.com/kylemanna/docker-openvpn.

kinfeature

Most helpful comment

@r2d4 Did you mean to tag @ensonic?

@ensonic Nice to meet you... :)

All 7 comments

I am desperately trying to send a PR fixing it. I have change the linux-4.7_defconfig and run make minikube-iso. I get a new out/buildroot/output/images/rootfs.iso9660. I run my minikube with minikube start --iso-url=file://$PATH_TO_BUILD/out/buildroot/output/images/rootfs.iso9660.
But nothing changed. Do I need to delete the cluster? Is there a way to verify what iso the cluster is actually using?

Yeah, you'll need to run "minikube delete" for the new ISO to get used.

Thanks for sending a PR!

@enisoc you can check using

$ cat ~/.minikube/machines/minikube/config.json  | grep iso
        "Boot2DockerURL": "file:///home/mrick/.minikube/cache/iso/minikube-v1.0.3.iso",

@r2d4 Did you mean to tag @ensonic?

@ensonic Nice to meet you... :)

Have the same issue after upgrade to 0.15. It worked with 0.14 for sure.
The workaround is to use 0.x image:
minikube delete && minikube start --iso-url https://storage.googleapis.com/minikube/minikube-0.7.iso

@r2d4 got it to work, learned a lot, PR sent. Will also sent a PR to update some of the docs in a bit.

Was this page helpful?
0 / 5 - 0 ratings