윈도우즈10에서 WSL로 Alpine Linux 설치

by JOHN

IT
random_image

윈도우즈10에서 WSL로 Alpine Linux 설치

    • 참조 사이트
    • https://docs.microsoft.com/en-us/windows/wsl/install-manual
    • 윈도우즈 버전 확인
      • 윈도우키 + R, winver 명령어를 통해서 윈도우 버전 확인
    • 설치
      • 관리자 권한으로 powershell에서 아래 명령어실행한다.
      1. 윈도우 서브 시스템으로 리눅스를 허용하기 위해 아래 명령어 수행
        1. dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
      1. WSL2 실행할 있는 환경인지 확인
      1. Vitual Machine 기능 활성화 명령 수행
        1. dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
      1. 리눅스 커널 패키지 다운로드 설치
        1. https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
      2. WSL 2 기본 버전으로 설정
        1. wsl --set-default-version 2
        2. 명령어 수행 전에 컴퓨터 리부팅 수행 필요함.
      3. 마이크로 소프트 스토어에서 설치하고자 하는 리눅스 버전 설치
        1. https://aka.ms/wslstore
      • Enter new UNIX username: 나오면 성공한 것임.
    • Trouble Shooting
      • 0x80370102 에러가 발생한 경우
        • Bios 설정에 virtualization 설정을 enable 바꿔야 .
    • 리눅스 관리자 이름/비번 설정
    • Alpine 전체 log

    Temporary directory: C:\Users\xxxx\AppData\Local\Temp\wsl_Alpine_setup

    Downloading   : https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86_64/alpine-minirootfs-3.15.0-x86_64.tar.gz

    To local file : install.tar.gz

    The current working directory is: C:\Users\xxxx\AppData\Local\Temp\wsl_Alpine_setup

    File successfully deleted

    Mime type available

    Begin download

    Cache filename available

    100% [====================]

    End download

    Downloaded OK

    Hash of file install.tar.gz is: XXXXX

     

    Verifying Hash: OK

    Installing, this may take a few minutes...

    Executing bugfixing command: /bin/chmod 755 /

    Executing bugfixing command: /sbin/apk --no-cache add shadow

    fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz

    fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz

    (1/2) Installing linux-pam (1.5.2-r0)

    (2/2) Installing shadow (4.8.1-r1)

    Executing busybox-1.34.1-r3.trigger

    OK: 8 MiB in 16 packages

    Executing bugfixing command: /sbin/apk --no-cache add alpine-base

    fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz

    fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz

    (1/6) Installing ifupdown-ng (0.11.3-r0)

    (2/6) Installing openrc (0.44.7-r5)

    Executing openrc-0.44.7-r5.post-install

    (3/6) Installing alpine-conf (3.13.1-r0)

    (4/6) Installing busybox-suid (1.34.1-r7)

    (5/6) Installing busybox-initscripts (4.0-r5)

    Executing busybox-initscripts-4.0-r5.post-install

    (6/6) Installing alpine-base (3.15.5-r0)

    Executing busybox-1.34.1-r3.trigger

    OK: 11 MiB in 22 packages

    Executing bugfixing command: /bin/sed -i 's/^export PATH/#export PATH/' /etc/profile

    Please create a default UNIX user account. The username does not need to match your Windows username.

    For more information visit: https://aka.ms/wslusers

    Enter new UNIX username: xxxx

     

    To (re-)set root password run `wsl.exe --user root --distribution Alpine passwd`

     

    New password:

    Retype new password:

    passwd: password updated successfully

    Installation successful!

    XXXX:~$


5
Leave a Comment:
Search