not support M1 mac #210

Open
opened 2025-12-29 00:20:22 +01:00 by adam · 7 comments
Owner

Originally created by @shenqistart on GitHub (Jun 29, 2021).

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

Originally created by @shenqistart on GitHub (Jun 29, 2021). WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.
Author
Owner

@sickcodes commented on GitHub (Jul 28, 2021):

Unsupported currently

@sickcodes commented on GitHub (Jul 28, 2021): Unsupported currently
Author
Owner

@ilqvya commented on GitHub (Sep 21, 2021):

So, make it supported

@ilqvya commented on GitHub (Sep 21, 2021): So, make it supported
Author
Owner

@sickcodes commented on GitHub (Sep 23, 2021):

@effolkronium
@shenqistart
https://github.com/KhaosT/MacVM

@sickcodes commented on GitHub (Sep 23, 2021): @effolkronium @shenqistart https://github.com/KhaosT/MacVM
Author
Owner

@dinbtechit commented on GitHub (Dec 23, 2022):

Not sure how to install kvm on mac m1.

2022-12-22 22:53:17 ssh-keygen: generating new host keys: RSA ECDSA ED25519 
2022-12-22 22:53:17 ++ id -u
2022-12-22 22:53:17 ++ id -g
2022-12-22 22:53:17 + sudo chown 1000:1000 /dev/kvm
2022-12-22 22:53:18 ++ id -u
2022-12-22 22:53:18 ++ id -g
2022-12-22 22:53:18 + sudo chown -R 1000:1000 /dev/snd
2022-12-22 22:53:18 + [[ 4 = max ]]
2022-12-22 22:53:18 + [[ 4 = half ]]
2022-12-22 22:53:18 ++ id -u
2022-12-22 22:53:18 ++ id -g
2022-12-22 22:53:18 + sudo chown -R 1000:1000 /dev/snd
2022-12-22 22:53:18 + exec qemu-system-x86_64 -m 4000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check, -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.3,drive=InstallMedia -drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 -drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -boot menu=on -vga vmware
2022-12-22 22:53:20 kvm version too old
2022-12-22 22:53:20 qemu-system-x86_64: failed to initialize kvm: Function not implemented
2022-12-22 22:53:20 qemu-system-x86_64: falling back to tcg
2022-12-22 22:53:20 QEMU 7.1.0 monitor - type 'help' for more information
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
2022-12-22 22:53:20 alsa: Could not initialize DAC
2022-12-22 22:53:20 alsa: Failed to open `default':
2022-12-22 22:53:20 alsa: Reason: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
2022-12-22 22:53:20 alsa: Could not initialize DAC
2022-12-22 22:53:20 alsa: Failed to open `default':
2022-12-22 22:53:20 alsa: Reason: No such file or directory
2022-12-22 22:53:20 audio: Failed to create voice `dac'
2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
2022-12-22 22:53:20 alsa: Could not initialize ADC
2022-12-22 22:53:20 alsa: Failed to open `default':
2022-12-22 22:53:20 alsa: Reason: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
2022-12-22 22:53:20 alsa: Could not initialize ADC
2022-12-22 22:53:20 alsa: Failed to open `default':
2022-12-22 22:53:20 alsa: Reason: No such file or directory
2022-12-22 22:53:20 audio: Failed to create voice `adc'
2022-12-22 22:53:20 gtk initialization failed
@dinbtechit commented on GitHub (Dec 23, 2022): Not sure how to install `kvm` on mac m1. ``` 2022-12-22 22:53:17 ssh-keygen: generating new host keys: RSA ECDSA ED25519 2022-12-22 22:53:17 ++ id -u 2022-12-22 22:53:17 ++ id -g 2022-12-22 22:53:17 + sudo chown 1000:1000 /dev/kvm 2022-12-22 22:53:18 ++ id -u 2022-12-22 22:53:18 ++ id -g 2022-12-22 22:53:18 + sudo chown -R 1000:1000 /dev/snd 2022-12-22 22:53:18 + [[ 4 = max ]] 2022-12-22 22:53:18 + [[ 4 = half ]] 2022-12-22 22:53:18 ++ id -u 2022-12-22 22:53:18 ++ id -g 2022-12-22 22:53:18 + sudo chown -R 1000:1000 /dev/snd 2022-12-22 22:53:18 + exec qemu-system-x86_64 -m 4000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check, -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.3,drive=InstallMedia -drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 -drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -boot menu=on -vga vmware 2022-12-22 22:53:20 kvm version too old 2022-12-22 22:53:20 qemu-system-x86_64: failed to initialize kvm: Function not implemented 2022-12-22 22:53:20 qemu-system-x86_64: falling back to tcg 2022-12-22 22:53:20 QEMU 7.1.0 monitor - type 'help' for more information 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] 2022-12-22 22:53:20 qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] 2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0' 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory 2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default 2022-12-22 22:53:20 alsa: Could not initialize DAC 2022-12-22 22:53:20 alsa: Failed to open `default': 2022-12-22 22:53:20 alsa: Reason: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0' 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory 2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default 2022-12-22 22:53:20 alsa: Could not initialize DAC 2022-12-22 22:53:20 alsa: Failed to open `default': 2022-12-22 22:53:20 alsa: Reason: No such file or directory 2022-12-22 22:53:20 audio: Failed to create voice `dac' 2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0' 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory 2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default 2022-12-22 22:53:20 alsa: Could not initialize ADC 2022-12-22 22:53:20 alsa: Failed to open `default': 2022-12-22 22:53:20 alsa: Reason: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:855:(parse_card) cannot find card '0' 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name 2022-12-22 22:53:20 ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory 2022-12-22 22:53:20 ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory 2022-12-22 22:53:20 ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default 2022-12-22 22:53:20 alsa: Could not initialize ADC 2022-12-22 22:53:20 alsa: Failed to open `default': 2022-12-22 22:53:20 alsa: Reason: No such file or directory 2022-12-22 22:53:20 audio: Failed to create voice `adc' 2022-12-22 22:53:20 gtk initialization failed ```
Author
Owner

@csonuryilmaz commented on GitHub (Jan 15, 2023):

@effolkronium
@shenqistart

I can also suggest tart for M1 mac. I'm using it for a few months, works fine. ❤️

@csonuryilmaz commented on GitHub (Jan 15, 2023): @effolkronium @shenqistart I can also suggest **tart** for M1 mac. I'm using it for a few months, works fine. :heart: - :link: https://github.com/cirruslabs/tart
Author
Owner

@pkasson commented on GitHub (Jan 20, 2023):

@effolkronium @shenqistart

I can also suggest tart for M1 mac. I'm using it for a few months, works fine. ❤️

Does it support non Silicon images ?

@pkasson commented on GitHub (Jan 20, 2023): > @effolkronium @shenqistart > > I can also suggest **tart** for M1 mac. I'm using it for a few months, works fine. ❤️ > > * 🔗 https://github.com/cirruslabs/tart Does it support non Silicon images ?
Author
Owner

@whatwewant commented on GitHub (Sep 30, 2023):

@effolkronium @shenqistart
I can also suggest tart for M1 mac. I'm using it for a few months, works fine. ❤️

Does it support non Silicon images ?

supported now

simply install and use tart

# install zmicro (package manager, official site: https://github.com/zcorky/zmicro)
$ curl -o- https://raw.githubusercontent.com/zcorky/zmicro/master/install | bash

# install tart
$ zmicro package install tart

# install macos image
$ tart clone ghcr.io/cirruslabs/macos-sonoma-base:latest sonoma-base

# start macos vm
$ tart run sonoma-base
@whatwewant commented on GitHub (Sep 30, 2023): > > @effolkronium @shenqistart > > I can also suggest **tart** for M1 mac. I'm using it for a few months, works fine. ❤️ > > > > * 🔗 https://github.com/cirruslabs/tart > > Does it support non Silicon images ? supported now simply install and use tart ```bash # install zmicro (package manager, official site: https://github.com/zcorky/zmicro) $ curl -o- https://raw.githubusercontent.com/zcorky/zmicro/master/install | bash # install tart $ zmicro package install tart # install macos image $ tart clone ghcr.io/cirruslabs/macos-sonoma-base:latest sonoma-base # start macos vm $ tart run sonoma-base ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#210