podman
podman copied to clipboard
Error: vfkit exited unexpectedly with exit code 1 on M4 MacMini
Issue Description
any attempt to start podman VM ends with vfkit error message.
After upgrade (replace ) my MacMini M1 to M4 podman stoped working
Steps to reproduce the issue
Steps to reproduce the issue
- podman machine init
- podman machine start
Describe the results you received
$ podman machine init
Looking up Podman Machine image at quay.io/podman/machine-os:5.2 to create VM
Getting image source signatures
Copying blob 12113a444353 done |
Copying config 44136fa355 done |
Writing manifest to image destination
12113a44435343a5cb2f6fc1c8cb4589b359bafd6123aab0c293e9cf884184ae
Extracting compressed file: podman-machine-default-arm64.raw: done
Machine init complete
To start your machine run:
podman machine start
$ podman machine start
Starting machine "podman-machine-default"
Error: vfkit exited unexpectedly with exit code 1
Describe the results you expected
started podman vm on my macos to run my containers
podman info output
Podman 5.3.1, 5.3.0 and 5.2.5
MacOS Sequoia 15.2 arm64
Apple Silicon M4
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
tested official podman release, homebrew and podman-desktop .. all results same
could you verify no podman, vfkit, or gvproxy processes are running (else kill them) and then do a podman --log-level=debug machine start and report the output and anything you might observe ?
i just started getting this after a macOS system restart - i deleted
M3 Pro chip, Sonoma 14.7.2 podman 5.3.1
(ve) ➜ ~ podman machine ls
NAME VM TYPE CREATED LAST UP CPUS MEMORY DISK SIZE
(ve) ➜ ~ podman machine init -m 4096 --now
Looking up Podman Machine image at quay.io/podman/machine-os:5.3 to create VM
Getting image source signatures
Copying blob cc337dac08f3 done |
Copying config 44136fa355 done |
Writing manifest to image destination
cc337dac08f317e9141e55f324d3af74f5d72f39c797f8d1f396948854fa655d
Extracting compressed file: podman-machine-default-arm64.raw: done
Machine init complete
Starting machine "podman-machine-default"
Error: vfkit exited unexpectedly with exit code 1
(ve) ➜ ~
i took your suggestion on log-level=debug -- not copy/pasting all output since it's so verbose, but here's a relevant portion
DEBU[0000] first boot detected
DEBU[0000] serving ignition file over /Users/ben.robinson/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock
DEBU[0000] listening for ready on: /var/folders/d9/cx3pqtpj5zv5mj5lrmfj1j6w0000gp/T/podman/podman-machine-default.sock
DEBU[0000] waiting for ready notification
DEBU[0000] helper command-line: [/opt/podman/bin/vfkit --cpus 6 --memory 4096 --bootloader efi,variable-store=/Users/ben.robinson/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default,create --device virtio-blk,path=/Users/ben.robinson/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw --device virtio-rng --device virtio-vsock,port=1025,socketURL=/var/folders/d9/cx3pqtpj5zv5mj5lrmfj1j6w0000gp/T/podman/podman-machine-default.sock,listen --device virtio-serial,logFilePath=/var/folders/d9/cx3pqtpj5zv5mj5lrmfj1j6w0000gp/T/podman/podman-machine-default.log --device rosetta,mountTag=rosetta,install --device virtio-net,unixSocketPath=/var/folders/d9/cx3pqtpj5zv5mj5lrmfj1j6w0000gp/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee --device virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 --device virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 --device virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 --restful-uri tcp://localhost:50495 --device virtio-gpu,width=800,height=600 --device virtio-input,pointing --device virtio-input,keyboard --gui --device virtio-vsock,port=1024,socketURL=/Users/ben.robinson/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock,listen]
DEBU[0000] socket length for /Users/ben.robinson/.config/containers/podman/machine/applehv/podman-machine-default.ign is 88
DEBU[0000] reading ignition file: /Users/ben.robinson/.config/containers/podman/machine/applehv/podman-machine-default.ign
DEBU[0000] ignition socket device: /Users/ben.robinson/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock
INFO[0000] &{6 4096 {[efi variable-store=/Users/ben.robinson/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default create] true} [virtio-blk,path=/Users/ben.robinson/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw virtio-rng virtio-vsock,port=1025,socketURL=/var/folders/d9/cx3pqtpj5zv5mj5lrmfj1j6w0000gp/T/podman/podman-machine-default.sock,listen virtio-serial,logFilePath=/var/folders/d9/cx3pqtpj5zv5mj5lrmfj1j6w0000gp/T/podman/podman-machine-default.log rosetta,mountTag=rosetta,install virtio-net,unixSocketPath=/var/folders/d9/cx3pqtpj5zv5mj5lrmfj1j6w0000gp/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 virtio-gpu,width=800,height=600 virtio-input,pointing virtio-input,keyboard virtio-vsock,port=1024,socketURL=/Users/ben.robinson/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock,listen] tcp://localhost:50495 true}
INFO[0000] boot parameters: &{EFIVariableStorePath:/Users/ben.robinson/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default CreateVariableStore:true}
INFO[0000]
INFO[0000] virtual machine parameters:
INFO[0000] vCPUs: 6
INFO[0000] memory: 4096 MiB
INFO[0000]
Error: unsupported macOS version
Usage:
vfkit [flags]
Flags:
-b, --bootloader strings bootloader configuration (default [])
-c, --cpus uint number of virtual CPUs (default 1)
-d, --device stringArray devices
--gui display the contents of the virtual machine onto a graphical user interface
-h, --help help for vfkit
-i, --initrd string path to the virtual machine initrd
-k, --kernel string path to the virtual machine linux kernel
-C, --kernel-cmdline string linux kernel command line
--log-level string set log level
-m, --memory uint virtual machine RAM size in mibibytes (default 512)
--restful-uri string URI address for RestFul services (default "none://")
-t, --timesync string sync guest time when host wakes up from sleep
-v, --version version for vfkit
unsupported macOS version
DEBU[0001] writing configuration file "/Users/ben.robinson/.config/containers/podman/machine/applehv/podman-machine-default.json"
Error: vfkit exited unexpectedly with exit code 1
DEBU[0001] Shutting down engines
Error: unsupported macOS version - is this expected, @baude ?
@mimi1vx I've had the same issue with my M1 when I've installed via homebrew. podman info prompted the following:
Hence it does look like it did install the wrong arch. When installing it from the frontpage everything worked perfectly fine.
Seeing the same issue. The relevant debug out for me is:
INFO[0000] boot parameters: &{EFIVariableStorePath:/Users/$USERNAME/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default CreateVariableStore:true}
INFO[0000]
INFO[0000] virtual machine parameters:
INFO[0000] vCPUs: 6
INFO[0000] memory: 2048 MiB
INFO[0000]
INFO[0000] Adding virtio-blk device (imagePath: /Users/$USERNAME/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw)
INFO[0000] Adding virtio-rng device
INFO[0000] Adding virtio-vsock device
INFO[0000] Adding virtio-serial device (logFile: /var/folders/ss/8_d2k7nn0r1104qd77dkmw140000gq/T/podman/podman-machine-default.log)
Error: rosetta is unsupported on non-arm64 platforms
Usage:
vfkit [flags]
...
...
...
rosetta is unsupported on non-arm64 platforms
DEBU[0001] writing configuration file "/Users/$USERNAME/.config/containers/podman/machine/applehv/podman-machine-default.json"
Error: vfkit exited unexpectedly with exit code 1
DEBU[0001] Shutting down engines
And here's the configuration:
~> podman machine info
host:
arch: arm64
currentmachine: ""
defaultmachine: ""
eventsdir: /var/folders/ss/8_d2k7nn0r1104qd77dkmw140000gq/T/storage-run-503/podman
machineconfigdir: /Users/$USERNAME/.config/containers/podman/machine/applehv
machineimagedir: /Users/$USERNAME/.local/share/containers/podman/machine/applehv
machinestate: ""
numberofmachines: 0
os: darwin
vmtype: applehv
version:
apiversion: 5.4.0
version: 5.4.0
goversion: go1.23.6
gitcommit: f9f7d48b24b1ca4403f189caaeab1cb8ff4a9aa2
builttime: Tue Feb 11 13:02:28 2025
built: 1739296948
buildorigin: pkginstaller
osarch: darwin/arm64
os: darwin
If I add,
[machine]
rosetta = false
tp ~/.config/containers/containers.conf
The error changes to:
INFO[0000] Adding virtio-input pointing device
INFO[0000] Adding virtio-input keyboard device
Error: Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={
NSLocalizedFailure = "Internal Virtualization error.";
NSLocalizedFailureReason = "The virtual machine failed to start.";
}
Usage:
vfkit [flags]
...
...
...
Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={
NSLocalizedFailure = "Internal Virtualization error.";
NSLocalizedFailureReason = "The virtual machine failed to start.";
}
DEBU[0001] writing configuration file "/Users/ss19980/.config/containers/podman/machine/applehv/podman-machine-default.json"
Error: vfkit exited unexpectedly with exit code 1
DEBU[0001] Shutting down engines
No issues whatsover if I let podman-desktop start the machine for me.
i just tried podman on a shiny new m4 pro. i used podman5-4.1 and it worked perfectly. There was a recently corrected problem with rosetta in Fedora's kernel which has been corrected in our lastest disk images. I made zero changes to my configs and it worked. I do note thaqt my OS is 15.2 and I am not updating to 15.3.x and will report back on that as well.
FWIW, after the upgrade, I continue to see it work perfectly well. @mimi1vx @s-sajid-ali could you retest by making sure you are running 5.4.1? Delete any existing broken machine or perform a podman machine reset.
Moreover, many of these errors come from getting the wrong architecture installed and frequently it is due to migrations of homebrew from Intel to Apple Silicon. Please ensure your homebrew is installing an arm64 version of podman. This can be checked with podman info or which podman | args -I{} file {}
bbaude@bbaude-mac ~ % system_profiler SPHardwareDataType
Hardware:
Hardware Overview:
Model Name: Mac mini
Model Identifier: Mac16,11
Model Number: MCX44LL/A
Chip: Apple M4 Pro
Total Number of Cores: 12 (8 performance and 4 efficiency)
Memory: 24 GB
System Firmware Version: 11881.81.4
OS Loader Version: 11881.81.4
Thanks, I'd installed podman for the correct arch, but was using fish-shell via pixi/conda-forge that was compiled with x86_64/aarch support. I complied fish-shell from source and when I try starting the machine within the aarch build of the fish-shell, I no longer run into any issues!
First time installing podman on Mac OS 15.4 (24E248), Macbook Pro M1, 2020, either from brew or the dmg file, therefore using latest versions available via those channels, using only the CLI:
podman machine start
Starting machine "podman-machine-default"
Error: vfkit exited unexpectedly with exit code 1
Now trying with podman desktop, going thru all the initialization steps, clicking Run Podman, I get Error: Command execution failed with exit code 125.
I have not seen any obvious "here is what is wrong and the workaround" messages on any of the issue pages that I have so far looked at.
Update: I did uninstall the brew install before trying the desktop version.
I have not seen any obvious "here is what is wrong and the workaround" messages on any of the issue pages that I have so far looked at
same; some comments above suggest that the wrong architecture version was pulled but that wasn't the case for me. with debug logging enabled i see "unsupported macOS version"
https://github.com/containers/podman/issues/25046#issuecomment-2616204501
First time installing podman on
Mac OS 15.4 (24E248), Macbook Pro M1, 2020, either from brew or the dmg file, therefore using latest versions available via those channels, using only the CLI:podman machine start Starting machine "podman-machine-default" Error: vfkit exited unexpectedly with exit code 1Now trying with podman desktop, going thru all the initialization steps, clicking Run Podman, I get
Error: Command execution failed with exit code 125.I have not seen any obvious "here is what is wrong and the workaround" messages on any of the issue pages that I have so far looked at.
I get the same from a fresh install of podman via the lastest brew for an M4 mac
Installation info:
➜ ~ podman machine info
host:
arch: amd64
currentmachine: podman-machine-default
defaultmachine: podman-machine-default
eventsdir: /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/storage-run-502/podman
machineconfigdir: /Users/lukewoodcock/.config/containers/podman/machine/applehv
machineimagedir: /Users/lukewoodcock/.local/share/containers/podman/machine/applehv
machinestate: Stopped
numberofmachines: 1
os: darwin
vmtype: applehv
version:
apiversion: 5.4.2
version: 5.4.2
goversion: go1.24.2
gitcommit: ""
builttime: Wed Apr 2 15:43:09 2025
built: 1743601389
buildorigin: brew
osarch: darwin/amd64
os: darwin
Logs:
➜ ~ podman --log-level=debug machine start
INFO[0000] podman filtering at log level debug
DEBU[0000] Using Podman machine with `applehv` virtualization provider
DEBU[0000] socket length for /Users/lukewoodcock/.config/containers/podman/machine/applehv is 61
DEBU[0000] socket length for /Users/lukewoodcock/.local/share/containers/podman/machine/applehv is 66
DEBU[0000] socket length for /Users/lukewoodcock/.local/share/containers/podman/machine/applehv/cache is 72
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman is 55
DEBU[0000] socket length for /Users/lukewoodcock/.config/containers/podman/machine/applehv/podman-machine-default.json is 89
Starting machine "podman-machine-default"
DEBU[0000] socket length for /Users/lukewoodcock/.config/containers/podman/machine/applehv is 61
DEBU[0000] socket length for /Users/lukewoodcock/.local/share/containers/podman/machine/applehv is 66
DEBU[0000] socket length for /Users/lukewoodcock/.local/share/containers/podman/machine/applehv/cache is 72
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman is 55
DEBU[0000] socket length for /Users/lukewoodcock/.config/containers/podman/machine/applehv/podman-machine-default.json is 89
DEBU[0000] connection refused: http://localhost:49998/vm/state
DEBU[0000] writing configuration file "/Users/lukewoodcock/.config/containers/podman/machine/applehv/podman-machine-default.json"
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/gvproxy.pid is 67
DEBU[0000] socket length for /Users/lukewoodcock/.config/containers/podman/machine/applehv is 61
DEBU[0000] socket length for /Users/lukewoodcock/.local/share/containers/podman/machine/applehv is 66
DEBU[0000] socket length for /Users/lukewoodcock/.local/share/containers/podman/machine/applehv/cache is 72
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman is 55
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-api.sock is 87
DEBU[0000] {true 1500 map[forward-dest:[/run/user/502/podman/podman.sock] forward-identity:[/Users/lukewoodcock/.local/share/containers/podman/machine/machine] forward-sock:[/var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-api.sock] forward-user:[core]] [] [] map[] /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/gvproxy.log /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/gvproxy.pid 49968}
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-gvproxy.sock is 91
DEBU[0000] gvproxy command-line: /usr/local/Cellar/podman/5.4.2/libexec/podman/gvproxy -debug -mtu 1500 -ssh-port 49968 -listen-vfkit unixgram:///var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-gvproxy.sock -forward-dest /run/user/502/podman/podman.sock -forward-user core -forward-identity /Users/lukewoodcock/.local/share/containers/podman/machine/machine -forward-sock /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-api.sock -pid-file /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/gvproxy.pid -log-file /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/gvproxy.log
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-gvproxy.sock is 91
DEBU[0000] checking that "gvproxy" socket is ready
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.log is 82
DEBU[0000] socket length for /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.sock is 83
DEBU[0000] helper binary path is: /usr/local/Cellar/podman/5.4.2/libexec/podman/vfkit
DEBU[0000] socket length for /Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock is 103
DEBU[0000] first boot detected
DEBU[0000] serving ignition file over /Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock
DEBU[0000] listening for ready on: /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.sock
DEBU[0000] waiting for ready notification
DEBU[0000] socket length for /Users/lukewoodcock/.config/containers/podman/machine/applehv/podman-machine-default.ign is 88
DEBU[0000] helper command-line: [/usr/local/Cellar/podman/5.4.2/libexec/podman/vfkit --cpus 7 --memory 2048 --bootloader efi,variable-store=/Users/lukewoodcock/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default,create --device virtio-blk,path=/Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-amd64.raw --device virtio-rng --device virtio-vsock,port=1025,socketURL=/var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.sock,listen --device virtio-serial,logFilePath=/var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.log --device virtio-net,unixSocketPath=/var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee --device virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 --device virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 --device virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 --restful-uri tcp://localhost:49998 --device virtio-gpu,width=800,height=600 --device virtio-input,pointing --device virtio-input,keyboard --gui --device virtio-vsock,port=1024,socketURL=/Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock,listen]
DEBU[0000] reading ignition file: /Users/lukewoodcock/.config/containers/podman/machine/applehv/podman-machine-default.ign
DEBU[0000] ignition socket device: /Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock
INFO[0000] &{7 2048 {[efi variable-store=/Users/lukewoodcock/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default create] true} [virtio-blk,path=/Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-amd64.raw virtio-rng virtio-vsock,port=1025,socketURL=/var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.sock,listen virtio-serial,logFilePath=/var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.log virtio-net,unixSocketPath=/var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 virtio-gpu,width=800,height=600 virtio-input,pointing virtio-input,keyboard virtio-vsock,port=1024,socketURL=/Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock,listen] tcp://localhost:49998 true }
INFO[0000] boot parameters: &{EFIVariableStorePath:/Users/lukewoodcock/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default CreateVariableStore:true}
INFO[0000]
INFO[0000] virtual machine parameters:
INFO[0000] vCPUs: 7
INFO[0000] memory: 2048 MiB
INFO[0000]
INFO[0000] Adding virtio-blk device (imagePath: /Users/lukewoodcock/.local/share/containers/podman/machine/applehv/podman-machine-default-amd64.raw)
INFO[0000] Adding virtio-rng device
INFO[0000] Adding virtio-vsock device
INFO[0000] Adding virtio-serial device (logFile: /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default.log)
INFO[0000] Adding virtio-net device (nat: false macAddress: [5a:94:ef:e4:0c:ee])
INFO[0000] Using unix socket /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-gvproxy.sock
INFO[0000] local: /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/vfkit-140e-9de.sock remote: /var/folders/zf/t8n2l3wj1rndsjk5hbh1jgph0000gp/T/podman/podman-machine-default-gvproxy.sock
INFO[0000] Adding virtio-fs device
INFO[0000] Adding virtio-fs device
INFO[0000] Adding virtio-fs device
INFO[0000] Adding virtio-gpu device
INFO[0000] Adding virtio-input pointing device
INFO[0000] Adding virtio-input keyboard device
Error: Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={
NSLocalizedFailure = "Internal Virtualization error.";
NSLocalizedFailureReason = "The virtual machine failed to start.";
}
Usage:
vfkit [flags]
Flags:
-b, --bootloader strings bootloader configuration (default [])
-c, --cpus uint number of virtual CPUs (default 1)
-d, --device stringArray devices
--gui display the contents of the virtual machine onto a graphical user interface
-h, --help help for vfkit
--ignition string path to the ignition file
-i, --initrd string path to the virtual machine initrd
-k, --kernel string path to the virtual machine Linux kernel
-C, --kernel-cmdline string Linux kernel command line
--log-level string set log level
-m, --memory uint virtual machine RAM size in mibibytes (default 512)
--restful-uri string URI address for RESTful services (default "none://")
-t, --timesync string sync guest time when host wakes up from sleep
-v, --version version for vfkit
Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={
NSLocalizedFailure = "Internal Virtualization error.";
NSLocalizedFailureReason = "The virtual machine failed to start.";
}
DEBU[0001] writing configuration file "/Users/lukewoodcock/.config/containers/podman/machine/applehv/podman-machine-default.json"
Error: vfkit exited unexpectedly with exit code 1
DEBU[0001] Shutting down engines
Tried initialising with more resources to no avail
A workaround/fix for me was to uninstall the brew installation and install podman-desktop via the podman website. No issues found.
It was interesting to see that the downloaded version use podman 5.4.1 as apoosed to 5.4.2 that you get from brew. Having said that, I subsequently updated to 5.4.2 from the website and so far haven't encountered any issues. The issue seems to be restricted to the brewed version
I encountered this problem on my M4 mac mini but only when autostarting the machine. Manual start works. As a workaround I added sleep 10 in the plist which seems to have helped.
As a workaround I added sleep 10 in the plist which seems to have helped.
@jniewt can you share w/ me how to do this?
As a workaround I added sleep 10 in the plist which seems to have helped.
@jniewt can you share w/ me how to do this?
Sure, however I'm running into a problem that the relevant file below is getting overwritten after reboot. Not sure what's causing it now, I think it wasn't like this before. Maybe because I set it to rootful today.
So here goes.
I installed podman and podman-desktop with homebrew. The latter created ~/Library/LaunchAgents/io.podman_desktop.PodmanDesktop.plist.
Change the line in this file that defines the commands, by adding sleep 10 ; in front.
<string>sleep 10 ; /usr/bin/truncate -s 0 '/Users/<user>/Library/Logs/Podman Desktop/launchd-stdout.log'; /usr/bin/truncate -s 0 '/Users/<user>/Library/Logs/Podman Desktop/launchd-stderr.log'; '/Applications/Podman Desktop.app/Contents/MacOS/Podman Desktop'</string>
Then run
launchctl unload ~/Library/LaunchAgents/io.podman_desktop.PodmanDesktop.plist
launchctl load ~/Library/LaunchAgents/io.podman_desktop.PodmanDesktop.plist
I'm also getting this issue trying to run via brew. Very surprised that the behaviour would be different between a direct installer and home-brew. Can I ask why the homebrew installer doesn't just run the universal cli installation pkg?
I get a way to solve this error.
you need check your arch env this arch. if output is not 'arm64', this mean you terminal is run on x86_64 by Rosetta, you can change arch with /usr/bin/arch -arm64 /bin/zsh --login.
as different arch, brew and podman are needed to be reinstall. the correct amd64 brew is installed on /opt/brew/bin, use
/opt/homebrew/bin/brew install podman, you will get the correct podman.
Absolutely none of the workarounds or suggestions here have fixed my issue (M2 Air MacOS 15.5). I've tried using podman or Podman Desktop from either brew or direct installations (including older versions). I always get the 'Error: vfkit exited unexpectedly with exit code 1' response. I've tried it in different shells (bash, zsh, brew zsh) and in a pure rosetta shell with amd version. I've confirmed that when I run it normally that I'm installing the arm version and when running it in the rosetta shell, I was using the amd version. I'm tearing my hair out at the minute and would greatly appreciate any help.
Logs:
❯ /opt/podman/bin/podman --version
podman version 5.5.1
❯ /opt/podman/bin/vfkit --version
vfkit version: v0.6.1
❯ /opt/podman/bin/podman info
OS: darwin/arm64
buildOrigin: pkginstaller
provider: applehv
version: 5.5.1
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 socket: Get "http://127.0.0.1:50310/v5.5.1/libpod/_ping": dial tcp 127.0.0.1:50310: connect: connection refused
❯ /opt/podman/bin/podman machine list
NAME VM TYPE CREATED LAST UP CPUS MEMORY DISK SIZE
podman-machine-default applehv About a minute ago Never 4 2GiB 100GiB
❯ /opt/podman/bin/podman machine reset
Warning: this command will delete all existing Podman machines
and all of the configuration and data directories for Podman machines
The following machine(s) will be deleted:
NAME PROVIDER
podman-machine-default applehv
Are you sure you want to continue? [y/N] y
❯ podman machine init
Looking up Podman Machine image at quay.io/podman/machine-os:5.5 to create VM
Getting image source signatures
Copying blob 3f2d2b32431f done |
Copying config 44136fa355 done |
Writing manifest to image destination
3f2d2b32431fe1ab9071babe5816f487bf2a26b5bf0df18aeb6151689da02b6a
Extracting compressed file: podman-machine-default-arm64.raw: done
Machine init complete
To start your machine run:
podman machine start
❯ podman machine start --log-level=debug
INFO[0000] podman filtering at log level debug
DEBU[0000] Using Podman machine with `applehv` virtualization provider
DEBU[0000] socket length for /Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv is 71
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/applehv is 69
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/cache is 75
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman is 55
DEBU[0000] socket length for /Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv/podman-machine-default.json is 99
Starting machine "podman-machine-default"
DEBU[0000] socket length for /Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv is 71
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/applehv is 69
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/cache is 75
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman is 55
DEBU[0000] socket length for /Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv/podman-machine-default.json is 99
DEBU[0000] socket length for /Users/mayuran.visakan/.local/.config/containers/podman/machine/libkrun is 71
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/libkrun is 69
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/libkrun/cache is 75
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman is 55
DEBU[0000] connection refused: http://localhost:56045/vm/state
DEBU[0000] writing configuration file "/Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv/podman-machine-default.json"
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/gvproxy.pid is 67
DEBU[0000] socket length for /Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv is 71
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/applehv is 69
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/cache is 75
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman is 55
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-api.sock is 87
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/podman.sock is 73
DEBU[0000] {true 1500 map[forward-dest:[/run/user/503/podman/podman.sock] forward-identity:[/Users/mayuran.visakan/.local/share/containers/podman/machine/machine] forward-sock:[/var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-api.sock] forward-user:[core]] [] [] map[] /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/gvproxy.log /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/gvproxy.pid 56029}
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-gvproxy.sock is 91
DEBU[0000] gvproxy command-line: /opt/podman/bin/gvproxy -debug -mtu 1500 -ssh-port 56029 -listen-vfkit unixgram:///var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-gvproxy.sock -forward-sock /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-api.sock -forward-dest /run/user/503/podman/podman.sock -forward-user core -forward-identity /Users/mayuran.visakan/.local/share/containers/podman/machine/machine -pid-file /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/gvproxy.pid -log-file /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/gvproxy.log
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-gvproxy.sock is 91
DEBU[0000] checking that "gvproxy" socket is ready
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default.log is 82
DEBU[0000] socket length for /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default.sock is 83
DEBU[0000] helper binary path is: /opt/podman/bin/vfkit
DEBU[0000] socket length for /Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock is 106
DEBU[0000] first boot detected
DEBU[0000] serving ignition file over /Users/mayuran.visakan/.podman/podman-machine-default-ignition.sock
DEBU[0000] listening for ready on: /var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default.sock
DEBU[0000] socket length for /Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv/podman-machine-default.ign is 98
DEBU[0000] reading ignition file: /Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv/podman-machine-default.ign
DEBU[0000] waiting for ready notification
DEBU[0000] helper command-line: [/opt/podman/bin/vfkit --cpus 4 --memory 2048 --bootloader efi,variable-store=/Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default,create --device virtio-blk,path=/Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw --device virtio-rng --device virtio-vsock,port=1025,socketURL=/var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default.sock,listen --device virtio-serial,logFilePath=/var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default.log --device rosetta,mountTag=rosetta,install --device virtio-net,unixSocketPath=/var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee --device virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 --device virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 --device virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 --restful-uri tcp://localhost:56045 --device virtio-gpu,width=800,height=600 --device virtio-input,pointing --device virtio-input,keyboard --gui --device virtio-vsock,port=1024,socketURL=/Users/mayuran.visakan/.podman/podman-machine-default-ignition.sock,listen]
DEBU[0000] ignition socket device: /Users/mayuran.visakan/.podman/podman-machine-default-ignition.sock
INFO[0000] &{4 2048 {[efi variable-store=/Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default create] true} [virtio-blk,path=/Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw virtio-rng virtio-vsock,port=1025,socketURL=/var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default.sock,listen virtio-serial,logFilePath=/var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default.log rosetta,mountTag=rosetta,install virtio-net,unixSocketPath=/var/folders/4h/qdbw16g112364h8r0j52lz300000gq/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 virtio-gpu,width=800,height=600 virtio-input,pointing virtio-input,keyboard virtio-vsock,port=1024,socketURL=/Users/mayuran.visakan/.podman/podman-machine-default-ignition.sock,listen] tcp://localhost:56045 true {[] false}}
INFO[0000] boot parameters: &{EFIVariableStorePath:/Users/mayuran.visakan/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default CreateVariableStore:true}
INFO[0000]
INFO[0000] virtual machine parameters:
INFO[0000] vCPUs: 4
INFO[0000] memory: 2048 MiB
INFO[0000]
Error: unsupported macOS version
Usage:
vfkit [flags]
Flags:
-b, --bootloader strings bootloader configuration (default [])
--cloud-init strings path to user-data and meta-data cloud-init configuration files (default [])
-c, --cpus uint number of virtual CPUs (default 1)
-d, --device stringArray devices
--gui display the contents of the virtual machine onto a graphical user interface
-h, --help help for vfkit
--ignition string path to the ignition file
-i, --initrd string path to the virtual machine initrd
-k, --kernel string path to the virtual machine Linux kernel
-C, --kernel-cmdline string Linux kernel command line
--log-level string set log level
-m, --memory uint virtual machine RAM size in mibibytes (default 512)
--restful-uri string URI address for RESTful services (default "none://")
-t, --timesync string sync guest time when host wakes up from sleep
-v, --version version for vfkit
unsupported macOS version
DEBU[0001] writing configuration file "/Users/mayuran.visakan/.local/.config/containers/podman/machine/applehv/podman-machine-default.json"
Error: vfkit exited unexpectedly with exit code 1
DEBU[0001] Shutting down engines
Ok for some reason, I'd been setting export SYSTEM_VERSION_COMPAT=1 in my .zprofile and removing this solved it for me (still unsure how this affected my attempt in bash but if it works I'm going to close my eyes and pretend I saw nothing wrong).
@mayurankv i'll try the same, thanks
I also face this issue - any update?
% podman machine start --log-level=debug
INFO[0000] podman filtering at log level debug
DEBU[0000] Using Podman machine with `applehv` virtualization provider
DEBU[0000] socket length for /Users/conall/.config/containers/podman/machine/applehv is 55
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/applehv is 60
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/applehv/cache is 66
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman is 55
DEBU[0000] socket length for /Users/conall/.config/containers/podman/machine/applehv/podman-machine-default.json is 83
Starting machine "podman-machine-default"
DEBU[0000] socket length for /Users/conall/.config/containers/podman/machine/applehv is 55
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/applehv is 60
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/applehv/cache is 66
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman is 55
DEBU[0000] socket length for /Users/conall/.config/containers/podman/machine/applehv/podman-machine-default.json is 83
DEBU[0000] connection refused: http://localhost:58161/vm/state
DEBU[0000] writing configuration file "/Users/conall/.config/containers/podman/machine/applehv/podman-machine-default.json"
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/gvproxy.pid is 67
DEBU[0000] socket length for /Users/conall/.config/containers/podman/machine/applehv is 55
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/applehv is 60
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/applehv/cache is 66
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman is 55
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-api.sock is 87
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/podman.sock is 64
DEBU[0000] {true 1500 map[forward-dest:[/run/user/501/podman/podman.sock] forward-identity:[/Users/conall/.local/share/containers/podman/machine/machine] forward-sock:[/var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-api.sock] forward-user:[core]] [] [] map[] /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/gvproxy.log /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/gvproxy.pid 58132}
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-gvproxy.sock is 91
DEBU[0000] gvproxy command-line: /opt/podman/bin/gvproxy -debug -mtu 1500 -ssh-port 58132 -listen-vfkit unixgram:///var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-gvproxy.sock -forward-sock /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-api.sock -forward-dest /run/user/501/podman/podman.sock -forward-user core -forward-identity /Users/conall/.local/share/containers/podman/machine/machine -pid-file /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/gvproxy.pid -log-file /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/gvproxy.log
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-gvproxy.sock is 91
DEBU[0000] checking that "gvproxy" socket is ready
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.log is 82
DEBU[0000] socket length for /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.sock is 83
DEBU[0000] helper binary path is: /opt/podman/bin/vfkit
DEBU[0000] socket length for /Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock is 97
DEBU[0000] first boot detected
DEBU[0000] serving ignition file over /Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock
DEBU[0000] listening for ready on: /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.sock
DEBU[0000] waiting for ready notification
DEBU[0000] helper command-line: [/opt/podman/bin/vfkit --cpus 5 --memory 2048 --bootloader efi,variable-store=/Users/conall/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default,create --device virtio-blk,path=/Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-amd64.raw --device virtio-rng --device virtio-vsock,port=1025,socketURL=/var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.sock,listen --device virtio-serial,logFilePath=/var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.log --device virtio-net,unixSocketPath=/var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee --device virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 --device virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 --device virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 --restful-uri tcp://localhost:58161 --device virtio-gpu,width=800,height=600 --device virtio-input,pointing --device virtio-input,keyboard --gui --device virtio-vsock,port=1024,socketURL=/Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock,listen]
DEBU[0000] socket length for /Users/conall/.config/containers/podman/machine/applehv/podman-machine-default.ign is 82
DEBU[0000] reading ignition file: /Users/conall/.config/containers/podman/machine/applehv/podman-machine-default.ign
DEBU[0000] ignition socket device: /Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock
INFO[0000] &{5 2048 {[efi variable-store=/Users/conall/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default create] true} [virtio-blk,path=/Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-amd64.raw virtio-rng virtio-vsock,port=1025,socketURL=/var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.sock,listen virtio-serial,logFilePath=/var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.log virtio-net,unixSocketPath=/var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-gvproxy.sock,mac=5a:94:ef:e4:0c:ee virtio-fs,sharedDir=/Users,mountTag=a2a0ee2c717462feb1de2f5afd59de5fd2d8 virtio-fs,sharedDir=/private,mountTag=71708eb255bc230cd7c91dd26f7667a7b938 virtio-fs,sharedDir=/var/folders,mountTag=a0bb3a2c8b0b02ba5958b0576f0d6530e104 virtio-gpu,width=800,height=600 virtio-input,pointing virtio-input,keyboard virtio-vsock,port=1024,socketURL=/Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-ignition.sock,listen] tcp://localhost:58161 true {[] false}}
INFO[0000] boot parameters: &{EFIVariableStorePath:/Users/conall/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default CreateVariableStore:true}
INFO[0000]
INFO[0000] virtual machine parameters:
INFO[0000] vCPUs: 5
INFO[0000] memory: 2048 MiB
INFO[0000]
INFO[0000] Adding virtio-blk device (imagePath: /Users/conall/.local/share/containers/podman/machine/applehv/podman-machine-default-amd64.raw)
INFO[0000] Adding virtio-rng device
INFO[0000] Adding virtio-vsock device
INFO[0000] Adding virtio-serial device (logFile: /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default.log)
INFO[0000] Adding virtio-net device (nat: false macAddress: [5a:94:ef:e4:0c:ee])
INFO[0000] Using unix socket /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-gvproxy.sock
INFO[0000] local: /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/vfkit-160d8-f426.sock remote: /var/folders/q0/bxj7zbgj45x7pclhjl0zrspr0000gn/T/podman/podman-machine-default-gvproxy.sock
INFO[0000] Adding virtio-fs device
INFO[0000] Adding virtio-fs device
INFO[0000] Adding virtio-fs device
INFO[0000] Adding virtio-gpu device
INFO[0000] Adding virtio-input pointing device
INFO[0000] Adding virtio-input keyboard device
Error: Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={
NSLocalizedFailure = "Internal Virtualization error.";
NSLocalizedFailureReason = "The virtual machine failed to start.";
}
Usage:
vfkit [flags]
Flags:
-b, --bootloader strings bootloader configuration (default [])
--cloud-init strings path to user-data and meta-data cloud-init configuration files (default [])
-c, --cpus uint number of virtual CPUs (default 1)
-d, --device stringArray devices
--gui display the contents of the virtual machine onto a graphical user interface
-h, --help help for vfkit
--ignition string path to the ignition file
-i, --initrd string path to the virtual machine initrd
-k, --kernel string path to the virtual machine Linux kernel
-C, --kernel-cmdline string Linux kernel command line
--log-level string set log level
-m, --memory uint virtual machine RAM size in mibibytes (default 512)
--restful-uri string URI address for RESTful services (default "none://")
-t, --timesync string sync guest time when host wakes up from sleep
-v, --version version for vfkit
Error Domain=VZErrorDomain Code=1 Description="Internal Virtualization error. The virtual machine failed to start." UserInfo={
NSLocalizedFailure = "Internal Virtualization error.";
NSLocalizedFailureReason = "The virtual machine failed to start.";
}
DEBU[0001] writing configuration file "/Users/conall/.config/containers/podman/machine/applehv/podman-machine-default.json"
Error: vfkit exited unexpectedly with exit code 1
DEBU[0001] Shutting down engines
Having the same issue here Mac Sequoia M3. any resolution ?
I recently battled with this. I upgraded from Ventura to Sequoia. Podman previously working, then failed to work after the upgrade. I tried the various uninstall/re-installs with no luck.
For me, the fix was to fully remove homebrew (including all formula and casks). Then re-install homebrew, then brew install --cask podman-desktop; then follow the podman-desktop first run wizard (which installs podman, and then sets up a new machine). I'm now back to a working state.
Maybe this workaround will work for someone else.
@linickx Thank you! Your workaround worked for me.
- install podman-installer-macos-arm64.pkg
- build vfkit-arm64 from source code(https://github.com/crc-org/vfkit) locally, output-> out/vfkit-arm64
- replace /opt/podman/bin/vfkit with vfkit-arm64 These worked for me.
Got this same error twice now on an M4 MBP. There were no changes (no software upgrades either). I was using it earlier today. Put my mac to sleep. 15 mins or so later used it again, and I get the error. Doing a reset and re-init fixed it but that's not ideal as that downloads the VM image again and it also resets all containers etc. Next time this happens, I will try and post some debug details as mentioned in this thread.