Skip to content

Commit bbb53c9

Browse files
ijldlorenc
authored andcommitted
VirtualBox driver uses virtio network driver
Kernel has CONFIG_VIRTIO_NET=y. Read more at https://www.virtualbox.org/manual/ch06.html
1 parent 40a596f commit bbb53c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: pkg/minikube/cluster/cluster.go

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ import (
4646
"k8s.io/minikube/pkg/util"
4747
)
4848

49+
const (
50+
defaultVirtualboxNicType = "virtio"
51+
)
52+
4953
//This init function is used to set the logtostderr variable to false so that INFO level log info does not clutter the CLI
5054
//INFO lvl logging is displayed due to the kubernetes api calling flag.Set("logtostderr", "true") in its init()
5155
//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 {
183187
d.DiskSize = int(config.DiskSize)
184188
d.HostOnlyCIDR = config.HostOnlyCIDR
185189
d.NoShare = config.DisableDriverMounts
190+
d.NatNicType = defaultVirtualboxNicType
191+
d.HostOnlyNicType = defaultVirtualboxNicType
186192
return d
187193
}
188194

0 commit comments

Comments
 (0)