Faka futhi ulungiselele i-Qemu-KVM ku-Arch Linux [Kubuyekezwe]

Umphathi we-Virtual

Ku-a isihloko esandulele sibone indlela yokufaka I-Qemu-KVM en UDebian Wheezy sibonga ukusebenzisana kwe Fico futhi kulokhu, ngizokukhombisa ukuthi ungakwenza kanjani kepha ku I-Arch Linux.

Qhathaniswa DebianEngikukhombisa khona ngokulandelayo kusinda kancane, kepha woza, kulula impela ukufika emphumeleni wokugcina. Ake siqale:

Ukufaka amaphakheji adingekayo

Sizofaka amaphakheji esidinga ukuwenza asebenze I-Qemu-KVM futhi sikwazi ukuphatha imishini yethu ebonakalayo.

$ sudo pacman -S qemu dmidecode ebtables dnsmasq libvirt bridge-utils openbsd-netcat radvd urlgrabber virtviewer virtinst virt-manager ifplugd ifenslave tcl

Phambilini iphakethe lalibizwa qemu-kvm, kimi akusekho, manje kuphela qemu. Amanye amaphakheji yiwo adingekayo ekukhetheni kwenethiwekhi nokunye ukusebenza.

Iphakheji amandla ayisatholakali ezinqolobaneni noma iqanjwe kabusha. Manje kudingeka amaphakheji kuphela umphathi we-virt, libvirt-glib, libvirt, vde2 y qemu

Uma la mapakeji efakiwe, singeza umsebenzisi wethu emaqenjini kvm y polkitd:

$ sudo gpasswd -umsebenzisi wakho_kvm $ sudo gpasswd -umsebenzisi wakho_polkitd

Ngemuva kwalokho siphakamisa amamojula adingekayo, angahluka ngokuya ngekhadi lethu levidiyo:

$ sudo modprobe kvm-intel $ sudo modprobe kvm

Uma une-AMD, kufanele usebenzise i-kvm-amd, futhi ngicabanga ukuthi i-kvm-nvidia yabasebenzisi be-NVidia. Angiqiniseki ngokweqiniso ngalokhu.

Manje senza insiza isebenze:

$ sudo systemctl enable libvirtd.service

Futhi uma sifuna ukukuqala, usuvele uyazi:

systemctl start libvirtd.service

Kumele senze noma sihlele umthetho we-Policykit esivumela ukuthi siphathe imishini ebonakalayo ngomsebenzisi wethu. Ngenxa yalokhu sihlela noma sakhe ifayili:

$ sudo nano /etc/polkit-1/rules.d/50-org.libvirt.unix.manage.rules

Futhi sifaka imigqa elandelayo ngaphakathi:

polkit.addRule (function (action, subject) {if (action.id == "org.libvirt.unix.manage" && subject.user == "your_user") {return polkit.Result.YES;}});

Kufanele sithathe indawo umsebenzisi wakho ngomsebenzisi wethu, kunjalo. Yini ebesingayishiya? Ngemuva kwalokho qala kabusha ikhompyutha bese uzama ukwenza umshini omusha obonakalayo.

Endabeni yami ethile, lapho ngizama ukudala umshini omusha obonakalayo onesithombe esivele sikhona, kunginike iphutha lemvume lapho ngiqeda iwizadi. Bekufanele nginike izimvume zokufunda / ukubhala kufayela le-.img

