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

MacOS Hackintosh qemu-system-x86_64: Error: HV_ERROR #12617

Closed
lou-lan opened this issue Dec 16, 2021 · 11 comments
Closed

MacOS Hackintosh qemu-system-x86_64: Error: HV_ERROR #12617

lou-lan opened this issue Dec 16, 2021 · 11 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine

Comments

@lou-lan
Copy link

lou-lan commented Dec 16, 2021

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

podman machine start
INFO[0000] waiting for clients...                       
INFO[0000] listening tcp://127.0.0.1:7777               
INFO[0000] new connection from  to /var/folders/lx/94z03_f97vn0zydky3xr0kxw0000gn/T/podman/qemu_podman-machine-default.sock 
Waiting for VM ...
qemu-system-x86_64: Error: HV_ERROR
Error: dial unix /var/folders/lx/94z03_f97vn0zydky3xr0kxw0000gn/T/podman/podman-machine-default_ready.sock: connect: connection refused
ERRO[0003] cannot receive packets from , disconnecting: cannot read size from socket: EOF 
ERRO[0003] cannot read size from socket: EOF   

Steps to reproduce the issue:

  1. brew install podman

  2. podman machine init

  3. podman machine start

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

podman version

Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: Connection to bastion host (ssh://core@localhost:56589/run/user/1000/podman/podman.sock) failed.: dial tcp [::1]:56589: connect: connection refused

Output of podman info --debug:

podman info --debug

Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: Connection to bastion host (ssh://core@localhost:56589/run/user/1000/podman/podman.sock) failed.: dial tcp [::1]:56589: connect: connection refused

Package info (e.g. output of rpm -q podman or apt list podman):

brew list podman

/usr/local/Cellar/podman/3.4.4/bin/podman
/usr/local/Cellar/podman/3.4.4/bin/podman-remote
/usr/local/Cellar/podman/3.4.4/etc/bash_completion.d/podman
/usr/local/Cellar/podman/3.4.4/libexec/gvproxy
/usr/local/Cellar/podman/3.4.4/share/fish/vendor_completions.d/podman.fish
/usr/local/Cellar/podman/3.4.4/share/man/ (160 files)
/usr/local/Cellar/podman/3.4.4/share/zsh/site-functions/_podman

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)

Yes/No

Additional environment details (AWS, VirtualBox, physical, etc.):
This is macos Hackintosh.

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 16, 2021
@lou-lan lou-lan changed the title MacOS qemu-system-x86_64: Error: HV_ERROR MacOS Hackintosh qemu-system-x86_64: Error: HV_ERROR Dec 16, 2021
@vrothberg
Copy link
Member

Thanks for opening the issue, @lou-lan!

@ashley-cui, @baude, PTAL

@ashley-cui
Copy link
Member

Looks like qemu itself doesn't like the hackintosh system... A quick google shows this: https://stackoverflow.com/questions/67264212/android-emulator-crash-when-start-hvf-error-hv-error

Could you try that out?

@Luap99 Luap99 added the machine label Dec 16, 2021
@lou-lan
Copy link
Author

lou-lan commented Dec 16, 2021

Looks like qemu itself doesn't like the hackintosh system... A quick google shows this: https://stackoverflow.com/questions/67264212/android-emulator-crash-when-start-hvf-error-hv-error

Could you try that out?

Thanks. I am try it, but it not work for me.

If just run ./qemu-system-x86_64, it work.

截屏2021-12-16 下午11 43 05

Execute the podman machine start command, what is the full command he calls qemu-system-x86_64, I think I can debug qemu-system-x86_64 separately. Thank you very much 🙏.

@lou-lan lou-lan closed this as completed Dec 19, 2021
@iamgini
Copy link

iamgini commented Jan 1, 2022

Facing the same issue. Anyone else found a solution ?

@lou-lan ?

@lou-lan
Copy link
Author

lou-lan commented Jan 1, 2022

@ginigangadharan I haven't found a solution yet, but if qemu is not using Apple virtualization, then he should be able to run.

@iamgini
Copy link

iamgini commented Jan 1, 2022

@ginigangadharan I haven't found a solution yet, but if qemu is not using Apple virtualization, then he should be able to run.

Oh okay. Actually it was perfectly working, Now I think the issues started after some some macOS update. I will check that as well.

@imjuanleonard
Copy link

imjuanleonard commented Apr 27, 2022

Why is this closed? Do we have solution for this?

@baude
Copy link
Member

baude commented Apr 27, 2022

it was fixed.

@oxycoder
Copy link

it was fixed.

I still face same issue

podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: dial unix /var/folders/nc/sz5g1ck1187253n6cys_hn3m0000gn/T/podman/podman-machine-default_ready.sock: connect: connection refused

@astroecom
Copy link

i faced this same error... how can i fix it? I'm not sure why this was closed.

@astroecom
Copy link

it was fixed.

please tell me how to fix it ?
I 've installed podman on vmware macOS based on windows10.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine
Projects
None yet
Development

No branches or pull requests

9 participants