Open shmish111 opened 4 years ago
/cc @nicknovitski
Also hitting this here
Likewise, kernel 19.6.0 Darwin, Catalina 10.15.7
I'm guessing this no longer works on Catalina. I have 10.15.7 as well.
When running the command in the plist directly, I see the following:
❯ /nix/store/z2qfwj97dh2yc43x42pbrp7i1qmhbrp4-shellchecked-nix-linuxkit-builder
+ PATH=/nix/store/acnfbicd84bnya2l2dq868b5l482qihw-coreutils-8.30/bin:/nix/store/2l2801nggm6n8ax4ykbywfa134gj1s9q-openssh-7.9p1/bin:/nix/store/vgsna6b9kyiaw1zj96sds1vhvrh3vly2-gnutar-1.30/bin
+ BOOT_FILES=/nix/store/38nc5jpicqrc00brxg9bwz55q7paswyv-linuxkit-kernel-files
+ VPNKIT_ROOT=/nix/store/kl9xysb9krrirl8jcfbn57vfp0i2fbzy-vpnkit-75434cd
+ HYPERKIT_ROOT=/nix/store/8w5jc0dk66i3ijiq8q249f2r3q5brvl8-hyperkit-6f6edf
+ LINUXKIT_ROOT=/nix/store/0bjpd644ammp5rqq81zcx4wn7r9q3y8x-linuxkit-0.2-bin
+ CONTAINER_IP=192.168.65.2
+ NIX_LINUXKIT_RUNNER=/nix/store/5dicbjhpj4x9da638lkh9fbds8l7jh9g-rust_nix-linuxkit-runner-0.1.0
+ DIR=/Users/groodt/.cache/nix-linuxkit-builder/
+ FEATURES=big-parallel
+ SIZE=80
+ CPUS=1
+ MEM=4096
+ VERBOSE=
+ cfg_path=/Users/groodt/.cache/nix-linuxkit-builder//configure
+ '[' -f /Users/groodt/.cache/nix-linuxkit-builder//configure ']'
+ echo 'Configuration is loaded from /Users/groodt/.cache/nix-linuxkit-builder//configure'
Configuration is loaded from /Users/groodt/.cache/nix-linuxkit-builder//configure
+ . /Users/groodt/.cache/nix-linuxkit-builder//configure
++ FEATURES=kvm,big-parallel
++ SIZE=80
++ MEM=4096
++ VERBOSE=
+ echo
+ echo 'Reconfigure with nix-linuxkit-configure'
Reconfigure with nix-linuxkit-configure
+ echo
+ echo 'Current configuration options:'
Current configuration options:
+ echo FEATURES=kvm,big-parallel
FEATURES=kvm,big-parallel
+ echo SIZE=80
SIZE=80
+ echo MEM=4096
MEM=4096
+ echo VERBOSE=
VERBOSE=
+ exec /nix/store/5dicbjhpj4x9da638lkh9fbds8l7jh9g-rust_nix-linuxkit-runner-0.1.0/bin/nix-linuxkit-runner --linuxkit /nix/store/0bjpd644ammp5rqq81zcx4wn7r9q3y8x-linuxkit-0.2-bin/bin/linuxkit --hyperkit /nix/store/8w5jc0dk66i3ijiq8q249f2r3q5brvl8-hyperkit-6f6edf/bin/hyperkit --vpnkit /nix/store/kl9xysb9krrirl8jcfbn57vfp0i2fbzy-vpnkit-75434cd/bin/vpnkit --ip 192.168.65.2 --disk-size 80 --state-root /Users/groodt/.cache/nix-linuxkit-builder/ --cpus 1 --memory 4096 --kernel-files /nix/store/38nc5jpicqrc00brxg9bwz55q7paswyv-linuxkit-kernel-files/nix
Possibly fine error removing the pidfile: Os { code: 2, kind: NotFound, message: "No such file or directory" }
vpnkit: [INFO] Setting handler to ignore all SIGPIPE signals
vpnkit: [INFO] Version %VERSION% from %VCS_COMMIT_ID%
vpnkit: [INFO] System SOMAXCONN is 128
vpnkit: [INFO] Will use a listen backlog of 128
vpnkit: [INFO] Starting port forwarding server on port_control_url:"fd:4" vsock_path:"/Users/groodt/.cache/nix-linuxkit-builder/nix-state/connect"
vpnkit: [INFO] Removed connection limit
vpnkit: [WARNING] There is no database: using hardcoded network configuration values
vpnkit: [INFO] No DNS names will map to local IP 192.168.65.1
vpnkit: [INFO] 2 upstream DNS servers are configured
vpnkit: [INFO] Disabling transparent HTTP redirection
vpnkit: [INFO] Updating resolvers to use host resolver
vpnkit: [WARNING] No secure random number generator available
vpnkit: [INFO] Add(3): DNS configuration changed to: use host resolver
vpnkit: [INFO] DNS names [ vpnkit.host ] will map to local IP 192.168.65.1
vpnkit: [INFO] Will use the host's DNS resolver
vpnkit: [INFO] Configuration server_macaddr = f6:16:36:bc:f9:c6; max_connection = None; dns_path = None; dns = ; resolver = Host; domain = None; allowed_bind_addresses = 0.0.0.0; gateway_ip = 192.168.65.1; lowest_ip = 192.168.65.2; highest_ip = 192.168.65.254; extra_dns = ; dhcp_json_path = None; dhcp_configuration = None; mtu = 1500; http_intercept = None; http_intercept_path = None; port_max_idle_time = 30; host_names = vpnkit.host
vpnkit: [INFO] Vmnet.Server.negotiate: received { magic = VMN3T; version = 22; commit = 6f6edf716b893544c9e0ef3032459180560f0333 }
vpnkit: [INFO] /etc/hosts file has bindings for localhost broadcasthost localhost kubernetes.docker.internal
vpnkit: [INFO] Vmnet.Server.negotiate: received Preferred_ipv4 1a21efdf-af05-4074-8dc0-be5f392e3c56 192.168.65.2
vpnkit: [INFO] Client requested IP 192.168.65.2
virtio-net-vpnkit: magic=VMN3T version=22 commit=0123456789012345678901234567890123456789�
vpnkit: [INFO] Vmnet.Server.negotiate: sending { mtu = 1500; max_packet_size = 1550; client_macaddr = 02:50:00:00:00:01 }
vpnkit: [INFO] Vmnet.Server.listen: rebinding the primary listen callback
vpnkit: [INFO] Vmnet.Server.listen: starting event loop
vpnkit: [INFO] Connected Ethernet interface f6:16:36:bc:f9:c6
vpnkit: [INFO] Client mac: 02:50:00:00:00:01 server mac: f6:16:36:bc:f9:c6
vpnkit: [INFO] TCP/IP ready
vpnkit: [INFO] TCP/IP stack connected
vpnkit: [INFO] There is no introspection server requested. See the --introspection argument
vpnkit: [INFO] No diagnostics server requested. See the --diagnostics argument
vsock init 3:0 = /Users/groodt/.cache/nix-linuxkit-builder/nix-state, guest_cid = 00000003
rdmsr to register 0x64e on vcpu 0
rdmsr to register 0x34 on vcpu 0
virtio-net-vpnkit: initialising, opts="path=/Users/groodt/.cache/nix-linuxkit-builder/nix-state/vpnkit_eth.sock,uuid=1a21efdf-af05-4074-8dc0-be5f392e3c56,preferred_ipv4=192.168.65.2"
virtio-net-vpnkit: interface will have uuid 1a21efdf-af05-4074-8dc0-be5f392e3c56
virtio-net-vpnkit: requesting ip 192.168.65.2
virtio-net-vpnkit: Connection established with MAC=02:50:00:00:00:01 and MTU 1500
virtio-9p: initialising path=/Users/groodt/.cache/nix-linuxkit-builder/nix-state/vpnkit_port.sock,tag=port
linkname /Users/groodt/.cache/nix-linuxkit-builder/nix-state/tty
COM1 connected to /dev/ttys004
COM1 linked to /Users/groodt/.cache/nix-linuxkit-builder/nix-state/tty
vpnkit: [ERROR] Vmnet.Server.listen: read EOF so closing connection
vpnkit: [INFO] Vmnet.Server.listen returning Ok()
FATA[0007] Cannot run hyperkit: exit status 2
linuxkit's ending state: ExitStatus(ExitStatus(256))
Bye!
Did anyone manage to get past this?
gave up a long time ago, sorry :(
I installed from the latest README instructions, when running the service I get the following
I did this by running
/nix/store/z2qfwj97dh2yc43x42pbrp7i1qmhbrp4-shellchecked-nix-linuxkit-builder
directly which is what the plist entry was doing.I assume this is a Catalina problem, since most things are recently :)