Microsoft yatoburitsa WSL2, iyo Windows subsystem yeLinux

Windows_WSL

Sezvo isu takanga takurukura mwedzi wapfuura nezve WSL2 pamwe nezvimiro zvaizoitwa mukati mayo pakuvhurwa kwayo, Microsoft yazivisa kuumbwa kweyekuyedza nyowani kweWindows Insider (kuvaka 18917), kusanganisira iyo WSL2 dura (Windows Subsystem yeLinux).

WSL2 chidimbu chinogonesa kuvhurwa kweLinux mafaira anoshanda paWindows. WSL Yechipiri Edition inozvipatsanura pachayo nekuendesa izere-yakaputirwa Linux kernel, pane iyo pane-iyo-inobhururuka emulator iyo inoshandura Linux system inoshevedza muWindows system mafoni.

Nyaya inoenderana:
Microsoft yakazivisa WSL2 neyakajairwa Linux kernel

Kushandisa yakajairwa Linux kernel inobvumira WSL2 kuwana kuzere Linux kuenderana padanho rekufona rehurongwa uye uve nechokwadi chekuti midziyo yeDocker inogona kufamba mushe paWindows, pamwe nekushandisa rutsigiro rwemafaira masisitimu anoenderana neiyo FUSE mashandiro.

Nezve WSL2

Kuenzaniswa neshanduro yapfuura (WSL1), iyi yechipiri vhezheni (WSL2) yakavandudza zvakanyanya kuita kweI / O uye faira system mashandiro.

Semuenzaniso, kana uchiburitsa dura reWSL2 inokurumidza kakapetwa makumi maviri kupfuura WSL20, uye kana kumwe kuita kwakasiyana kuchiitwa pairi, senge "git clone", "npm install", "apt install" uye apt kugadzirisa "1 kusvika Ka2.

WSL2 inopa chinhu chinovakirwa paLinux kernel 4.19 kumhanya munzvimbo yeWindows uchishandisa muchina chaiwo watove kushandiswa muAzure.

Kune mamwe maratidziro eruzivo rwevashandisi aunozoona paunotanga kushandisa WSL 2.

Kugadziridzwa kweLinux kernel kunoendeswa kuburikidza neWindows yekuvandudza mashini uye inoedzwa paMicrosoft inoramba ichiwedzera zvivakwa.

Shanduko dzese dzakagadzirirwa kernel kusangana neWSL vimbiso yekuburitsa pasi pemahara GPLv2 rezinesi.

Zvigadzirwa zvakagadzirirwa zvinosanganisira optimizations yekudzikisa kernel yekutanga nguva, kudzikisa ndangariro kushandiswa, uye kusiya yakaderera seti inodiwa seti yevatyairi uye masisitimu epasi mune kernel.

Chii chitsva muWSL2?

Tsigiro yeiyo yapfuura vhezheni yeWSL1 inochengetedzwa uye ese masisitimu anogona kushandiswa zvakafanana, zvinoenderana nezvinodiwa nemushandisi. WSL2 inogona kuita sekutsiva pachena kweWSL1.

Sezvo muWSL1, iyo mushandisi nzvimbo yezvinhu inoisirwa zvakasiyana uye inoenderana nemaseti kubva kwakasiyana kusiyaniswa. Semuenzaniso, pZvekuisa muWSL mune dhairekitori reMicrosoft, vamwe vakakurudzira migove saizvozvowo Ubuntu, Debian, Kali Linux, Fedora, Alpine, SUSE, uye openSUSE.

Iyo nharaunda inoitwa pane yakasarudzika dhisiki mufananidzo (VHD) ine ext4 faira sisitimu uye chaiyo network network adapta.

Kuti utaure neLinux kernel yakatsanangurwa muWSL2, diki yekutanga script inoda kuverengerwa mukuparadzira chinja maitiro ebhutsu.

Iwo mutsva murairo "wsl -set-vhezheni" yakurudzirwa kuti ichinje nzira dzekuparadzira, uye rairo "wsl -set-default-vhezheni" kusarudza iyo default vhezheni yeWSL.

Zvakare iyi vhezheni itsva yeWSL2 yakaiswa muWindows kuvaka 18917 kuvaka, faira system zvinowedzeredzwa zvakasimbiswa nekuti mukati mavo kubata kweizvi kwakagadziriswa kuita kuti zviwanikwe kwavari nekukurumidza.

Tinonzwisisa kuti tapedza makore matatu apfuura tichikuudza kuti uise mafaera ako paC drive paunenge uchishandisa WSL 1, asi izvi hazvisizvo paWSL 2. Kuti unakirwe nekukurumidza faira faira kupinda muWSL 2, mafaira aya anofanira iva mukati. Linux midzi faira system.

Imwe shanduko muWSL2 ishanduko mukuvakwa kuburikidza nehunyanzvi hwekuona.

Sezvo WSL 2 ikozvino ichimhanya mumuchina chaiwo, iyo IP kero yemuchina iwoyo chaiwo inoda kushandiswa kuwana Linux network application kubva paWindows, uye zvinopesana.

Chinangwa chedu ndechekuita kuti WSL 2 inzwe seWSL 1, uye tinotarisira kunzwa mhinduro yako kuti tingaite nani.

mabviro: https://devblogs.microsoft.com

 


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Mhinduro, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   Guillermo akadaro

    Chinyorwa ichi chinoramba chichivhiringidza "Linux" (kernel) neGNU / Linux (inoshanda sisitimu) kusvika padanho rekuti hapana chinonzwisiswa. Zvakanyorwa zvisina kunaka.