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

[Bug]: Installation version 15 exception #173

Open
ncheng89 opened this issue Dec 26, 2024 · 6 comments
Open

[Bug]: Installation version 15 exception #173

ncheng89 opened this issue Dec 26, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@ncheng89
Copy link

Operating system

CentOS Stream 8

Description

Installation version 15 exception,VNC keeps getting stuck on the Apple logo screen

Docker compose

services:
macos:
image: dockurr/macos
container_name: macos

environment:
  VERSION: "15"
  RAM_SIZE: "8G"
  CPU_CORES: "4"
  DISK_SIZE: "100"

devices:
  - /dev/kvm
  - /dev/net/tun
cap_add:
  - NET_ADMIN
ports:
  - 8007:8006
  - 5900:5900/tcp
  - 5900:5900/udp
stop_grace_period: 2m

volumes:
  - /data1/mac/15:/storage

Docker log

macos | ❯ Starting macOS for Docker v1.18...
macos | ❯ For support visit https://github.com/dockur/macos
macos | ❯ CPU: 12th Gen Intel Core i5 12400 | RAM: 28/63 GB | DISK: 376 GB (ext4) | KERNEL: 4.18.0-553.6.1.el8.x86_64...
macos |
macos | ❯ Downloading macOS 15 recovery image...
macos | Downloading 072-44253...
macos | Saving http://oscdn.apple.com/content/downloads/42/50/072-44253/45co5yrhqcy12kjlcif04jqoackzgtf80e/RecoveryImage/BaseSystem.chunklist to /storage/tmp/BaseSystem.chunklist...
100.0% downloaded
macos | Download complete!
macos | Saving http://oscdn.apple.com/content/downloads/42/50/072-44253/45co5yrhqcy12kjlcif04jqoackzgtf80e/RecoveryImage/BaseSystem.dmg to /storage/tmp/BaseSystem.dmg...
100.0% downloaded
macos | Download complete!
macos | Verifying image with chunklist...
Chunk 80 (10485760 bytes)
macos | Image verification complete!
macos | ❯ Creating a 100G growable disk image in raw format...
macos | ❯ Building boot image...
macos | ❯ Booting macOS using QEMU v9.2.0...
macos |
3h
3h
3h
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0xA,0x0): Not Found
macos | BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos | BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos | OCS: No schema for Base at 1 index, context !
macos | OCS: No schema for Count at 3 index, context !
macos | OCS: No schema for Find at 5 index, context !
macos | OCS: No schema for Identifier at 6 index, context !
macos | OCS: No schema for Limit at 7 index, context !
macos | OCS: No schema for Mask at 8 index, context !
macos | OCS: No schema for Replace at 11 index, context !
macos | OCS: No schema for ReplaceMask at 12 index, context !
macos | OCS: No schema for Skip at 13 index, context !
macos | OCS: No schema for Base at 1 index, context !
macos | OCS: No schema for Count at 3 index, context !
macos | OCS: No schema for Find at 5 index, context !
macos | OCS: No schema for Identifier at 6 index, context !
macos | OCS: No schema for Limit at 7 index, context !
macos | OCS: No schema for Mask at 8 index, context !
macos | OCS: No schema for Replace at 11 index, context !
macos | OCS: No schema for ReplaceMask at 12 index, context !
macos | OCS: No schema for Skip at 13 index, context !

Screenshots (optional)

No response

@ncheng89 ncheng89 added the bug Something isn't working label Dec 26, 2024
@ncheng89
Copy link
Author

image
After installing version 13, the system keeps prompting that there is no network. I don’t understand what it is.
docker-compose.yaml

services:
  macos:
    image: dockurr/macos
    container_name: macos
  
    environment:
      VERSION: "13"
      RAM_SIZE: "8G"
      CPU_CORES: "4"
      DISK_SIZE: "100"
    dns:
     - 8.8.8.8
     - 8.8.4.4
    
    devices:
      - /dev/kvm
