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

[Feature]: For China Users Internet Problems! 安装时出现网络错误的方案 #135

Open
tylzh97 opened this issue Nov 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tylzh97
Copy link

tylzh97 commented Nov 17, 2024

Is your proposal related to a problem?

This is an excellent project; however, due to China's internet restrictions, we cannot easily use this project to complete macOS installations. Through my testing, I found that during installation, it is not possible to use Alibaba's DNS service (223.5.5.5). This is because Alibaba DNS redirects swcdn.apple.com to swcdn.apple.com.w.alikunlun.com, which prevents the installation from completing. Whether downloading directly or via a VPN (many VPN providers default to using this DNS), this DNS cannot be used!
A solution is as follows(Using Google DNS by):

这是一个非常好的项目, 但是由于中国网络的原因, 我们无法简单的使用此项目完成苹果系统的安装. 经过我的测试, 发现安装此项目时, 不能够使用alibaba提供的dns服务, (223.5.5.5). 因为alibaba dns 会将 swcdn.apple.com 重定向到 swcdn.apple.com.w.alikunlun.com, 这会导致无法完成系统的安装. 不论是直接下载还是通过VPN下载(很多VPN服务提供商都会默认使用该dns), 都不能够使用此dns!
一个比较好的解决方法如下(即在 docker-compose 中指定 DNS 为 Google DNS):

Describe the solution you'd like.

Specified DNS:

services:
  macos:
    image: dockurr/macos
    container_name: macos
    environment:
      VERSION: "15"
      RAM_SIZE: "16G"
      CPU_CORES: "8"
      DISK_SIZE: "256G"
    dns:
      # 不能够使用阿里 DNS, 阿里会莫名其妙的将 swcdn.apple.com 重定向到 swcdn.apple.com.w.alikunlun.com, 后者会导致 reinstall 系统失败
      - 8.8.8.8
      - 8.8.4.4
    volumes:
      - ./osx/v15/:/storage
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 5900:5900/tcp
      - 5900:5900/udp
    stop_grace_period: 2m

Describe alternatives you've considered.

None

Additional context

No response

@tylzh97 tylzh97 added the enhancement New feature or request label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant