Closed tnk4on closed 3 years ago
I was able to start the VM by adding the QEMU option.
$ vi ~/.config/containers/podman/machine/qemu/test.json`
"-accel",
"hvf",
$ ./podman machine start test
Waiting for VM ...
$ ./podman machine list
NAME VM TYPE CREATED LAST UP
test qemu 33 seconds ago Currently running
Hypervisor.framework is supported on macOS
$ sysctl -a | grep kern.hv_support
kern.hv_support: 1
For some reason it is only added on arm64, but not on amd64: pkg/machine/qemu/options_darwin_arm64.go: "-accel", "hvf", pkg/machine/qemu/options_linux_amd64.go: "-accel", "kvm", pkg/machine/qemu/options_linux_arm64.go: "-accel", "kvm",
Note: this was in v3.2.0
@baude PTAL
@ashley-cui PTAL also.
distribution information and qemu version ?
I've added the information to the top comments.
Ok, thank you. We were testing with version 5.0. I will try v6.0 and report back.
I've got v3.2.1 working fine. Also, #10578 seems to have been fixed. Thanks!
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
On macOS, when I run
podman machine init
and thenpodman machine start
, I get an error message "qemu-system-x86_64: CPU model 'host' requires KVM" and the VM fails to start.Steps to reproduce the issue:
On the Mac client:
Describe the results you received:
Describe the results you expected:
The VM will be successfully started.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Package info (e.g. output of
rpm -q podman
orapt list podman
):podman
qemu
VM image
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
Additional environment details (AWS, VirtualBox, physical, etc.):
11.3.1 (20E241)Updated to 11.4