Skip to content

Commit

Permalink
VirtualBox driver uses virtio network driver
Browse files Browse the repository at this point in the history
Kernel has CONFIG_VIRTIO_NET=y.

Read more at https://www.virtualbox.org/manual/ch06.html
  • Loading branch information
ijl authored and dlorenc committed Nov 27, 2017
1 parent 40a596f commit bbb53c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit bbb53c9

Please sign in to comment.