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.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.1k stars 1.78k forks source link

Wireshark change causing error running osx via naked #681

Open adamBoualleiguie opened 11 months ago

adamBoualleiguie commented 11 months ago

using this command i run docker container of docker osx and it was working via a cronJob , the problem Today appears: command: ocker run -i --device /dev/kvm -p 50923:10022 -p 6000:5999 -v /tmp/.X11-unix:/tmp/.X11-unix -v "/DATA/Proxym-MacOs/Macos_xcode14_stable_running.img:/image" -v "/DATA/AdditionalMacosDisks/xcode_versions.img:/disktwo" -v "/DATA/AdditionalMacosDisks/xcode_14_2.img:/diskthree" -e "DISPLAY=${DISPLAY:-:0.0}" -e EXTRA='-display none -vnc 0.0.0.0:99 -device ide-hd,bus=sata.5,drive=DISK-TWO -drive id=DISK-TWO,if=none,file=/disktwo,format=qcow2 -device ide-hd,bus=sata.3,drive=DISK-THREE -drive id=DISK-THREE,if=none,file=/diskthree,format=qcow2' -e RAM=17 -e GENERATE_UNIQUE=true -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist sickcodes/docker-osx:naked

i already check that wireshark repo and that file no longer exist: https://gitlab.com/wireshark/wireshark/-/raw/master/manuf

stacktrace:

DEVICE_MODEL: iMacPro1,1 SERIAL_SET_COUNT: 1 OUTPUT_DIRECTORY: . Cloning into 'OpenCorePkg'... make: Entering directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial' cc Linux_X64/macserial.o Linux_X64/UserPseudoRandom.o -o macserial strip -x macserial make: Leaving directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial' File: ./macserial Size: 1045352 Blocks: 2048 IO Block: 4096 regular file Device: 0,57 Inode: 5654222 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 1000/ arch) Gid: ( 1000/ arch) Access: 2023-07-27 09:40:35.762175947 +0000 Modify: 2023-07-27 09:40:35.766176034 +0000 Change: 2023-07-27 09:40:35.770176122 +0000 Birth: 2023-07-27 09:40:35.730175245 +0000 --2023-07-27 09:40:35-- https://gitlab.com/wireshark/wireshark/-/raw/master/manuf Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9 Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2023-07-27 09:40:36 ERROR 404: Not Found.

Dieter7788 commented 11 months ago

this fixed the issue for me

sudo apt update -y sudo apt install libguestfs-tools build-essential wget git gcc uuid-runtime sudo -y

adamBoualleiguie commented 11 months ago

sorry for the late response, no it didn't solve the issue as far as i see there is a file which is removed from wireshark repository , this file is caussing the error when naked container is starting. sorry if i proposed wrong root cause, is there any help regarding this issue ? thanks .

PaiHL commented 9 months ago

