AlexSSD7 / linsk

📂 Access Linux-native file systems (including LVM and LUKS) on Windows and macOS with help of a lightweight Alpine Linux VM. x86/ARM supported.
GNU General Public License v3.0
297 stars 13 forks source link

Failed to set up Alpine Linux #30

Closed divin closed 2 weeks ago

divin commented 2 weeks ago

On macOS 15.1 (Apple M1) I get the following error when running linsk build:

time=2024-11-01T18:30:47.475+01:00 level=ERROR msg="Failed to set up Alpine Linux" caller=storage subcaller=imgbuilder error="run setup cmd (log: 'udhcpc: started, v1.36.1\\nudhcpc: broadcasting discover\\nudhcpc: broadcasting select for 10.0.2.15, server 10.0.2.2\\nudhcpc: lease of 10.0.2.15 obtained from 10.0.2.2, lease time 86400\\nwget: bad address 'mirrors.alpinelinux.org'\\nWarning! No mirror found'): Process exited with status 1"

Here is the full log of the command:

time=2024-11-01T18:30:16.610+01:00 level=INFO msg="Starting to download file" caller=storage from=https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/aarch64/alpine-virt-3.18.3-aarch64.iso to=/Users/divin/.linsk/alpine-3.18.3-aarch64.img
time=2024-11-01T18:30:21.301+01:00 level=INFO msg="Successfully downloaded file" caller=storage from=https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/aarch64/alpine-virt-3.18.3-aarch64.iso to=/Users/divin/.linsk/alpine-3.18.3-aarch64.img out-size="65 MB"
time=2024-11-01T18:30:21.303+01:00 level=INFO msg="Starting to download file" caller=storage from=https://github.com/qemu/qemu/raw/86305e864191123dcf87c3af639fddfc59352ac6/pc-bios/edk2-aarch64-code.fd.bz2 to=/Users/divin/.linsk/edk2-aarch64-code.fd
time=2024-11-01T18:30:22.523+01:00 level=INFO msg="Successfully downloaded file" caller=storage from=https://github.com/qemu/qemu/raw/86305e864191123dcf87c3af639fddfc59352ac6/pc-bios/edk2-aarch64-code.fd.bz2 to=/Users/divin/.linsk/edk2-aarch64-code.fd out-size="67 MB"
time=2024-11-01T18:30:22.524+01:00 level=INFO msg="Building VM image" caller=storage tags=3.18.3-aarch64 overwriting=false dst=/Users/divin/.linsk/3.18.3-aarch64-linsk1.qcow2
time=2024-11-01T18:30:22.538+01:00 level=WARN msg="Using unrestricted VM networking" caller=storage subcaller=imgbuilder subcaller=vm
time=2024-11-01T18:30:22.542+01:00 level=INFO msg="Booting the VM" caller=storage subcaller=imgbuilder subcaller=vm
time=2024-11-01T18:30:31.563+01:00 level=INFO msg="The VM is up, setting it up" caller=storage subcaller=imgbuilder subcaller=vm
time=2024-11-01T18:30:42.112+01:00 level=INFO msg="The VM is ready" caller=storage subcaller=imgbuilder subcaller=vm
time=2024-11-01T18:30:42.143+01:00 level=INFO msg="VM OS installation in progress" caller=storage subcaller=imgbuilder
time=2024-11-01T18:30:47.475+01:00 level=ERROR msg="Failed to set up Alpine Linux" caller=storage subcaller=imgbuilder error="run setup cmd (log: 'udhcpc: started, v1.36.1\\nudhcpc: broadcasting discover\\nudhcpc: broadcasting select for 10.0.2.15, server 10.0.2.2\\nudhcpc: lease of 10.0.2.15 obtained from 10.0.2.2, lease time 86400\\nwget: bad address 'mirrors.alpinelinux.org'\\nWarning! No mirror found'): Process exited with status 1"
time=2024-11-01T18:30:47.476+01:00 level=WARN msg="Canceling the VM context" caller=storage subcaller=imgbuilder subcaller=vm
time=2024-11-01T18:30:47.537+01:00 level=WARN msg="Sending poweroff command to the VM" caller=storage subcaller=imgbuilder subcaller=vm
time=2024-11-01T18:30:47.545+01:00 level=INFO msg="Shutting the VM down safely" caller=storage subcaller=imgbuilder subcaller=vm

Steps I have done:

  1. Download pre-build binary, in my case the linsk_darwin_arm64_v0.2.2
  2. Renamed binary to linsk
  3. Make the binary executable with chmod +x linsk
  4. Then run ./linsk build

Of course all steps after that will fail as the image is corrupted. I guess the URL for the image is broken?

divin commented 2 weeks ago

Oh, I just noticed that there were some similar issues, see #1 and #15. I’ll close this issue since changing the DNS appears to have resolved the problem! 😄