#      - /dev/net/tun

    cap_add:
      - NET_ADMIN
    ports:
      - 8007:8006
      - 5900:5900/tcp
      - 5900:5900/udp
    stop_grace_period: 2m

    volumes:
      - /data1/mac/13:/storage

logs

macos  | ❯ Starting macOS for Docker v1.18...
macos  | ❯ For support visit https://github.com/dockur/macos
macos  | ❯ CPU: 12th Gen Intel Core i5 12400 | RAM: 27/63 GB | DISK: 375 GB (ext4) | KERNEL: 4.18.0-553.6.1.el8.x86_64...
macos  | 
macos  | ❯ Building boot image...
macos  | ❯ Booting macOS using QEMU v9.2.0...
macos  | 
3h
3h
3h
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0xA,0x0): Not Found
macos  | BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos  | BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos  | #[EB|LOG:EXITBS:END] _
macos  | #[EB.BST.FBS|-]
macos  | #[EB|B:BOOT]
macos  | #[EB|LOG:HANDOFF TO XNU] _
macos  | ======== End of efiboot serial output. ========

@ncheng89
Copy link
Author

It seems that the IP address is not obtained.

image

Container internal logs

root@4a1b4289b8e2:/# ps -aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.0   2568  1104 ?        Ss   09:19   0:00 /usr/bin/tini -s /run/entry.sh
root           7  214  7.0 9287660 4611224 ?     Sl   09:19   8:22 qemu-system-x86_64 -nodefaults -cpu host,kvm=on,l3-cache=on,+hypervisor,migratable=no,vendor=GenuineIntel,vmware-cpuid-freq=on,-pdpe1gb -smp 4,sockets=1,dies=1,cores=4,
root          68  0.0  0.0  13760  1328 ?        Ss   09:19   0:00 nginx: master process nginx -e stderr
www-data      69  0.0  0.0  14084  3040 ?        S    09:19   0:00 nginx: worker process
nobody       347  0.0  0.0  10168   496 ?        S    09:19   0:00 /usr/sbin/dnsmasq --dhcp-range=20.20.20.21,20.20.20.21 --dhcp-host=00:16:CB:57:A8:B3,,20.20.20.21,QEMU,infinite --dhcp-option=option:netmask,255.255.255.0 --dhcp-option
root         429  0.0  0.0   4324  3796 pts/0    Ss   09:21   0:00 /bin/bash
root         536  0.0  0.0   6360  3876 pts/0    R+   09:23   0:00 ps -aux
root@4a1b4289b8e2:/# ping github.com -c 3
PING github.com (20.205.243.166) 56(84) bytes of data.
64 bytes from 20.205.243.166: icmp_seq=1 ttl=112 time=94.4 ms
64 bytes from 20.205.243.166: icmp_seq=2 ttl=112 time=91.6 ms
64 bytes from 20.205.243.166: icmp_seq=3 ttl=112 time=94.4 ms

--- github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 91.563/93.457/94.411/1.339 ms
root@4a1b4289b8e2:/# 

@ncheng89
Copy link
Author

It seems that the mac cannot correctly handle the ip address responded by dhcp, and then keeps requesting dhcp

