-
Notifications
You must be signed in to change notification settings - Fork 660
qemu-system-x86_64: Unknown Error (Was: 60022: Connection refused SSH
)
#543
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
Comments
I have the exact same problem. |
Could you check |
Exact same problem, the file |
Maybe your QEMU binary is broken, and need Does |
60022: Connection refused SSH
)
$ qemu-system-x86_64 -accel hvf -m 4096 -cdrom ubuntu-20.04.3-live-server-amd64.iso
qemu-system-x86_64: -accel hvf: Error: HV_ERROR |
If you are using ARM Mac, please test If you are using Intel Mac, please try reinstalling QEMU. |
I'm on an x64 machine. I have tried reinstalling QEMU. |
I believe I have this problem as well, on an M1 Mac with QEMU 6.2.0. One thing I've noticed is that there is no Do you have a recommended iso for aarch64? |
I used the exact
and looking at the serial.log, it appears there is a problem with the boot process. It fails to boot with UiApp, UEFI Misc Devices, UEFI PXEv[46], UEFI HTTPv[46], and eventually boots into the EFI Internal Shell.
limactl version 0.8.3 |
resolved by doing |
I got almost same error which looks to be related to qemu probelm on M1Max Mac. I'm investigating by myself but just for the reference. Execution log$ limactl start
INFO[0001] [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
INFO[0001] [hostagent] QEMU has exited
FATA[0001] exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see "!/.lima/default/ha.stderr.log")
$ cat ~.lima/default/ha.stderr.log
...
{"level":"debug","msg":"qemu[stderr]: qemu-system-x86_64: Unknown Error","time":"2022-02-26T18:54:39+09:00"}
...
For the details: https://gist.github.com/toshitanian/d7b71596816d701d8d29047442c3fe8a EnvironmentRunning on iTerm2 with Rosetta mode. $ sw_vers
ProductName: macOS
ProductVersion: 12.2.1
BuildVersion: 21D62
uname -m
x86_64
$ uname -srm
Darwin 21.3.0 x86_64
$ qemu-system-x86_64 --version
QEMU emulator version 6.2.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
$ brew -v
Homebrew 3.3.16
Homebrew/homebrew-core (git revision 5edf1cd15f7; last commit 2022-02-26)
Homebrew/homebrew-cask (git revision e37ef9b253; last commit 2022-02-26)
$ brew info qemu
qemu: stable 6.2.0 (bottled), HEAD
Emulator for x86 and PowerPC
https://www.qemu.org/
/usr/local/Cellar/qemu/6.2.0 (162 files, 556.7MB) *
Poured from bottle on 2022-02-25 at 22:45:09
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/qemu.rb
License: GPL-2.0-only
==> Dependencies
Build: libtool ✔, meson ✘, ninja ✔, pkg-config ✔
Required: glib ✔, gnutls ✔, jpeg ✔, libpng ✔, libslirp ✔, libssh ✔, libusb ✔, lzo ✔, ncurses ✔, nettle ✔, pixman ✔, snappy ✔, vde ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 42,945 (30 days), 116,086 (90 days), 283,565 (365 days)
install-on-request: 20,489 (30 days), 65,588 (90 days), 203,182 (365 days)
build-error: 48 (30 days) Running qemu independently
$ qemu-system-x86_64 -accel hvf -m 4096 -cdrom ubuntu-20.04.4-live-server-amd64.iso
qemu-system-x86_64: -accel hvf: Unknown Error
[1] 55043 abort qemu-system-x86_64 -accel hvf -m 4096 -cdrom
$ qemu-system-aarch64 -accel hvf -m 4096 -cdrom /Users/toshiya/Downloads/ubuntu-20.04.4-live-server-amd64.iso
qemu-system-aarch64: No machine specified, and there is no default
Use -machine help to list supported machines qemu run successfully without
|
Unsupported. Please use native binary of QEMU |
Even though I tried to reinstall The solution for me was, install Homebrew arm64, then install qemu and lima using the Homebrew arm64. $ exec arch -arm64e /bin/zsh
$ ~ uname -m
arm64
# Install Homebrew arm64 and switch brew environment
# https://gist.github.com/nrjdalal/e70249bb5d2e9d844cc203fd11f74c55#option-2---manually
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(logname)/.zprofile
$ eval "$(/opt/homebrew/bin/brew shellenv)"
# install qemu and lima using Homebrew arm64
# https://gist.github.com/toricls/d3dd0bec7d4c6ddbcf2d25f211e8cd7b#1-install-qemu--lima
$ brew install qemu
$ brew install lima
Finally! $ limactl start
$ limactl start --tty=false focal-amd64.yaml
$ limactl shell focal-amd64 uname -a
Linux lima-focal-amd64 5.4.0-99-generic #112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
|
Thanks a lot for sharing! |
I'm hitting this error, and AFAICT I'm using arm64.
|
@arohner Please make sure you aren’t using Rosetta |
Doesn't
prove that I'm using native QEMU? |
@arohner You might be using x86_64 version of limactl? |
|
Uh oh!
There was an error while loading. Please reload this page.
Hey folks. trying to run

limactl start
with the default configuration and getting this errorthe log file:
I have the firewall turned off, using the Mac pro max (with the M1 processor). It's seems the config file defined to search for an available port (written with 0 in the SSH PORT field) but it seems my machine is blocking it for some reason
Already updated qemu like specified here
if I need to specify any other details please let me know
The text was updated successfully, but these errors were encountered: