Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting qemu2 VM #16814

Closed
josetaylor06 opened this issue Jul 4, 2023 · 9 comments
Closed

Error starting qemu2 VM #16814

josetaylor06 opened this issue Jul 4, 2023 · 9 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@josetaylor06
Copy link

What Happened?

Seems to be related to these dhcp connection attemps

0703 19:21:43.255376 5571 main.go:141] libmachine: STDERR:
I0703 19:21:43.255402 5571 main.go:141] libmachine: DONE writing to /Users/jt/.minikube/machines/minikube/disk.qcow2.raw and /Users/jt/.minikube/machines/minikube/disk.qcow2
I0703 19:21:43.255407 5571 main.go:141] libmachine: Starting QEMU VM...
I0703 19:21:43.255474 5571 main.go:141] libmachine: executing: /usr/local/opt/socket_vmnet/bin/socket_vmnet_client /usr/local/var/run/socket_vmnet qemu-system-x86_64 -display none -accel hvf -m 4000 -smp 2 -boot d -cdrom /Users/jt/.minikube/machines/minikube/boot2docker.iso -qmp unix:/Users/jt/.minikube/machines/minikube/monitor,server,nowait -pidfile /Users/jt/.minikube/machines/minikube/qemu.pid -device virtio-net-pci,netdev=net0,mac=2a:f2:65:19:95:10 -netdev socket,id=net0,fd=3 -daemonize /Users/jt/.minikube/machines/minikube/disk.qcow2
I0703 19:21:43.875349 5571 main.go:141] libmachine: STDOUT:
W0703 19:21:43.875375 5571 main.go:139] libmachine: STDERR: qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]

I0703 19:21:43.875388 5571 main.go:141] libmachine: Attempt 0
I0703 19:21:43.875418 5571 main.go:141] libmachine: Searching for 2a:f2:65:19:95:10 in /var/db/dhcpd_leases ...
I0703 19:21:43.875856 5571 main.go:141] libmachine: Found 1 entries in /var/db/dhcpd_leases!
I0703 19:21:43.875885 5571 main.go:141] libmachine: dhcp entry: {Name:minikube IPAddress:192.168.105.2 HWAddress:ee:fc:78:b8:e9:2a ID:1,ee:fc:78:b8:e9:2a Lease:0x64a4b22d}
I0703 19:21:45.876815 5571 main.go:141] libmachine: Attempt 1
I0703 19:21:45.876864 5571 main.go:141] libmachine: Searching for 2a:f2:65:19:95:10 in /var/db/dhcpd_leases ...
I0703 19:21:45.877055 5571 main.go:141] libmachine: Found 1 entries in /var/db/dhcpd_leases!
I0703 19:21:45.877070 5571 main.go:141] libmachine: dhcp entry: {Name:minikube IPAddress:192.168.105.2 HWAddress:ee:fc:78:b8:e9:2a ID:1,ee:fc:78:b8:e9:2a Lease:0x64a4b22d}
I0703 19:21:47.877748 5571 main.go:141] libmachine: Attempt 2
I0703 19:21:47.877777 5571 main.go:141] libmachine: Searching for 2a:f2:65:19:95:10 in /var/db/dhcpd_leases ...
I0703 19:21:47.877954 5571 main.go:141] libmachine: Found 1 entries in /var/db/dhcpd_leases!
I0703 19:21:47.877967 5571 main.go:141] libmachine: dhcp entry: {Name:minikube IPAddress:192.168.105.2 HWAddress:ee:fc:78:b8:e9:2a ID:1,ee:fc:78:b8:e9:2a Lease:0x64a4b22d}
I0703 19:21:49.878584 5571 main.go:141] libmachine: Attempt 3
I0703 19:21:49.878604 5571 main.go:141] libmachine: Searching for 2a:f2:65:19:95:10 in /var/db/dhcpd_leases ...
I0703 19:21:49.878742 5571 main.go:141] libmachine: Found 1 entries in /var/db/dhcpd_leases!
I0703 19:21:49.878754 5571 main.go:141] libmachine: dhcp entry: {Name:minikube IPAddress:192.168.105.2 HWAddress:ee:fc:78:b8:e9:2a ID:1,ee:fc:78:b8:e9:2a Lease:0x64a4b22d}
I0703 19:21:51.878980 5571 main.go:141] libmachine: Attempt 4

Attach the log file

minikube.log

Operating System

macOS (Default)

Driver

QEMU

@josetaylor06
Copy link
Author

I have tried

minikube delete
minikube start

as shown in the logs

Thanks!

@lollipopman
Copy link
Contributor

@josetaylor06 I am having the same issue on macOS ventura, were you able to resolve it?

@lollipopman
Copy link
Contributor

@josetaylor06 after a bit of analysis I discovered the reason why this was failing for my use case was that qemu was taking over 60secs to start, which is the timeout for checking for dhcp. I hacked up a longer timeout in minikube's src, and it started successfully.

@josetaylor06
Copy link
Author

Hey @lollipopman, thanks for following up! I would've never guessed it. I'm glad you solved this for others who may run into the same issue. On my end, I just started using docker as the driver and haven't had a problem since but that is not a cure especially if for some reason I was required to use vbox for running the container.

Thanks for the reply and info!!!

@lollipopman
Copy link
Contributor

@raghavendra-talur I have confirmed that your commit, 08233d0, fixed the issue for me, so I think this issue can be closed, thanks!

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 30, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 29, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2024
@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants