From 866c0e609cb1388d8bf58efdd02be6e6add1b720 Mon Sep 17 00:00:00 2001 From: ijl Date: Wed, 22 Nov 2017 15:35:26 +0000 Subject: [PATCH] VirtualBox driver uses virtio network driver Kernel has CONFIG_VIRTIO_NET=y. Read more at https://www.virtualbox.org/manual/ch06.html --- pkg/minikube/cluster/cluster.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/minikube/cluster/cluster.go b/pkg/minikube/cluster/cluster.go index 2f4c7c5da9df..e1ef207f81c9 100644 --- a/pkg/minikube/cluster/cluster.go +++ b/pkg/minikube/cluster/cluster.go @@ -46,6 +46,10 @@ import ( "k8s.io/minikube/pkg/util" ) +const ( + defaultVirtualboxNicType = "virtio" +) + //This init function is used to set the logtostderr variable to false so that INFO level log info does not clutter the CLI //INFO lvl logging is displayed due to the kubernetes api calling flag.Set("logtostderr", "true") in its init() //see: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/util/logs/logs.go#L32-L34 @@ -183,6 +187,8 @@ func createVirtualboxHost(config MachineConfig) drivers.Driver { d.DiskSize = int(config.DiskSize) d.HostOnlyCIDR = config.HostOnlyCIDR d.NoShare = config.DisableDriverMounts + d.NatNicType = defaultVirtualboxNicType + d.HostOnlyNicType = defaultVirtualboxNicType return d }