Umhlahlandlela we-QEMU: Ungayakha Futhi Uqale Kanjani Imishini Ebonakalayo Ngendlela Eshesha Kakhulu Nelula Kakhulu

QEMU

Ukufaka nokusebenzisa imishini ebonakalayo, abaningi basebenzisa i-VirtualBox. Kuyisoftware yamahhala evela ku-Oracle, futhi ngokwengxenye ikweleta udumo lwayo ngenxa yokuthi ingeyeWindows ne-macOS, ngaphezu kweLinux. Kuzinhlelo ezisebenzisa i-Torvalds kernel siphinde sibe nezinye izinketho ezifana ne-GNOME Boxes, yona esekelwe ku-QEMU. Esizokuchaza lapha ukuthi isetshenziswa kanjani impande, leyo QEMU okuyinto, phakathi kwezinye izinto, engakwazi ukwenza lula umsebenzi wokuhambisa izithombe zezinhlelo zethu ezenziwe ngokoqobo.

Uma siya ku- Ikhasi le-GNOME Boxes, sibona uhlu lwezinto ongazenza. Ngokwesibonelo, dala imishini ebonakalayo kusuka ezithombeni zesistimu yokusebenza ngokuchofoza okumbalwa kwegundane, khawulela izinsiza zememori, qondisa kabusha amadivaysi e-USB emshinini... Konke lokho kuyindlela yokusho ukuthi isixhumanisi noma ngaphambili yezinye isofthiwe. Uma yilokho okufunayo, i-Cajas ilungile. Uma ufuna ukusebenzisa itheminali eyengeziwe noma nganoma yisiphi esinye isizathu, i-QEMU ingaba ngcono.

Ungawakha kanjani umshini obonakalayo nge-QEMU

Inqubo yokudala umshini obonakalayo nge-QEMU Akuqondile kangako njengaleyo evela ku-GNOME Boxes. Kufanele ucace mayelana nokuthi i-QEMU ingasetshenziselwa ini, futhi into engcono kakhulu engingayicabanga ukuthi izoqeda izinkinga ezingase zibangele ukusebenzelana komsebenzisi, njengoba zingekho ku-QEMU. Inqubo izobukeka ngaphezulu noma ngaphansi kanje:

  1. Okokuqala kufanele sifake i-QEMU. Isezinqolobaneni eziningi zokusabalalisa kwe-Linux, ngakho ifakwa kalula ngomyalo wokusabalalisa. Ku-Debian/Ubuntu “sudo apt install qemu”, ku-Fedora nokuphuma kokuphumayo kokuthi “sudo dnf install qemu”, ku-Arch kanye nenzalo yayo “sudo pacman -S qemu”… Kuyafana njalo.
  2. Sithola isithombe se-ISO esifuna ukusisebenzisa, kungaba seseshini ebukhoma noma ukusifaka.
  3. Kutheminali, sibhala okulandelayo, ngokuthi "image.img" okuyigama lesithombe esifuna ukusenza futhi "20G" kube ngusayizi esizosinika wona:
qemu-img dala -f qcow2 image.img 20G
  1. Umyalo odlule uzobe udale ifayela le-IMG elizothatha kancane kakhulu ekuqaleni. Kulelo fayela lapho uhlelo lokusebenza luzolayishwa/lufakwe khona. Ukwenza lokhu, kutheminali sibhala:
qemu-system-x86_64 -enable-kvm -cdrom ubuntu.iso -boot menu=on -drive file=ubuntu.img -m 8G

Echaza umyalo

Okusuka kokungenhla:

  • qemu-system-x86_64 wuhlobo lwesistimu.
  • -vumela-kvm izovula i-KVM.
  • -cdrom ubuntu.iso kubonisa ukuthi isidlali se-CD sizoba naleso sithombe ngaphakathi. Ukuze lesi sibonelo, singahluka, sizosebenzisa esisodwa esivela ku-Ubuntu. Futhi emahoreni ambalwa edlule bethule i-Daily yokuqala futhi nganginayo kudoti.
  • -imenyu yokuqalisa=ivuliwe Kuwukuletha imenyu yokukhetha. Ungasebenzisa u-"oda=D" uma ufuna ukushintsha i-oda bese uzama ukuqala ku-drive D kuqala, kodwa ezimweni eziningi kungcono ukuveza imenyu ekuvumela ukuthi ukhethe idrayivu ngokucindezela i-ESC.
  • -drive file=ubuntu.img Iwukukhombisa i-hard disk, ikakhulukazi i-virtual hard disk.
  • ngi 8g Izokushiya u-8GB we-RAM. Ungashiya kancane, kunjalo, kodwa ngino-32GB futhi ngihlala nginikeza imishini yami ebonakalayo ubuncane obungu-8, ngezinye izikhathi ngaphezulu.
  1. Sicindezela u-Enter futhi izoqala, iqale ngemodi ebukhoma.

Singafaka isistimu yokusebenza, futhi yonke into izohlala ku-ubuntu.img. Singahambisa lelo fayela nomaphi lapho sithanda khona bese siyethula njengoba sichaza ephuzwini elilandelayo.

Kwethulwa imishini ebonakalayo nezinye izinketho

Ukuze uthuthukise ulwazi, kungcono ukwengeza izinto ezimbalwa ngaphezulu komyalo ongenhla.

  • Uma sibeka "-cpu host" ngemuva kwe-RAM, izoqala ukusebenzisa i-CPU yesistimu yokusingatha, futhi lokhu kuzobonakala nakuzinhlelo ezifana ne- Manje i-Neofetch engasekho.
  • Ngo-"-smp" elandelwa inombolo, sizobe sibonisa ukuthi mangaki ama-cores esiwashiya kusistimu yesivakashi.
  • Ukuze uthuthukise izinsiza zesithombe, ifulegi -vga lizosetshenziswa lihambisana nezinketho ezimbalwa.

Umyalo wokugcina uzoba:

qemu-system-x86_64 -enable-kvm -cdrom ubuntu.iso -boot menu=on -drive file=ubuntu.img -m 8G -cpu host -smp 2 -vga virtio -display sdl, gl=on

"-vga qxl" uma sifuna ukulingiswa kwe-2D kuphela. "sdl" ingase futhi ibe "gtk", futhi ",gl=on" ingase ingasebenzi, lapho into esheshayo ukuyenza kuwukungayisebenzisi. Ngisho ne-"-virtio" inconywa cishe kunoma yisiphi isimo.

Ukuze uvule umshini we-virtual uma usufakiwe, vele ususe okuthi "-cdrom ubuntu.iso" kumyalo odlule futhi uzoqala ku-virtual hard drive. Uma noma ngasiphi isikhathi ikhesa ibambeka, ungaphuma ngo-Ctrl+Alt+G. Futhi kungaba kuphela lokho. Ukuze usebenzise kabanzi, kufanelekile ukusebenzisa imibhalo esemthethweni.


Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Unomthwalo wemfanelo ngedatha: AB Internet Networks 2008 SL
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.