sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.

Home Page:https://hub.docker.com/r/sickcodes/docker-osx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not restart Ventura Container that I successfully installed and ran once.

ashuvssut opened this issue · comments

I recently successfully ran docker osx ventura. But after i shutdown and tried to restart by executing the following command, it did not start

sudo docker start -ai -i  elated_goldstine       

elated_goldstine is the name of the container

here are the logs of the command above

libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_backend "direct"
libguestfs: trace: set_backend = 0
libguestfs: create: flags = 0, handle = 0x557ffc0ae2a0, program = guestfish
libguestfs: trace: umount_all
guestfsd: <= umount_all (0x2f) request length 40 bytes
umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=617076k,nr_inodes=154269,mode=755,inode64 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/pts dir=/dev/pts type=devpts opts=rw,relatime,mode=600,ptmxmode=000 freq=0 passno=0
umount-all: /proc/mounts: fsname=shmfs dir=/dev/shm type=tmpfs opts=rw,relatime,inode64 freq=0 passno=0
umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=249964k,mode=755,inode64 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/sda2 dir=/sysroot type=vfat opts=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/sda1 dir=/sysroot/ESP type=vfat opts=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro freq=0 passno=0
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: umount /sysroot/ESP
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: umount /sysroot
libguestfs: trace: umount_all = 0
libguestfs: trace: shutdown
libguestfs: trace: shutdown = 0
libguestfs: trace: close
libguestfs: closing guestfs handle 0x557ffc0ae2a0 (state 0)
### cleaning up ...
libguestfs: trace: close
libguestfs: closing guestfs handle 0x55d4ec13d2a0 (state 2)
libguestfs: trace: internal_autosync
guestfsd: => umount_all (0x2f) took 0.07 secs
guestfsd: <= internal_autosync (0x11a) request length 40 bytes
umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=617076k,nr_inodes=154269,mode=755,inode64 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/pts dir=/dev/pts type=devpts opts=rw,relatime,mode=600,ptmxmode=000 freq=0 passno=0
umount-all: /proc/mounts: fsname=shmfs dir=/dev/shm type=tmpfs opts=rw,relatime,inode64 freq=0 passno=0
umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=249964k,mode=755,inode64 freq=0 passno=0
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sdb
No filesystem is currently mounted on /sys/fs/cgroup.
Failed to determine unit we run in, ignoring: No data available
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda
No filesystem is currently mounted on /sys/fs/cgroup.
Failed to determine unit we run in, ignoring: No data available
fsync /dev/sda
libguestfs: trace: internal_autosync = 0
libguestfs: sending SIGTERM to process 60
libguestfs: qemu maxrss 275812K
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsFqx8zC
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfs58MnzK
DEVICE_MODEL,SERIAL,BOARD_SERIAL,UUID,MAC_ADDRESS,WIDTH,HEIGHT,KERNEL_ARGS
"iMacPro1,1","C02GDRYSHX87","C021371004NJG36AD","FD474B59-44A7-45CA-AADF-46FEF7A82DDB",":E6:DC:CF","1920","1080",""
DEVICE_MODEL	SERIAL	BOARD_SERIAL	UUID	MAC_ADDRESS	WIDTH	HEIGHT	KERNEL_ARGS
iMacPro1,1	C02TVDY4HX87	C027243104NJG36UE	F2A188FB-8971-4F44-ACAD-FCC5279F7D74	:15:DE:2A	1920	1080	
iMacPro1,1	C02ZXYYAHX87	C02953108GUJG36CB	79116037-8F75-45AF-BE84-48C56B76FC11	:0F:73:CC	1920	1080	
iMacPro1,1	C02W2FZVHX87	C02801306CDJG361H	47393F9E-3BAF-404F-960E-C1D6518CFEEE	:89:A5:84	1920	1080	
iMacPro1,1	C02D3JY6HX87	C020295014NJG368C	912DA2A7-4521-4387-BFB1-78B8CB0AC3B6	:B2:7D:86	1920	1080	
iMacPro1,1	C02XX8ZDHX87	C02853100GUJG361M	E3A09BF4-CD87-4EB1-BBFC-0F5E80B3E2C4	:B4:1C:28	1920	1080	
iMacPro1,1	C02Z4PYPHX87	C029301084NJG36JC	114FF5A4-DA64-4D79-92BB-0697C15B1640	:6F:89:A9	1920	1080	
iMacPro1,1	C02XX02GHX87	C02853101QXJG36JA	2410AED5-4D95-4C23-894E-1B85EC6DF0F7	:89:F8:07	1920	1080	
iMacPro1,1	C02Z5BYUHX87	C02931401J9JG36A8	A96B6DF6-A904-4CE5-94A5-CCFC18EEFD34	:AB:AD:65	1920	1080	
iMacPro1,1	C02XP05RHX87	C02846130J9JG361H	2DAB37EB-9D84-44FA-937D-7C7A33ECF399	:C5:22:00	1920	1080	
iMacPro1,1	C02ZL0F8HX87	C029439024NJG361H	FF1CFC41-F5D3-44C6-8A21-3818AC1AA8D1	:16:7D:8D	1920	1080	
iMacPro1,1	C02FMHYBHX87	C02117108CDJG36FB	B166B723-A416-4EAF-B044-991ABB80EBDE	:11:99:1F	1920	1080	
iMacPro1,1	C02FP4YWHX87	C02119101GUJG36JA	31F6CB83-31E5-490A-9E36-528B72128364	:EA:AF:1D	1920	1080	
iMacPro1,1	C02TL7ZBHX87	C02716501J9JG36JA	1F58C79F-8992-421B-96C4-6F4FE9949CDC	:56:03:28	1920	1080	
iMacPro1,1	C02C103YHX87	C02953500QXJG361M	4540E740-699A-444F-9CF4-4D207A2A34EE	:56:51:F0	1920	1080	
iMacPro1,1	C02T77ZPHX87	C02706902GUJG36CB	885F5CEE-7A3A-456A-9B6F-25436A065A8C	:36:D8:7B	1920	1080	
iMacPro1,1	C02ZFRY4HX87	C02938501CDJG36UE	D6812089-8CF7-4534-97C9-DD5BC0A26FD1	:71:AD:06	1920	1080	
iMacPro1,1	C02V8SYLHX87	C02734500GUJG36FB	85252108-1D5F-405B-998F-5A3E70833E0F	:CF:ED:59	1920	1080	
iMacPro1,1	C02D20BXHX87	C020287004NJG36A8	139E17A8-0F4C-4A96-95FC-EF62DFEB0659	:35:A9:9E	1920	1080	
iMacPro1,1	C02T7LZVHX87	C02706301CDJG36CB	9F519B05-1413-4E4D-BA09-BC1FB068046D	:DB:30:E4	1920	1080	
iMacPro1,1	C02XLUY9HX87	C02843403J9JG36JC	7DF3EC67-1BAF-4D87-9A18-B07C378F9627	:96:E3:67	1920	1080	
iMacPro1,1	C02GDRYSHX87	C021371004NJG36AD	FD474B59-44A7-45CA-AADF-46FEF7A82DDB	:E6:DC:CF	1920	1080	