我也遇到了这个问题 ```hl@hl:~/osx$ docker run -it \

--device /dev/kvm \
-p 50922:10022 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=${DISPLAY:-:0.0}" \
-e GENERATE_UNIQUE=true \
-e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist \
sickcodes/docker-osx:big-sur

DEVICE_MODEL: iMacPro1,1 SERIAL_SET_COUNT: 1 OUTPUT_DIRECTORY: . Cloning into 'OpenCorePkg'... remote: Enumerating objects: 1730, done. remote: Counting objects: 100% (1730/1730), done. remote: Compressing objects: 100% (1510/1510), done. remote: Total 1730 (delta 377), reused 654 (delta 164), pack-reused 0 Receiving objects: 100% (1730/1730), 15.36 MiB | 126.00 KiB/s, done. Resolving deltas: 100% (377/377), done. make: Entering directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial' cc Linux_X64/macserial.o Linux_X64/UserPseudoRandom.o -o macserial strip -x macserial make: Leaving directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial' File: ./macserial Size: 1045400 Blocks: 2048 IO Block: 4096 regular file Device: 0,368 Inode: 210211 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 1000/ arch) Gid: ( 1000/ arch) Access: 2023-09-28 10:33:27.069166393 +0000 Modify: 2023-09-28 10:33:27.069166393 +0000 Change: 2023-09-28 10:33:27.079166583 +0000 Birth: 2023-09-28 10:33:27.069166393 +0000 --2023-09-28 10:33:27-- https://gitlab.com/wireshark/wireshark/-/raw/master/manuf SSL_INIT Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9 Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2023-09-28 10:33:28 ERROR 404: Not Found.

MacDaddy1660B commented 7 months ago
docker run -it
     --device /dev/kvm
     -p 50922:10022
     -v /tmp/.X11-unix:/tmp/.X11-unix
     --name=monterey-test
     -e "DISPLAY=${DISPLAY:-:0.0}"
     -e GENERATE_UNIQUE=true
     -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist'
 sickcodes/docker-osx:monterey

Terminal output:

DEVICE_MODEL:       iMacPro1,1
SERIAL_SET_COUNT:   1
OUTPUT_DIRECTORY:   .
Cloning into 'OpenCorePkg'...
remote: Enumerating objects: 1725, done.
remote: Counting objects: 100% (1725/1725), done.
remote: Compressing objects: 100% (1514/1514), done.
remote: Total 1725 (delta 365), reused 680 (delta 155), pack-reused 0
Receiving objects: 100% (1725/1725), 15.34 MiB | 789.00 KiB/s, done.
Resolving deltas: 100% (365/365), done.
make: Entering directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial'
cc  Linux_X64/macserial.o Linux_X64/UserPseudoRandom.o  -o macserial
strip -x macserial
make: Leaving directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial'
  File: ./macserial
  Size: 1045352     Blocks: 2048       IO Block: 4096   regular file
Device: 0,97    Inode: 15996172    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1000/    arch)   Gid: ( 1000/    arch)
Access: 2023-11-14 22:53:29.896702305 +0000
Modify: 2023-11-14 22:53:29.896702305 +0000
Change: 2023-11-14 22:53:29.900702287 +0000
 Birth: 2023-11-14 22:53:29.880702377 +0000
--2023-11-14 22:53:29--  https://gitlab.com/wireshark/wireshark/-/raw/master/manuf
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving gitlab.com (gitlab.com)... 172.65.251.78, 2606:4700:90:0:f22e:fbec:5bed:a9b9
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-11-14 22:53:30 ERROR 404: Not Found.
kuya1284 commented 6 months ago

While attempting to setup Ventura for the first time using Docker-OSX, I came across this issue with not being able to generate a unique serial. The URL for manuf that's hardcoded in generate-unique-machine-values.sh, and possibly other files/scripts is no longer valid as mentioned by the OP.

After some research, I discovered this thread that was created on July 27, 2023: Wireshark manufacturer database on gitlab is broken. In that thread, manuf was removed by commit 131b1e42. As an alternative, the manuf file couild be referenced in the Wireshark 4.0 branch: https://gitlab.com/wireshark/wireshark/-/raw/release-4.0/manuf.

Or, even better, this download URL should be used instead, which gets updated periodically from master: https://www.wireshark.org/download/automated/data/manuf.

This should be a quick and easy change to make. If I have some time this week, I could submit a PR, but if I don't get around to it, maybe someone else can.

elven2016 commented 6 months ago

the same issue too

elven2016 commented 6 months ago

While attempting to setup Ventura for the first time using Docker-OSX, I came across this issue with not being able to generate a unique serial. The URL for manuf that's hardcoded in generate-unique-machine-values.sh, as possibly other files/scripts is no longer valid as mentioned by the OP.

After some research, I discovered this thread that was created on July 27, 2023: Wireshark manufacturer database on gitlab is broken. In that thread, manuf was removed by commit 131b1e42. As an alternative, the manuf file couild be referenced in the Wireshark 4.0 branch: https://gitlab.com/wireshark/wireshark/-/raw/release-4.0/manuf.

Or, even better, this download URL should be used instead, which gets updated periodically from master: https://www.wireshark.org/download/automated/data/manuf.

This should be a quick and easy change to make. If I have some time this week, I could submit a PR, but if I don't get around to it, maybe someone else can.

While attempting to setup Ventura for the first time using Docker-OSX, I came across this issue with not being able to generate a unique serial. The URL for manuf that's hardcoded in generate-unique-machine-values.sh, as possibly other files/scripts is no longer valid as mentioned by the OP.

After some research, I discovered this thread that was created on July 27, 2023: Wireshark manufacturer database on gitlab is broken. In that thread, manuf was removed by commit 131b1e42. As an alternative, the manuf file couild be referenced in the Wireshark 4.0 branch: https://gitlab.com/wireshark/wireshark/-/raw/release-4.0/manuf.

Or, even better, this download URL should be used instead, which gets updated periodically from master: https://www.wireshark.org/download/automated/data/manuf.

This should be a quick and easy change to make. If I have some time this week, I could submit a PR, but if I don't get around to it, maybe someone else can.

hello,kuya1284,How can this issue be resolved? What command should be used when running Docker to avoid this problem? thanks

kuya1284 commented 6 months ago

hello,kuya1284,How can this issue be resolved? What command should be used when running Docker to avoid this problem? thanks

@elven2016 , edit generate-unique-machine-values.sh and change https://gitlab.com/wireshark/wireshark/-/raw/release-3.6/manuf to https://www.wireshark.org/download/automated/data/manuf.

sickcodes commented 2 months ago

Thanks guys we fixed it here: https://github.com/sickcodes/osx-serial-generator/commit/ae3b4cc44da7a8069818a6a3a660596107af3b4d

I have updated the submodule