0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WSL Centos8Stream

Posted at

Centos8Stream

CentOS-WSL

DL : CentOS8-stream.zip

unzip CentOS8-stream.zip
cd CentOS8-stream
gzip -d rootfs.tar.gz

参考サイトとかは以下のコマンドで「AppData」を利用するものが多いが容量がすくないので
D:driveを設定する。

wsl --set-default-version 2
wsl --import CentOS8-stream "$env:USERPROFILE\AppData\Local\Packages\CentOS8-stream" "$env:USERPROFILE\Downloads\rootfs.tar" --version 2 ; 
wsl -d CentOS8-stream

C:Drive 使わない

mkdir -p D:\AppData\Local\Packages\
wsl --set-default-version 2
wsl --import CentOS8-stream "D:\AppData\Local\Packages\CentOS8-stream" "D:\WORK\wsl\CentOS8-stream\rootfs.tar" --version 2
wsl -d CentOS8-stream

もう使える。以降以下のコマンドで利用できるようになる。
ダウンロードしたファイルなどはすべて削除してもOK

wsl -d CentOS8-stream

以下にファイルシステムが作成されている。

ll D:\AppData\Local\Packages\CentOS8-stream
-rw-a-- 1,392,508,928 Oct 27 20:26:26 ext4.vhdx
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?