dnsmasq logs

Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 client provides name: iMac-Pro
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 DHCPDISCOVER(dockerbridge) 00:16:cb:3b:a6:d8 
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 tags: known, dockerbridge
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 DHCPOFFER(dockerbridge) 20.20.20.21 00:16:cb:3b:a6:d8 
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 requested options: 1:netmask, 121:classless-static-route, 3:router, 
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 requested options: 6:dns-server, 15:domain-name, 108:ipv6-only, 
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 requested options: 114, 119:domain-search, 252, 95, 44:netbios-ns, 
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 requested options: 46:netbios-nodetype
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 next server: 20.20.20.1
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  1 option: 53 message-type  2
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 54 server-identifier  20.20.20.1
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 51 lease-time  90d
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 58 T1  45d
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 59 T2  78d18h
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 28 broadcast  20.20.20.255
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option:  3 router  20.20.20.1
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option:  6 dns-server  8.8.8.8
Dec 27 07:18:03 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option:  1 netmask  255.255.255.0
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 available DHCP range: 20.20.20.21 -- 20.20.20.30
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 client provides name: iMac-Pro
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 DHCPDISCOVER(dockerbridge) 00:16:cb:3b:a6:d8 
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 tags: known, dockerbridge
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 DHCPOFFER(dockerbridge) 20.20.20.21 00:16:cb:3b:a6:d8 
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 requested options: 1:netmask, 121:classless-static-route, 3:router, 
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 requested options: 6:dns-server, 15:domain-name, 108:ipv6-only, 
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 requested options: 114, 119:domain-search, 252, 95, 44:netbios-ns, 
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 requested options: 46:netbios-nodetype
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 next server: 20.20.20.1
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  1 option: 53 message-type  2
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 54 server-identifier  20.20.20.1
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 51 lease-time  90d
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 58 T1  45d
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 59 T2  78d18h
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option: 28 broadcast  20.20.20.255
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option:  3 router  20.20.20.1
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option:  6 dns-server  8.8.8.8
Dec 27 07:18:12 dnsmasq-dhcp[514]: 3317544740 sent size:  4 option:  1 netmask  255.255.255.0

@puteulanus
Copy link

I started AdGuardHome inside the docker and configured DHCP, the VM get the IP successfully.

My guess is that the problem may be with dnsmasq.

QQ_1735297522295

QQ_1735297529045

QQ_1735297256771

@kroese
Copy link
Contributor

kroese commented Dec 27, 2024

Mmm.. would be very interesting to know why macOS refuses to accept the IP from dnsmasq but allows it from AdGuardHome.

@ncheng89
Copy link
Author

It is indeed a DHCP problem, because after I installed the macOS system, I still couldn't get the DHCP IP address. By manually setting the IP address, I can communicate normally. This is how I captured the packet

12:04:37.695153 c2:9e:25:8e:44:6d > 00:16:cb:3b:a6:d8, ethertype ARP (0x0806), length 42: Request who-has 20.20.20.21 tell 20.20.20.1, length 28
12:04:38.718151 c2:9e:25:8e:44:6d > 00:16:cb:3b:a6:d8, ethertype ARP (0x0806), length 42: Request who-has 20.20.20.21 tell 20.20.20.1, length 28
12:04:39.742157 c2:9e:25:8e:44:6d > 00:16:cb:3b:a6:d8, ethertype ARP (0x0806), length 42: Request who-has 20.20.20.21 tell 20.20.20.1, length 28
12:04:40.634747 00:16:cb:3b:a6:d8 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 169.254.15.150 tell 0.0.0.0, length 28
12:04:40.959942 00:16:cb:3b:a6:d8 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 169.254.15.150 tell 0.0.0.0, length 28
12:04:41.282032 00:16:cb:3b:a6:d8 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 169.254.15.150 tell 0.0.0.0, length 28
12:04:41.607276 00:16:cb:3b:a6:d8 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 169.254.15.150 tell 169.254.15.150, length 28
12:04:41.931347 00:16:cb:3b:a6:d8 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 169.254.15.150 tell 169.254.15.150, length 28
12:04:42.257073 00:16:cb:3b:a6:d8 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 169.254.15.150 tell 169.254.15.150, length 28
12:04:45.886157 c2:9e:25:8e:44:6d > 00:16:cb:3b:a6:d8, ethertype ARP (0x0806), length 42: Request who-has 20.20.20.21 tell 20.20.20.1, length 28
12:04:46.910159 c2:9e:25:8e:44:6d > 00:16:cb:3b:a6:d8, ethertype ARP (0x0806), length 42: Request who-has 20.20.20.21 tell 20.20.20.1, length 28
12:04:47.934162 c2:9e:25:8e:44:6d > 00:16:cb:3b:a6:d8, ethertype ARP (0x0806), length 42: Request who-has 20.20.20.21 tell 20.20.20.1, length 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants