Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to persist serial between reboots #779

Open
vbtrek opened this issue Jun 9, 2024 · 0 comments
Open

Trying to persist serial between reboots #779

vbtrek opened this issue Jun 9, 2024 · 0 comments

Comments

@vbtrek
Copy link

vbtrek commented Jun 9, 2024

Hello, I'm running windows 11, docker desktop and WSL2. I have an instance of sonomo running, but without audio and every reboot my appleid get broken.

So I was trying to add audio and persist the serial number between boots. I was trying this:

docker run -it \
    --name WSLg \
    --device /dev/kvm \
    -p 50922:10022 \
    -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \
    -v /mnt/wslg/runtime-dir/pulse/native:/tmp/pulseaudio.socket \
    -v /mnt/wslg/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e CPU='Haswell-noTSX' \
    -e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on' \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom-sonoma.plist' \
    -e NOPICKER=true \
    -e GENERATE_UNIQUE=true \
    -e GENERATE_SPECIFIC=true \
    -e DEVICE_MODEL="iMacPro1,1" \
    -v "${PWD}/output.env:/env" \
    -v "${PWD}/mac_hdd_ng_testing.img:/image" \
    sickcodes/docker-osx:sonoma

But when i run this I get the following:

DEVICE_MODEL:       iMacPro1,1
SERIAL_SET_COUNT:   1
OUTPUT_DIRECTORY:   .
Cloning into 'OpenCorePkg'...
remote: Enumerating objects: 1747, done.
remote: Counting objects: 100% (1747/1747), done.
remote: Compressing objects: 100% (1518/1518), done.
remote: Total 1747 (delta 380), reused 708 (delta 172), pack-reused 0
Receiving objects: 100% (1747/1747), 15.79 MiB | 19.02 MiB/s, done.
Resolving deltas: 100% (380/380), 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: 1045256         Blocks: 2048       IO Block: 4096   regular file
Device: 0,183   Inode: 94999       Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1000/    arch)   Gid: ( 1000/    arch)
Access: 2024-06-09 21:49:56.122693914 +0000
Modify: 2024-06-09 21:49:56.122693914 +0000
Change: 2024-06-09 21:49:56.122693914 +0000
 Birth: 2024-06-09 21:49:56.092692817 +0000
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2212k  100 2212k    0     0  5300k      0 --:--:-- --:--:-- --:--:-- 5293k
"iMacPro1,1","C02FGAYBHX87","C02112501GUJG36CB","6B4355A6-5F59-4587-918E-F1F14157409C","48:43:7C:D4:36:D4","1920","1080",""
Wrote CSV to: ./serial_sets-2024-06-09-21:49:53.csv
iMacPro1,1      C02FGAYBHX87    C02112501GUJG36CB       6B4355A6-5F59-4587-918E-F1F14157409C    48:43:7C:D4:36:D4       1920       1080
Wrote TSV to: ./serial.tsv
./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh: line 309: /env: Is a directory

Any help much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant