Isa uye gadzirisa Qemu-KVM pane Arch Linux [Yakagadziridzwa]

Virtual-Maneja

Mune Nyaya yapfuura takaona maitiro ekuisa Qemu-KVM en debian wheezy nekuda kwekubatana kwe Fico uye panguva ino, ini ndinokuratidza maitiro ekuzviita asi mu Arch Linux.

Kuenzaniswa ne Debian, izvo zvandinokuratidza zvinotevera zvinorema zvishoma, asi huya, zviri nyore chaizvo kusvika kumhedzisiro yekupedzisira. Ngatitangei:

Kuisa mapakeji anodiwa

Tichaisa mapakeji atinoda kuti riite kuti rishande Qemu-KVM uye kukwanisa kubata edu chaiwo michina.

$ sudo pacman -S qemu dmidecode ebtables dnsmasq libvirt zambuko-zvishandiso openbsd-netcat radvd urlgrabber ideviewer enquinst virt-maneja ifplugd ifenslave tcl

Pakutanga pasuru iyi yaidaidzwa kemu-kvm, kwandiri hakuchina, izvozvi ndizvo chete ndiani. Mamwe mapakeji aya ndiwo akakosha kune sarudzo dzemambure uye zvichingodaro kuti zvishande.

Package simba haichawanikwi mumabhuku kana kutumidzwazve mazita. Iye zvino mapakeji chete anodiwa virt-maneja, libvirt-glib, libvirt, vde2 y ndiani

Kana mapakeji aya aiswa, tinowedzera mushandisi wedu kumapoka kvm y polkitd:

$ sudo gpasswd -a yako_kvm mushandisi $ sudo gpasswd -a yako_polkitd mushandisi

Ipapo isu tinosimudza mamodule anodikanwa, ayo anogona kusiyana zvichienderana nekadhi redu revhidhiyo:

$ sudo modprobe kvm-intel $ sudo modprobe kvm

Kana iwe uine AMD, unofanirwa kushandisa kvm-amd, uye ini ndinofungidzira kvm-nvidia yevashandisi veNVidia. Ini chokwadi handina chokwadi nezve zvekupedzisira.

Iye zvino tava kumisa sevhisi:

$ sudo systemctl enable libvirtd.service

Uye kana isu tichida kuzvitanga, iwe unotoziva kare:

systemctl start libvirtd.service

Isu tinongofanirwa kugadzira kana kugadzirisa mutemo wePolkkit iyo inotibvumidza isu kugadzirisa mashini chaiwo nemushandisi wedu. Kune izvi isu tinogadzira kana kugadzira iyo faira:

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

Uye isu tinoisa inotevera mitsara mukati:

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

Tinofanira kutsiva mushandisi wako nemushandisi wedu, hongu. Chii chatingave takasiya? Wobva watangidza komputa uye edza kugadzira muchina mutsva.

Mune yangu chaiyo kesi, kana ndichiedza kugadzira nyowani yemuchina ine chifananidzo chiripo, chakandipa mvumo yekukanganisa pandakapedza wizard. Ini ndaingofanirwa kupa mvumo yekuverenga / kunyora kune iyo .img faira

Refer: FactorQM.


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

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa. Raida minda anozivikanwa ne *

*

