sickcodes / osx-serial-generator

Mac Serial Generator - Generate complete sets of Serial Numbers for OSX-KVM, Docker-OSX and of course, OpenCore.
GNU General Public License v3.0
1.59k stars 153 forks source link

Failed to boot OSX with GENERATE_UNIQUE #244 #9

Closed sickcodes closed 3 years ago

sickcodes commented 3 years ago

Looking at either OSX-KVM or libguestfs or new kernel changes...

-e LIBGUESTFS_DEBUG=1 \ -e LIBGUESTFS_TRACE=1 \

supermin: internal insmod libcrc32c.ko
supermin: root UUID is longer than 16 bytes
[    0.500880] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[    0.501609] CPU: 0 PID: 1 Comm: init Not tainted 5.11.13-arch1-1 #1
[    0.502171] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ArchLinux 1.14.0-1 04/01/2014
[    0.503026] Call Trace:
[    0.503268]  dump_stack+0x6b/0x83
[    0.503651]  panic+0x112/0x2e8
[    0.503929]  do_exit.cold+0xa7/0xb3
[    0.504235]  ? vfs_write+0x153/0x2a0
[    0.504608]  do_group_exit+0x33/0xa0
[    0.504935]  __x64_sys_exit_group+0x14/0x20
[    0.505296]  do_syscall_64+0x33/0x40
[    0.505612]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    0.506119] RIP: 0033:0x441221
[    0.506400] Code: c0 ff ff ff be e7 00 00 00 ba 3c 00 00 00 eb 16 66 0f 1f 84 00 00 00 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00
[    0.508124] RSP: 002b:00007fff73c76038 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[    0.508777] RAX: ffffffffffffffda RBX: 00000000004b3230 RCX: 0000000000441221
[    0.509482] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
[    0.510097] RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 0000000000000000
[    0.510706] R10: 0000000000441fb7 R11: 0000000000000246 R12: 00000000004b3230
[    0.511311] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
[    0.512030] Kernel Offset: 0x22a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.513092] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
libguestfs: child_cleanup: 0x55ea246719a0: child process died
libguestfs: sending SIGTERM to process 1195
libguestfs: qemu maxrss 182132K
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x55ea246719a0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsf8KJc3
libguestfs: trace: close
libguestfs: closing guestfs handle 0x55b9a48229a0 (state 0)
### cleaning up ...

Originally posted by @sickcodes in https://github.com/sickcodes/Docker-OSX/issues/244#issuecomment-819739528

sickcodes commented 3 years ago

There is a bug in file command version 5.40

Downgrading to 5.39 fixes this until mainline version includes the fix

yes | sudo pacman -U https://archive.archlinux.org/packages/f/file/file-5.39-1-x86_64.pkg.tar.zst

See:

https://github.com/sickcodes/Docker-OSX/pull/252

This issue will remain open until 5.41 or whichever new version fixes it.

sickcodes commented 3 years ago

Fixed