Kunyangwe kuisa kugovera kweLinux padivi kana panzvimbo yeWindows zviri nyore, Inogona kuva yakaoma zvishoma kune avo vanozviita kekutanga. Vanogonawo kuda kuve nechokwadi vasati vatora kusvetuka.
Muchinyorwa ichi tichatsanangura nzira yekuisa linux pahwindo, Isu tichazviita takatarisana Windows 10 kunyangwe nzira yekuzviita haina kunyanya kusiyana mune itsva Windows 11.
Iyo Linux yakaiswa sei paWindows
Pane nhanho yapfuura yatisingakwanise kutsanangura nekuti inosiyana zvichienderana nerudzi uye modhi yebhodhi reamai uye microprocessor. Ndiyo nzira yekumisikidza iyo virtualization mode. Asi chokwadi Google ndiyo mhinduro.
Mirayiridzo inotevera inotaura nezveshanduro dzazvino dze Windows 10. Kuti titarise kuti ndeipi vhezheni yatakaisa isu tinogona kuzviita kubva ku Command Prompt chishandiso nemurairo winver
Hyper-V
Ngatitangei nekutsanangura dzimwe pfungwa
- Virtualization: Ndiyo maitiro ekumhanyisa sisitimu yekushandisa pakombuta ine maitiro anoteedzerwa nesoftware, asi iyo inonzwa chaiyo kune inoshanda sisitimu. Kunyangwe mamwe maturusi achibvumira mafaera kuti achinje pakati peiyo virtualized inoshanda sisitimu neanotambira, yekutanga haina mukana kune yekupedzisira.
- Hypervisor: Icho chirongwa chekugadzira uye kumhanya chaiwo michina. Kune marudzi maviri adzo: ayo anomhanyisa muenzi chaiwo muchina akananga pahardware yesystem, achizadzisa basa reiyo sisitimu yekushandisa, uye ayo anoita senge echinyakare maapplication sezvo anogona kutangwa uye kumiswa seyakajairwa chirongwa.
- Virtual muchina: Ndiyo yakateedzerwa komputa system inomhanya pamusoro peimwe system. Muchina chaiwo unogona kuwana chero nhamba yezviwanikwa zvakaganhurirwa chete nezviwanikwa zveiyo komputa inotambira.
Hyper-V ndiyo yakavakirwa-mukati chishandiso mukati Windows 10 uye 11 iyo ine basa rekugadzira nekumhanyisa machina chaiwo ayo anogona kuwedzerwa madhisiki akadai sedhisiki uye mamwe.
Software uye hardware zvinodiwa kuti umhanye Hyper-V
Mavhezheni anotsigirwa eWindows ndeaya:
- Windows 10 Enterprise
- Windows 10 Pro
- Windows 10 Dzidzo
Izvo zvishoma zvinodiwa zvehardware ndezvi:
- 64-bit processor ine yechipiri level kero kududzira (SLAT).
- CPU tsigiro yeVM Monitor Mode Extension (VT-x paIntel CPUs).
- Memory ye4 GB kana kupfuura kuti isangane nezvinodiwa zvishoma zveWindows uye iyo virtualized inoshanda sisitimu.
Kuona kuenderana kwehardware isu tinotevera maitiro anotevera:
- Tinonyora
cmd.exe
mubhawa yekutsvaga. - tinonyora
systeminfo
- Tiri kutsvaga chikamu Hyper-V Zvinodiwa.
Kana tangosimbisa kuti zvese zvinodiwa zvazadzikiswa, tinonyora mubhaa yekutsvaga Abatidza kana kudzima zvinhu zveWindows. Inoshandawo kunyora Hyper-V.
Sezvinoreva zita iri, Vhura kana kuita windows anoita izvozvo chete. Isu tinodzika pasi rondedzero kusvika tawana bhokisi rinoenderana neHyper-V uye tinya pa Bvuma Kana iyo activation yapera, tinofanira kutangazve komputa.
Kugadzira virtual machines
Kutanga neshanduro 1709 ye Windows 10, inozivikanwawo seFall Creators Update, musiki wemashini chaiwo anosanganisirwa asingade kutanga maneja. Tinotanga kutarisa mumenyu Kurumidza kuvakwa kweHyper-V.
Mugadziri anotibvumira kusarudza pakati pedzimwe shanduro dzeUbuntu kana kushandisa mifananidzo yakatorwa nesu. Rangarira kuti izwi rekuti mufananidzo muchirevo chechinyorwa rino rinoreva mufananidzo chaiwo wefaira rakadhawunirodha zvine chekuita neiyo yekutanga server, uye kwete kune graphic.
Kana tikasarudza kushandisa imwe yemifananidzo inopihwa neHyper-V, tinya pairi uyezve mukati Gadzira chaiwo muchina.
Kana ngatishandisei mufananidzo wakatorwa nesu, tinya pa Local installation source, Isu tinobvisa bhokisi rinoratidza kuti Windows ichamhanya uye tinya pa Shandura iyo yekuisa sosi. Tinogona kusarudza mafaira mu .vmk kana .iso format.
Kushandiswa kwemifananidzo yatinopihwa neHyper-V hazvireve kuchengetedza nguva yakawanda sezvo uchifanira kuidhawunirodha nekuiisa.
Kubvisa iyo chaiyo muchina isu tinofanirwa kushandisa inotevera maitiro:
- Kubva pane menyu tinotanga iyo Hyper-V Maneja.
- Isu tinoisa pointer pamushini chaiwo uye nebhatani rerudyi tinosarudza Delete.
Tinosimbisa nekudzvanya pa Bvisa pahwindo rinovhura.
Windows Subsystem ye Linux 2
Kunyangwe iyo yakagadzirwa nevagadziri mundangariro, Windows Subsystem yeLinux (WSL) isarudzo yakanaka kune vashandisi vatsva kuti vajairire kushandisa iyo Linux terminal. NeWSL tinogona kusarudza mamwe anonyanya kufarirwa Linux kugovera (pasina desktop) uye kumhanya akawanda emirairo mutsara maturusi, zvishandiso uye maapplication asingade graphical interface. zvakananga muWindows uye pasina kuisa muchina chaiwo kana kuisa Linux pane imwe chikamu kana dhisiki.
Zvimwe zvehunhu hwayo ndeizvi:
- Sarudza kubva kune mamwe anonyanya kufarirwa kugovera Linux, shanduro dzakasiyana dzeUbuntu, Debian, Fedora, openSUSE, Suse Linux pakati pezvimwe zviripo. Vamwe ndevemahara uye vamwe vanobhadharwa.
- Mhanya chishandiso chinoshandiswa zvakanyanyacommand line s inosanganisira grep, sed, awk kana mamwe mabhanari eELF-64.
- Shandisa Bash shell scripts uye command line applications yeLinux senge vim, emacs uye tmux.
- Nyora uye mhanyisa zvirongwa mumitauro yekuronga seNodeJS, Javascript, Python, Ruby, C/C++, C# F#, Rust uye Go pakati pevamwe.
- Bata ne server tekinoroji uye dhatabhesi akadai seSSHD, MySQL, Apache, lighttpd, MongoDB uye PostgreSQL.
- Isa zvirongwa kubva kune repositories yeLinux kugovera vachishandisa yavo yekuzvarwa package maneja.
- Tanga maWindows applications kubva kuLinux.
Kuisa Windows Subsystem yeLinux 2
Mirayiridzo iri pazasi ndeye Windows 10 vhezheni 2004 uye gare gare (vaka 19041 uye gare gare) kana Windows 11.
Kuisa iyo Windows Subsystem yeLinux isu tinofanira kutevedzera zvinotevera maitiro:
- Tiri kutsvaga Kurumidza pamenyu.
- Nebhatani rerudyi tinosarudza Kuita semutongi.
- Tinonyora
wsl --install
.
MuWSL 2 Microsoft yakaita kuti kuisirwa kuve nyore uye nemurairo uyu zvinodikanwa zvekusarudza zvinogoneswa uye yazvino vhezheni yeLinux kernel inotorwa.Mapepa eMicrosoft anoratidza kuti Ubuntu inoiswa neiyo default. Nekudaro, mune yangu hazvina kudaro uye zvinondiendesa kuchitoro cheapp.
Tinogona kuisa kugovera nenzira inotevera:
wsl --list --online
Kuti utarise runyorwa rwekugoverwa kuripo
wsl --install -d <Nombre de la distribución>
Kuisa imwe yacho.
Muchitoro cheMicrosoft application tine dzimwe sarudzo, iwe unongofanira kuzvitsvaga (Tinonyora Linux muinjini yekutsvaga) uye woiisa zvakajairika. Ipapo tinoivhura kubva kumenyu sekunge yaive yakajairika application.
Patinotanga kugovera kudhawunirodha kekutanga, hwindo rekupedzisira rinovhurika uye isu tichakumbirwa kumirira kuti mafaera asaomerwe uye achengetwe pakombuta yedu. Kana izvi zvapera isu tichafanirwa kugadzira yedu mushandisi account.
Kana usiri kujairana neLinux ramba uchifunga izvozvo kana iwe waisa zita rako rekushandisa mune terminal iwe hausi kuona iyo cursor ichifamba.
Exclusive features of Windows Subsystem for Linux in Windows 11
Kuiswa uye kushandiswa kwezvishandiso zvine graphical interface
Ndataura pamusoro apa kuti zvikumbiro zvine graphical interface hazvigone kushandiswa. Izvi zvinoreva Windows 10 uye izvo Microsoft inoshuma zviri pamutemo muzvinyorwa zvayo.
Tsigiro yepamutemo yegraphical interface application inowanikwa kune shanduro Windows 11 Vaka 22000 kana kupfuura. Senhanho yapfuura, kuiswa kwemadhiraivha chaiwo eWSL2 kunodiwa. Mirayiridzo inopiwa panguva ino ye Intel, AMD y NVIDIA.
Zvishandiso zvakaiswa zvichaonekwa muWindows menyu pazasi pezita rekugovera.n uye akaiswa nemirairo yakatarwa nekugovera ivo pachavo.
Mount disks mune zvekuzvarwa Linux mafomati asingazivikanwe neWindows
Zvakare chimwe chinhu chinowanikwa Windows 11 Vaka 22000 kana kupfuura. Isu tinotevera nzira inotevera:
- Isu tinovhura PowerShell
- Tinonyora
GET-CimInstance -query "SELECT * from Win32_DiskDrive"
Chiziviso chinowanikwa pasi pekoromo ID yemudziyo. Isu tinoisa dhisiki nemurairo:
wsl --mount <DeviceID>
Kuisa partition tinonyora:
wsl -gomo -bare
Ipapo tinovhura WSL tonyora;
lsblk
Kukwidza partition tinonyora
wsl --mount <DeviceID> --partition <Número de partición> --type <Formato de archivo>
Kuchengeta mupfungwa
Virtualization uye kushandiswa kweWindows Subsystem yeLinux vanotitendera kuti tijairane neLinux nharaunda, asi kwete kuti ichashanda sei nehardware yedu. Chero zvazvingava, inhanho yekutanga yakanaka chaizvo kana tichida kufamba zvishoma nezvishoma. Kuti tive nekunzwisisa zviri nani kuti hardware yedu inopindirana sei, tinogona kuisa kugovera kweLinux pane yekunze disk kana pane flash drive ine simba rakakwana.
Isu tinogona kuwana rumwe ruzivo nezve maturusi akataurwa muchinyorwa mune anotevera link:
Yepamutemo Windows Subsystem yeLinux 2 Zvinyorwa
Windows! Fo plague! hehe
uye hazvizove nani kuiisa mumushini chaiwo
Ndinotaura dzimwe nzira. Dai ndaida kuudza vanhu zvekuita ndaibva ndatanga sect ndotora chegumi.