*

  1. Inotarisira iyo data: Miguel Ángel Gatón
  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.   Federico A. Valdes Toujague akadaro

    Kwazisai Elav !!! Ini handinyatsozviona seyakaomarara kupfuura muDebian. Zvimwe mirairo yakasiyana. Izvo zvinogara zvichikosha kuita mirairo mishoma yekuisa ichi chishandiso chine simba kugadzira chaiyo michina. Kunyangwe ndikasashandisa Arch, Thanks nekugovana kuti inoisa sei pane iyo distro.

    1.    ichit akadaro

      Iwe unofanirwa kutora mashoma matanho ekuwedzera ... ndizvo zvandinoreva nezvakaoma. MuDebian hapana chikonzero chekuita chero chinhu kunze kwekuisa mapakeji uye wedzera mushandisi wedu kuboka rinoenderana.

  2.   ndizvo ozkan akadaro

    Mubvunzo elav: Arch yatoshandisa systemd, zvakakosha kuisa iyo .sevhisi kusevhisi? Hazvizivikanwe parizvino ne systemctl 'chiito' kdm, semuenzaniso?

    1.    ichit akadaro

      Ehe, Arch inoshandisa Systemd. Handizive kana zvichigona kuitwa pasina iyo sevhisi, uye sezvazviri muWiki, ndakaita zvakanaka 😀

    2.    vanotakura akadaro

      Kana iwe uchizviziva, haufanire kuzviisa.

  3.   pandev92 akadaro

    zvakanaka kwazvo iyo osx ... OHH Mirira XD

    1.    ichit akadaro

      xDD ndinoda OSX ive yangu KDE 😛

      1.    pandev92 akadaro

        mangwana.

        1.    eliotime3000 akadaro

          Ini ndinobvumirana na @elav, sezvo iyo Aqua interface yeOSX inoshandisa 256 MB yevhidhiyo, ichienzaniswa neKDE iri kutenderera 96 ​​MB (iyo yepasi inotsigirwa), uye 128 MB (iyo yakaderera inokurudzirwa).

          MuSlackware, KDE inomhanya ne96 MB yevhidhiyo, sekunge iine 128 MB. Zvisinei, pakati pezvakanaka uye nemavara ...

          1.    pandev92 akadaro

            Ini handina basa nekudyiwa, ini ndinotenga imwe 4 GB module uye ndiyo XDD

          2.    pandev92 akadaro

            muvhidhiyo, chero kadhi kubva kumakore mana apfuura anouya ne4 gb ddr1 kana ddr2 xD .., kusvika kune nvidia gt3 ye610 euros.

          3.    eliotime3000 akadaro

            @ pandev92:

            Ini ndinogara munyika yeLatin America uko simba rekutenga rinogumira mukana wekuwana yakanaka vhidhiyo kadhi kune munhu wepakati, asi ndinoda kushandisa Gigabyte ine Intel chipset (pachayo, ndiyo yakanakisa mhando yemabhodhi makuru andakashandisa kusvika ikozvino ).

          4.    Javier akadaro

            Zviripachena, iro simba rekutenga harina basa nemapandev92, tisingataure XD

  4.   Leo akadaro

    Arch haina kuomarara, iwe unongofanirwa kuve uine yakati rebei nguva yekuverenga iyo wiki.

    1.    eliotime3000 akadaro

      Iwo pachawo, Arch iri KISS uye RTFM panguva imwe chete (iwe unogara uchitenderera pawiki kugadzirisa kuti udzivise chero shanduko yavanoita kune yekuvandudza maitiro).

  5.   pandev92 akadaro

    Haisi iyo yakaoma kana kuti kwete, haina kukodzera mushandisi wekupedzisira.

    1.    eliotime3000 akadaro

      Kana iwe usiri kuda kuve mune ino RTFM (Verenga Iyo Fucking Chinyorwa) maitiro, zvirinani shandisa Mint.

    2.    Javier akadaro

      izvo hazvisi zvemushandisi wekupedzisira, ndingadai ndisina hanya neXD

  6.   Bernie akadaro

    Iwe unofanirwa kusiya policykit seizvi, saka tarisa kana iri muboka kana kwete uye ndizvozvo,
    saka kana uine vanopfuura mumwe mushandisi zvaizopa mukana kana zviri muboka, kunyangwe ini ndichingo shandisa muchina ndega ndine vashandisi vanoverengeka vezvirongwa zvakasiyana, kana iwe ukauisa semushandisi zvinongoenda chete nemushandisi

    kukwazisa

    polkit.addRule (basa (chiito, chidzidzo) {
    kana (action.id == "org.libvirt.unix.manage" &&
    subject.isInGroup ("libvirtti")) {
    dzoka polkit.Result.YES;
    }
    });

    1.    Bernie akadaro

      Ini ndinoisa boka libvirt asi iwe unogona kuisa iro boka raunoda, mune yako kvm kana polkitd

  7.   Xoslorg akadaro

    Mhoroi, pane chero munhu anoziva nei kvm ichipa kukanganisa uku:

    Kutadza kupedzisa kumisikidza: 'yemukati kukanganisa: maitiro akapera uchibatanidza kuongorora: char chishandiso chakadzorerwa ku / dev / pts / 0 (chitaridzi charserial0)
    qemu-system-x86_64: -drive faira = / kumba / zpabuin / Kudhanilodha / Fedora-Live-LXDE-x86_64-19-1.iso, kana = isina, id = drive-ide0-1-0, readonly = on, fomati = mbishi: haina kukwanisa kuvhura diski mufananidzo / imba / zpabuin/Descargas/Fedora-Live-LXDE-x86_64-19-1.iso: Chibvumirano chakarambwa
    '

    Traceback (yazvino kufona yekupedzisira):
    Faira "/usr/share/virt-manager/virtManager/asyncjob.py", mutsara zana, mu cb_wrapper
    kufona (asyncjob, * args, ** kwargs)
    Faira "/usr/share/virt-manager/virtManager/create.py", mutsetse 1920, mune do_install
    guest.start_install (Nhema, mita = mita)
    Faira "/usr/share/virt-manager/virtinst/Guest.py", mutsetse 1134, mu start_install
    noboot)
    Faira "/usr/share/virt-manager/virtinst/Guest.py", mutsetse 1202, mu _create_guest
    dom = self.conn.createLinux (start_xml kana final_xml, 0)
    Faira "/usr/lib/python2.7/site-packages/libvirt.py", mutsetse 2892, mu createLinux
    kana ret is None: simudza libvirtError ('virDomainCreateLinux () yakundikana', conn = self)
    libvirtError: kukanganisa kwemukati: maitiro akapera panguva yekubatanidza kuongorora: char mudziyo wakadzoserwa ku / dev / pts / 0 (label charserial0)
    qemu-system-x86_64: -drive faira = / kumba / zpabuin / Kudhanilodha / Fedora-Live-LXDE-x86_64-19-1.iso, kana = isina, id = drive-ide0-1-0, readonly = on, fomati = mbishi: haina kukwanisa kuvhura diski mufananidzo / imba / zpabuin/Descargas/Fedora-Live-LXDE-x86_64-19-1.iso: Chibvumirano chakarambwa

    Ndatenda, nenzira iyo nzira yakanaka ndeyechinyakare pasuru pane arch kubva Chivabvu uye isingadiwe.

  8.   Javier akadaro

    Bvunza ...

    pandinoyedza kusimudza kvm-intel kernel module (inova processor yandinayo), inondiudza:

    modprobe: ERROR: haina kukwanisa kuisa 'kvm_intel': Kushanda hakuna kutsigirwa

    Ndichitarisa mune yangu system ndinoona kuti kvm-intel module iripo mu
    /usr/lib/modules/3.10.10-1-ARCH/kernel/arch/x86/kvm/kvm-intel.ko.gz

    (uye hongu, kumhanya egrep -c "(svm | vmx)" / proc / cpuinfo ndeyechokwadi kuti inofanirwa kutsigira kuona pano)

    Mubvunzo wangu wakapetwa kaviri:

    -I Ini handidi kuti ndikwanise / kugonesa chimwe chinhu mu kernel yangu kutsigira izvi?
    -Mystem ine makumi matanhatu nemasere uye ini ndoona kuti module inogara muX64, imhaka yeizvi here? Panyaya ipi yandinobvunza, pane makumi matanhatu nematanhatu ma module andinogona kuisa nekumira kunetsekana neni?

    Kutenda mberi!

    1.    Javier akadaro

      Dambudziko rakagadziriswa, ini ndoda kugonesa kuona muBIOS yesystem yangu ... 🙂

      thanks!

  9.   Leonardopc1991 akadaro

    Ini ndinowana kuti haigoni kuwana iyi faira «virtinst»

    1.    maykel535 akadaro

      Iyo virtinst package ini handina kuisa, nekuti haisisiri mune repos.

      Ini ndinowana iko kukanganisa kwakafanana neXorlogs:

      Kutadza kupedzisa kumisikidza: 'Yemukati kukanganisa: maitiro akapera panguva yekubatanidza kuongorora: qemu-system-x86_64: -drive file = / home / maykel / archlinux-2013.10.01-dual.iso, if = none, id = drive-ide0 -1-0, readonly = on, fomati = mbishi: haigone kuvhura diski mufananidzo /home/maykel/archlinux-2013.10.01-dual.iso: Mvumo yaramba
      '

      Traceback (yazvino kufona yekupedzisira):
      Faira "/usr/share/virt-manager/virtManager/asyncjob.py", mutsara zana, mu cb_wrapper
      kufona (asyncjob, * args, ** kwargs)
      Faira "/usr/share/virt-manager/virtManager/create.py", mutsetse 1920, mune do_install
      guest.start_install (Nhema, mita = mita)
      Faira "/usr/share/virt-manager/virtinst/Guest.py", mutsetse 1134, mu start_install
      noboot)
      Faira "/usr/share/virt-manager/virtinst/Guest.py", mutsetse 1202, mu _create_guest
      dom = self.conn.createLinux (start_xml kana final_xml, 0)
      Faira "/usr/lib/python2.7/site-packages/libvirt.py", mutsetse 2897, mu createLinux
      kana ret is None: simudza libvirtError ('virDomainCreateLinux () yakundikana', conn = self)
      libvirtError: Yemukati kukanganisa: maitiro akapera panguva yekubatanidza kune yekutarisa: qemu-system-x86_64: -drive file = / home / maykel / archlinux-2013.10.01-dual.iso, if = none, id = drive-ide0 -1-0, readonly = on, fomati = mbishi: haigone kuvhura diski mufananidzo /home/maykel/archlinux-2013.10.01-dual.iso: Mvumo yaramba

      1.    ichit akadaro

        Izvozvi izvo zvandakaisa ndeizvi:

        - libvirt
        - libvirt-glib
        - wema-maneja
        - adeviewer

        Tarisa 😉

        1.    maykel535 akadaro

          Wakagadzirisa arch ?? Iwe waona iyo Nice bug mune ide-maneja neyekuvandudza enjoy-maneja 0.10.0-4

          Kanganiso: 'HapanaType' chinhu hachina hunhu '__getitem__'

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

  10.   Inzwi-Alchemist akadaro

    Dzidziso yako yakanaka, uye nekutenda kune ide-maneja inoshanda irikusina matambudziko, mutsamba yako hautsanangure kuti chii .img mvumo inowedzerwa, uye ini handina kukwanisa kugadzira muchina chaiwo

  11.   edo akadaro

    Iyo virtinst package haina, inondiudzawo "openbsd-netcat uye gnu-netcat vari kupokana. Bvisa gnu-netcat? [y / n] ', saka handikwanise kusiya gnu-netcat?

  12.   Manuel akadaro

    Mhoro oie ndine samsung chromebook modhi yandinofunga kuti Chando Chakajeka, ndinoda kuziva kana Qemu inogona kuiswa pane ARM base, ndinoziva kuisa ubuntu, kutaura chokwadi ndakaibvisa icho chiri nyore chokwadi chekuti ini ndaisakwanisa kumhanya exe mafaera, waini haimhanye pane ino base chete neIntel, asi zvinoita kunge hongu, asi handizive kuti ndoiisa sei: / ndinovimba unondipa mhinduro munguva pfupi, ndatenda, basa rakanaka.

  13.   tau akadaro

    Kana ndikarangarira nemazvo, KVM inoshanda kukurumidza qemu. Sezvo qemu inoteedzera iyo processor yese inononoka kupfuura chaiwo michina kunge virtualbox. Saka kubva pane zvandinoziva KVM inogadzira qemu kuzvibata semuchina chaiwo apo mavakirwo emuenzi akafanana neanogamuchira. Aihwa ?. Zvisinei zvinonakidza chinyorwa.

    Qemu rox !!

    Thanks.

  14.   Roberto akadaro

    Manheru akanaka, maita basa nedzidziso yandaive ndichitsvaga, asi ini ndoda kuti iwe undipe ruoko, maitiro ekuisa muchina chaiwo padhiri rekunze, usashandise iyo inomiririra nzvimbo yemuviri, ndatenda

  15.   Peji Asgardius akadaro

    Muchikamu icho ma kernel module anovhurwa ne modprobe, iwo anoenderana necpu anonyatso kushandiswa, sezvo kvm inoshandisa iyo virtualization mirairo ye cpu kushanda. Ndine pc ine intel cpu uye amd gpu uye yakandishandira nenzira iyi