Skip to content

Commit

Permalink
Merge pull request #17217 from raghavendra-talur/rtalur-qemu-improvem…
Browse files Browse the repository at this point in the history
…ents

qemu: better cpu type and IP detection
  • Loading branch information
medyagh authored Sep 16, 2023
2 parents 459d5c0 + 8716ac0 commit 319886a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/drivers/qemu/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func (d *Driver) Start() error {
return nil
}
// Implement a retry loop because IP address isn't added to dhcp leases file immediately
for i := 0; i < 30; i++ {
for i := 0; i < 60; i++ {
log.Debugf("Attempt %d", i)
err = getIP()
if err == nil {
Expand Down
4 changes: 3 additions & 1 deletion pkg/minikube/registry/drvs/qemu2/qemu2.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ func configure(cc config.ClusterConfig, n config.Node) (interface{}, error) {
switch runtime.GOARCH {
case "amd64":
qemuMachine = "" // default
qemuCPU = "" // default
// set cpu type to max to enable higher microarchitecture levels
// see https://lists.gnu.org/archive/html/qemu-devel/2022-08/msg04066.html for details
qemuCPU = "max"
case "arm64":
qemuMachine = "virt"
qemuCPU = "cortex-a72"
Expand Down

0 comments on commit 319886a

Please sign in to comment.