nohup: appending output to 'nohup.out'
++ id -u
++ id -g
+ sudo chown 1000:1000 /dev/kvm
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ [[ 4 = max ]]
+ [[ 4 = half ]]
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ 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
QEMU 7.1.0 monitor - type 'help' for more information
(qemu) ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `dac'
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `adc'
gtk initialization failed

Extra info

I am able to spin up new docker osx ventura containers using the docker run -it.... command. But i am unable to restart the containers i have already created using sudo docker start -ai -i ...

about my linux os

uname -a \
; echo "${DISPLAY}" \
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \
; grep NAME /etc/os-release \
; df -h . \
; qemu-system-x86_64 --version \
; libvirtd --version \
; free -mh \
; nproc \
; egrep -c '(svm|vmx)' /proc/cpuinfo \
; ls -lha /dev/kvm \
; ls -lha /tmp/.X11-unix/ \
; ps aux | grep dockerd \
; docker ps | grep osx \
; grep "docker\|kvm\|virt" /etc/group
Linux linu 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep  7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
:0
1
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p4  137G   58G   73G  45% /home
QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.14)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 8.0.0
               total        used        free      shared  buff/cache   available
Mem:           7.2Gi       3.3Gi       734Mi        89Mi       3.2Gi       3.5Gi
Swap:           14Gi        47Mi        14Gi
8
8
crw-rw-rw-+ 1 root kvm 10, 232 Oct 14 14:27 /dev/kvm
total 76K
drwxrwxrwt  2 root root 4.0K Oct 14 13:12 .
drwxrwxrwt 25 root root  68K Oct 14 14:30 ..
srwxrwxrwx  1 ashu ashu    0 Oct 14 13:12 X0
root       16219  0.0  0.0  14348  5760 ?        S    13:57   0:00 sudo dockerd
root       16220  0.0  0.0  14348  2488 ?        Ss   13:57   0:00 sudo dockerd
root       16221  0.3  0.9 1980412 69092 ?       Sl   13:57   0:07 dockerd
ashu       24330  0.0  0.0   9212  2432 pts/2    S+   14:30   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd
kvm:x:109:ashu
libvirt:x:139:ashu
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:140:
docker:x:999:ashu

I'm having the same issue with Monterey...

Was anyone able to start the system in the meantime?