Izinkomba: I-FactorQM.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-33, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  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.

  1.   UFederico A. Valdés Toujague kusho

    Sanibonani Elav !!! Angikuboni kunzima kakhulu ukwedlula ku-Debian. Mhlawumbe imiyalo ehlukile. Kuhlala Kufanelekile ukwenza imiyalo embalwa ukuthi ufake leli thuluzi Elinamandla lokwenza imishini ebonakalayo. Noma ngingasebenzisi i-Arch, Siyabonga ngokusazisa ukuthi ifakwa kanjani kuleyo distro.

    1.    izinga kusho

      Kufanele uthathe izinyathelo ezimbalwa ezingeziwe ... yilokho engikushoyo ngobunzima. Ku-Debian asikho isidingo sokwenza noma yini ngaphandle kokufaka amaphakheji bese ungeza umsebenzisi wethu eqenjini elihambisanayo.

  2.   Ozkar kusho

    I-elav yombuzo: I-Arch isivele isebenzisa i-systemd, kuyadingeka yini ukufaka insiza .sevisi? Akukaziwa okwamanje nge-systemctl 'action' kdm, isibonelo?

    1.    izinga kusho

      Yebo, i-Arch isebenzisa iSystemd. Angazi ukuthi kungenzeka yini ngaphandle kwensiza, futhi njengoba kuyi-Wiki, ngiyenze kahle 😀

    2.    zithwala kusho

      Uma uyibona, awudingi ukuyibeka.

  3.   pvv92 kusho

    imnandi kakhulu i-osx ... OHH WAIT XD

    1.    izinga kusho

      xDD Ngingathanda ukuthi i-OSX ibe yi-KDE 😛 yami

      1.    pvv92 kusho

        kusasa.

        1.    eliotime3000 kusho

          Ngivumelana ne- @elav, ngoba i-Aqua interface ye-OSX isebenzisa ividiyo engu-256 MB, uma iqhathaniswa ne-KDE ecishe ibe ngama-96 MB (ubuncane obusekelwayo), kanye no-128 MB (ubuncane obunconyiwe).

          KuSlackware, i-KDE isebenza ngevidiyo engu-96 MB, njengokungathi ine-128 MB. Noma kunjalo, phakathi kokuthanda nemibala ...

          1.    pvv92 kusho

            Anginandaba nokusetshenziswa, ngithenga enye imojuli engu-4 gb futhi yiyo i-XDD

          2.    pvv92 kusho

            kuvidiyo, noma iliphi ikhadi elisuka eminyakeni eyi-4 edlule liza ne-1 gb ddr2 noma i-ddr3 xD .., kuze kufike ku-nvidia gt610 yama-euro angama-40.

          3.    eliotime3000 kusho

            @ pandev92:

            Ngihlala ezweni laseLatin America lapho amandla okuthenga anciphisa amathuba okuthola ikhadi elihle levidiyo lomuntu ojwayelekile, kepha ngithanda ukusebenzisa iGigabyte ene-Intel chipset (yona uqobo, iluhlobo oluhamba phambili lwamabhodi amakhulu engiwasebenzisile kuze kube manje ).

          4.    Javier kusho

            Ngokusobala, amandla okuthenga awasho lutho kuma-pandev92, ingasaphathwa eye-XD

  4.   Leo kusho

    I-Arch ayinzima, kufanele ube nesikhathi esithe xaxa sokufunda i-wiki.

    1.    eliotime3000 kusho

      Ngokwayo, i-Arch iyi-KISS ne-RTFM ngasikhathi sinye (uhlala uncike kuzibuyekezo ze-wiki ukugwema noma yikuphi ukuguqulwa abakwenzayo kunqubo yokuvuselela).

  5.   pvv92 kusho

    Akukhona ukuthi kuyinkimbinkimbi noma cha, akulungele umsebenzisi wokugcina kuphela.

    1.    eliotime3000 kusho

      Uma ungafuni ukuba kule modi ye-RTFM (Funda i-Fucking Manual), sebenzisa kangcono iMint.

    2.    Javier kusho

      lokho akuyona eyomsebenzisi wokugcina, bengingeke nginakekele i-XD

  6.   i-berny kusho

    Kufanele ushiye i-policykit kanjena, ngakho-ke hlola ukuthi ingabe iseqenjini noma cha futhi kuphelele lapho,
    ngakho-ke uma unabasebenzisi abangaphezu koyedwa izonikeza ukufinyelela uma iseqenjini, yize ngizisebenzisela umshini kuphela nginabasebenzisi abaningana bamaphrojekthi ahlukahlukene, uma uwubeka njengomsebenzisi uzohamba nalowo msebenzisi kuphela

    ukubingelela

    polkit.addRule (umsebenzi (isenzo, isihloko) {
    uma (action.id == "org.libvirt.unix.manage" &&
    isihloko.isInGroup ("libvirt")) {
    buyisela polkit.Result.Yebo;
    }
    });

    1.    i-berny kusho

      Ngibeka iqembu libvirt kepha ungabeka iqembu olifunayo, esimweni sakho kvm noma polkitd

  7.   Xoslorg kusho

    Sawubona, ngabe ukhona owaziyo ukuthi kungani i-kvm inika leli phutha:

    Ayikwazi ukuqedela ukufakwa: 'iphutha langaphakathi: inqubo iphele ngenkathi ixhuma ukuqapha: idivayisi ye-char iqondiswe kabusha ku / dev / pts / 0 (ilebula charserial0)
    qemu-system-x86_64: -drive file = / home / zpabuin / Downloads / Fedora-Live-LXDE-x86_64-19-1.iso, if = none, id = drive-ide0-1-0, readonly = on, format = okuluhlaza: ayikwazanga ukuvula isithombe sediski / ikhaya / zpabuin/Descargas/Fedora-Live-LXDE-x86_64-19-1.iso: Imvume inqatshiwe
    '

    I-Traceback (ucingo lwakamuva lugcine):
    Ifayela "/usr/share/virt-manager/virtManager/asyncjob.py", ulayini 100, ku-cb_wrapper
    ukuphinda ushayele (asyncjob, * args, ** kwargs)
    Ifayela "/usr/share/virt-manager/virtManager/create.py", ulayini 1920, do_install
    guest.start_install (Amanga, imitha = imitha)
    Ifayela "/usr/share/virt-manager/virtinst/Guest.py", umugqa 1134, ku-start_install
    noboot)
    Ifayela "/usr/share/virt-manager/virtinst/Guest.py", ulayini 1202, ku- _create_guest
    dom = self.conn.createLinux (start_xml noma final_xml, 0)
    Ifayela "/usr/lib/python2.7/site-packages/libvirt.py", umugqa 2892, ku-createLinux
    uma i-ret ingekho: khulisa i-libvirtError ('virDomainCreateLinux () yehlulekile', conn = self)
    libvirtError: iphutha langaphakathi: inqubo iphele ngenkathi ixhumeka ukuqapha: idivayisi ye-char iqondiswe kabusha ku / dev / pts / 0 (ilebula charserial0)
    qemu-system-x86_64: -drive file = / home / zpabuin / Downloads / Fedora-Live-LXDE-x86_64-19-1.iso, if = none, id = drive-ide0-1-0, readonly = on, format = okuluhlaza: ayikwazanga ukuvula isithombe sediski / ikhaya / zpabuin/Descargas/Fedora-Live-LXDE-x86_64-19-1.iso: Imvume inqatshiwe

    Ngiyabonga, ngendlela i-virtinst eyiphakheji ephelelwe yisikhathi ku-arch kusukela ngoMeyi futhi engadingeki.

  8.   Javier kusho

    Buza ...

    lapho ngizama ukuphakamisa imodyuli ye-kvm-intel kernel module (okuyi-processor enginayo), iyangitshela:

    i-modprobe: ERROR: ayikwazanga ukufaka i-'kvm_intel ': Umsebenzi awusekelwa

    Uma ngibheka ohlelweni lwami ngiyabona ukuthi imodyuli ye-kvm-intel ikhona ku-
    /usr/lib/modules/3.10.10-1-ARCH/kernel/arch/x86/kvm/kvm-intel.ko.gz

    (futhi yebo, ukusebenzisa i-egrep -c "(svm | vmx)" / proc / cpuinfo kuqinisekile ukuthi kufanele kusekele ukubona lapha)

    Umbuzo wami ukabili:

    -Ngizodinga ukunika amandla / ukunika amandla okuthile ku-kernel yami ukuxhasa lokhu?
    -Uhlelo lwami lunama-bits angama-64 futhi ngiyabona ukuthi imodyuli ihlala ku-x86, kungenxa yalokhu? Kulokho engikubuzayo, ngabe kukhona amamojula angama-64-bit engingakwazi ukuwafaka ngiyeke ukungijolela?

    Ngiyabonga kusengaphambili!

    1.    Javier kusho

      Inkinga ixazululiwe, ngidinga ukunika amandla ukubonwa ku-BIOS kwesistimu yami ... 🙂

      ngiyabonga!

  9.   mthokozisi kusho

    Ngithola ukuthi ayikwazi ukuthola leli fayela «virtinst»

    1.    sphamandla535 kusho

      Iphakethe le-virtinst angilifakile, ngoba alisekho kuma-repos.

      Ngithola iphutha elifanayo ne-Xorlogs:

      Ayikwazi ukuqedela ukufakwa: 'Iphutha langaphakathi: inqubo iphele ngenkathi kuxhunywa ukuqapha: qemu-system-x86_64: -drive file = / home / maykel / archlinux-2013.10.01-dual.iso, if = none, id = drive-ide0-1-0, readonly = ivuliwe, ifomethi = eluhlaza: ayikwazanga ukuvula isithombe sediski /home/maykel/archlinux-2013.10.01-dual.iso: Imvume inqatshiwe
      '

      I-Traceback (ucingo lwakamuva lugcine):
      Ifayela "/usr/share/virt-manager/virtManager/asyncjob.py", ulayini 100, ku-cb_wrapper
      ukuphinda ushayele (asyncjob, * args, ** kwargs)
      Ifayela "/usr/share/virt-manager/virtManager/create.py", ulayini 1920, do_install
      guest.start_install (Amanga, imitha = imitha)
      Ifayela "/usr/share/virt-manager/virtinst/Guest.py", umugqa 1134, ku-start_install
      noboot)
      Ifayela "/usr/share/virt-manager/virtinst/Guest.py", ulayini 1202, ku- _create_guest
      dom = self.conn.createLinux (start_xml noma final_xml, 0)
      Ifayela "/usr/lib/python2.7/site-packages/libvirt.py", umugqa 2897, ku-createLinux
      uma i-ret ingekho: khulisa i-libvirtError ('virDomainCreateLinux () yehlulekile', conn = self)
      libvirtError: Iphutha langaphakathi: inqubo iphele ngenkathi ixhuma kumonitha: qemu-system-x86_64: -drive file = / home / maykel / archlinux-2013.10.01-dual.iso, if = none, id = drive-ide0 -1-0, readonly = ivuliwe, ifomethi = eluhlaza: ayikwazanga ukuvula isithombe sediski /home/maykel/archlinux-2013.10.01-dual.iso: Imvume inqatshiwe

      1.    izinga kusho

        Njengamanje engikufakile yile:

        - libvirt
        - libvirt-glib
        - umphathi we-virt
        - umbonisi

        Hlola 😉

        1.    sphamandla535 kusho

          Ingabe ubuyekeze i-arch ?? Ubonile i-bug enhle kumphathi we-virt ne-update virt-manager 0.10.0-4

          Iphutha: Into ye-'TypeType 'ayinayo imfanelo' __getitem__ '

          https://bugs.archlinux.org/task/37990

  10.   Umsindo-Alchemist kusho

    Okokufundisa kwakho kulungile, futhi ngenxa yomphathi we-virt usebenza cishe ngaphandle kwezinkinga, encwadini yakho awuchazi ukuthi yiziphi izimvume ze-.img ezengezwe kuyo, futhi angikwazanga ukudala umshini obonakalayo

  11.   edo kusho

    Iphakethe le-virtinst alikho, liphinde lingitshele ukuthi “i-openbsd-netcat ne-gnu-netcat ziyashayisana. Susa i-gnu-netcat? [y / n] ', ngakho-ke angikwazi ukushiya i-gnu-netcat?

  12.   inhlukano kusho

    sawubona oie ngine-samsung chromebook imodeli engicabanga ukuthi yi-Snow Clear, ngifuna ukwazi ukuthi ngabe iQemu ingafakwa yini kwisisekelo se-ARM, ngiyazi ukuthi ngiyifaka kanjani i-ubuntu, empeleni ngiyikhiphile ngeqiniso elilula ebengingakwazi ukuyiqhuba exe, iwayini alisebenzi kulesi sisekelo nge-Intel kuphela, kepha lokho kubonakala kunguyebo, kepha angazi ukuthi ungayifaka kanjani: / ngiyethemba uzonginika impendulo kungekudala, ngiyabonga, umsebenzi omuhle.

  13.   tau kusho

    Uma ngikhumbula kahle, i-KVM isebenza ukusheshisa i-qemu. Njengoba i-qemu ilingisa yonke iprosesa ihamba kancane kunemishini ebonakalayo njenge-virtualbox. Ngakho-ke ngokwalokho engikwaziyo ukuthi i-KVM yenza i-qemu iziphathe njengomshini obonakalayo lapho ukwakhiwa kwesihambeli kufana nomsingathi. Cha?. Noma kunjalo kuyathakazelisa i-athikili.

    Qemu rox !!

    Ukubingelela

  14.   Roberto kusho

    Sawubona ntambama, ngiyabonga ngesifundo ebengikade ngisifuna, kepha ngidinga ukuthi unginike isandla, ukuthi ungawufaka kanjani umshini obonakalayo kudiski yangaphandle, ungasebenzisi isikhala somsingathi, ngiyabonga

  15.   Ikhasi Asgardius kusho

    Engxenyeni lapho kwenziwa khona amamojula we-kernel nge-modprobe, lawo ahambelana ne-cpu empeleni ayasebenza, ngoba i-kvm isebenzisa imiyalo yokubona ye-cpu ukusebenza. Ngine-pc ene-Intel cpu ne-amd gpu futhi yangisebenzela ngale ndlela