Ku rakib oo ku xir Qemu-KVM Arch Linux [La cusbooneysiiyay]

Maareeye Fudud

In a maqaal hore waxaan aragnay sida loo rakibo Qemu-KVM en debian hiinraag iskaashiga ah Fico iyo markan, waxaan ku tusi doonaa sida loo sameeyo laakiin gudaha Arch Linux.

Marka la barbar dhigo Debian, waxa aan ku tusi doono marka xigaa waa waxyar oo culus, laakiin kaalay, runtii way fududahay in la gaaro natiijada ugu dambeysa. Aynu bilowno:

Ku rakibidda xirmooyinka lagama maarmaanka ah

Waxaan rakibi doonnaa xirmooyinka aan u baahan nahay si aan u shaqeyno Qemu-KVM oo aad awood u leedahay inaad maamusho mashiinadeena casriga

$ sudo pacman -S qemu dmidecode ebtables dnsmasq libvirt Bridge-utils openbsd-netcat radvd urlgrabber virviest virto-manager ifplugd ifenslave tcl

Markii hore xirmada ayaa la oran jiray qemu-kvm, aniga mar dambe aniga, hadda waa uun qemu. Xirmooyinka intiisa kale waa kuwa lagama maarmaanka u ah xulashooyinka shabakadda iyo wixii la mid ah si ay u shaqeeyaan.

Xidhmada virtinst Hadda kuma sii jirto kaydadka ama dib baa loogu magacaabay. Hadda baakado kaliya ayaa loo baahan yahay maareeyaha guud, libvirt-glib, libvirt, vde2 y qemu

Marka xirmooyinkaan la rakibo, waxaan ku dareynaa isticmaaleheena kooxaha kvm y polkitd:

$ sudo gpasswd - isticmaalehaaga_kvm $ sudo gpasswd - isticmaalehaaga_polkitd

Kadibna waxaan kor u qaadnaa qaybaha muhiimka ah, oo ku kala duwanaan kara iyadoo ku xiran kaarka fiidiyowga:

$ sudo modprobe kvm-intel $ sudo modprobe kvm

Haddii aad leedahay AMD, waa inaad isticmaashaa kvm-amd, waxaanan u maleynayaa kvm-nvidia dadka isticmaala NVidia. Si daacad ah uma hubo kan dambe.

Hadda waxaan dhaqaajineynaa adeegga:

$ sudo systemctl enable libvirtd.service

Iyo haddii aan rabno inaan bilowno, horay ayaad u ogtahay:

systemctl start libvirtd.service

Waxaan kaliya u baahanahay inaan u abuurno ama u sixno xeerka 'Policykit' kaasoo noo ogolaanaya inaan ku maareeyno mashiinada casriga ah adeegsadeheena. Tan awgeed waxaan u saxeynaa ama u abuureynaa feylka:

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

Oo waxaan gelineynaa khadadka soo socda gudaha:

polkit.addRule (waxqabad (fal, mawduuc) {haddii (action.id == "org.libvirt.unix.manage" && subject.user == "your_user") {celinta polkit.Result.YES;}});

Waa inaan badalnaa isticmaalahaaga adeegsadeheena, dabcan. Maxaan ka tagi lahayn? Kadib dib u bilaw kumbuyuutarka iskuna day inaad sameyso mashiin cusub oo dalwad leh.

Xaaladdayda gaarka ah, markaan isku dayayo inaan abuuro mashiin cusub oo muuqaal ah oo leh sawir jira, wuxuu i siiyay qalad ogolaansho markii aan dhammeeyay saaxirku. Kaliya waxay ahayd inaan siiyo ogolaansho akhris / qor faylka .img

Tixraacyada: Xaqiiqada QM.


Nuxurka maqaalka wuxuu u hogaansamayaa mabaadi'deena anshaxa tifaftirka. Si aad u soo sheegto khalad guji Halkan.

33 faallooyin, ka tag taada

Ka tag faalladaada

cinwaanka email aan la daabacin doonaa. Beeraha loo baahan yahay waxaa lagu calaamadeeyay la *

*

*

  1. Masuul ka ah xogta: Miguel Ángel Gatón
  2. Ujeedada xogta: Xakamaynta SPAM, maaraynta faallooyinka.
  3. Sharci: Oggolaanshahaaga
  4. Isgaarsiinta xogta: Xogta looma gudbin doono dhinacyada saddexaad marka laga reebo waajibaadka sharciga ah.
  5. Kaydinta xogta: Macluumaadka ay martigelisay Shabakadaha Occentus (EU)
  6. Xuquuqda: Waqti kasta oo aad xadidi karto, soo ceshan karto oo tirtiri karto macluumaadkaaga.

  1.   Federico A. Valdes Toujague dijo

    Salaan Elav !!! Xaqiiqdii uma arko inay ka dhib badan tahay tan Debian. Malaha amarro kala duwan. Had iyo jeer way u qalantaa in la fuliyo amarro yar si loo helo qalabkan awoodda badan si loo sameeyo mashiinno farsamo. Xitaa haddii aanan adeegsan Arch, Waad ku mahadsantahay inaad noosheegtay sida loo rakibo bartaas.

    1.    faahfaahsan dijo

      Waa inaad sameysaa talaabooyin dheeri ah oo dheeri ah ... taasi waa waxa aan ula jeedo qalafsanaanta. Debian looma baahna in wax kale la sameeyo marka laga reebo rakibida xirmooyinka oo ku dar isticmaaleheena kooxda u dhiganta.

  2.   Ozkar dijo

    Su'aal elav: Arch horeyba wuxuu u adeegsadaa nidaam, ma lagama maarmaan baa in adeega. Lama aqoonsan weli systemctl 'action' kdm, tusaale ahaan?

    1.    faahfaahsan dijo

      Haa, Arch wuxuu adeegsadaa Systemd. Ma aqaano haddii la sameyn karo la'aanteed adeegga, iyo sida ay ku jirto Wiki, si fiican ayaan u sameeyay 😀

    2.    way sitaan dijo

      Haddii aad garatid, uma baahnid inaad dhigatid.

  3.   dabogal 92 dijo

    aad u fiican osx ... OHH WAIT XD

    1.    faahfaahsan dijo

      xDD Waxaan jeclaan lahaa in OSX ay ii noqoto KDE 😛

      1.    dabogal 92 dijo

        berri.

        1.    Waqti dheer 3000 dijo

          Waan ku raacsanahay @elav, maaddaama interface-ka Aqua ee OSX uu cuno 256 MB oo fiidiyow ah, marka la barbardhigo KDE oo u dhexeysa 96 MB (kan ugu yar ee la taageero), iyo 128 MB (ugu yaraan lagu taliyay).

          Slackware, KDE waxay ku socotaa 96 MB oo fiidiyow ah, sida haddii ay lahayd 128 MB. Sikastaba, inta udhaxeysa dhadhanka iyo midabada ...

          1.    dabogal 92 dijo

            Waxba igama gelin isticmaalka, waxaan iibsanayaa qayb kale oo 4 GB ah waana taasi XDD

          2.    dabogal 92 dijo

            fiidiyow ahaan, kaar kasta oo ka yimid 4tii sano ee la soo dhaafay wuxuu la yimaadaa 1 gb ddr2 ama ddr3 xD .., illaa nvidia gt610 oo ah 40 euro.

          3.    Waqti dheer 3000 dijo

            @ cabdicasiis92

            Waxaan ku noolahay wadan Latin Amerika ah halka awooda wax iibsiga ay xaddideyso suurtagalnimada helitaanka kaar fiidiyoow wanaagsan oo loogu talagalay qofka celceliska ah, laakiin waxaan jeclaan lahaa inaan isticmaalo Gigabyte oo leh Intel chipset (lafteeda, waa calaamadaha ugu fiican ee kumbuyuutarrada aan ilaa hada isticmaashay).

          4.    Javier dijo

            Sida iska cad, awooda wax iibsiga wax macno ah kuma lahan pandev92, iyadoo aan xusin XD

  4.   Leo dijo

    Archku maahan mid dhib badan, waa inaad haysataa waqti yar oo aad ku aqriso wiki-ga.

    1.    Waqti dheer 3000 dijo

      Laftiisa, Arch waa KISS iyo RTFM isla waqtigaas (waxaad marwalba kuxirantahay wiki cusbooneysiinta si aad uga fogaato waxkabadal kasta oo ay kusameeyaan nidaamka cusbooneysiinta).

  5.   dabogal 92 dijo

    Maaha inay dhib badantahay iyo inkale, kaliya kuma haboona isticmaaleha dhamaadka.

    1.    Waqti dheer 3000 dijo

      Haddii aadan rabin inaad ka mid noqoto qaabkan RTFM (Akhriso Buugga Buugga), si fiican u isticmaal Mint.

    2.    Javier dijo

      taasi maahan isticmaaleha ugu dambeeya, anigu dan kama lihi doono XD

  6.   Bernie dijo

    Waa inaad uga tagtaa xafiiska siyaasada sidan oo kale, markaa hubi inay kooxda ku jirto iyo inkale waana taas,
    markaa haddii aad haysato in ka badan hal isticmaale waxay ku siinaysaa fursad haddii ay kooxda ku jirto, in kasta oo aan mashiinka u isticmaalo naftayda waxaan haystaa dhowr isticmaale oo mashaariic kala duwan leh, haddii aad u dhigatid isticmaale ahaan waxay la socon doontaa isticmaalehaas oo keliya

    salaan

    polkit.addRule (waxqabad (ficil, maaddo) {
    haddii (action.id == "org.libvirt.unix.manage" &&
    subject.isInGroup ("libvirt")) {
    soo celi jawaabta .Natiijada.HAA;
    }
    });

    1.    Bernie dijo

      Waxaan dhigay kooxda libvirt laakiin waad dhigi kartaa kooxda aad rabto, kiiskaaga kvm ama polkitd

  7.   Xoslorg dijo

    Haye, qofna ma garanayaa sababta kvm u siinayo qaladkan:

    Awoodin in la dhammaystiro rakibidda: 'Khaladka gudaha: hawshu waxay dhammaatay iyadoo la isku xirayo si loola socdo: qalabka char-ka ee loo wareejiyay / dev / pts / 0 (calaamadda charserial0)
    qemu-system-x86_64: -drive file = / home / zpabuin / Downloads / Fedora-Live-LXDE-x86_64-19-1.iso, if = ma jiro, id = drive-ide0-1-0, readonly = on, format = cayriin: ma furi karin muuqaalka diskiga / home/zpabuin/Descargas/Fedora-Live-LXDE-x86_64-19-1.iso: Ogolaanshaha waa la diiday
    '

    Raad-raac (wicitaankii ugu dambeeyay ee ugu dambeeyay):
    Faylka "/usr/share/virt-manager/virtManager/asyncjob.py", safka 100, ee cb_wrapper
    wicitaan (asyncjob, * args, ** kwargs)
    Faylka "/usr/share/virt-manager/virtManager/create.py", safka 1920, ee kujira_dalla
    guest.start_install (Been, mitir = mitir)
    Faylka "/usr/share/virt-manager/virtinst/Guest.py", safka 1134, ee start_install
    noboot)
    Faylka "/usr/share/virt-manager/virtinst/Guest.py", safka 1202, ee _create_guest
    dom = self.conn.createLinux (start_xml ama final_xml, 0)
    Fayl "/usr/lib/python2.7/site-packages/libvirt.py", khadadka 2892, ee abuurashada Linux
    haddii ret uusan midna ahayn: kor u qaad libvirtError ('virDomainCreateLinux () guuldareystay', conn = iskiis)
    libvirtError: Cilad gudaha ah: howshu waxay kudhamaatay iyadoo iskuxirka si loola socdo: qalabka char-ka loo weeciyay / dev / pts / 0 (calaamadda charserial0)
    qemu-system-x86_64: -drive file = / home / zpabuin / Downloads / Fedora-Live-LXDE-x86_64-19-1.iso, if = ma jiro, id = drive-ide0-1-0, readonly = on, format = cayriin: ma furi karin muuqaalka diskiga / home/zpabuin/Descargas/Fedora-Live-LXDE-x86_64-19-1.iso: Ogolaanshaha waa la diiday

    Waad ku mahadsan tahay, habka loo yaqaan 'virtinst' waa xirmo duugoobay oo qaanso ah tan iyo bishii Maajo oo aan loo baahnayn.

  8.   Javier dijo

    Weydii ...

    markaan isku dayo inaan kor u qaado kvm-intel module kernel (kaas oo ah processor-ka aan haysto), wuxuu igu dhahaa:

    modprobe: ERROR: ma galin karo 'kvm_intel': Howlgalka lama taageerin

    Markaan fiirinayo nidaamkeyga waxaan ogaanayaa in moduleka kvm-intel uu kujiro
    /usr/lib/modules/3.10.10-1-ARCH/kernel/arch/x86/kvm/kvm-intel.ko.gz

    (iyo haa, socda egrep -c "(svm | vmx)" / proc / cpuinfo waa hubaal inay tahay inay halkan ka taageerto hufnaanta)

    Su’aashaydu waa laba nooc:

    - Uma baahni doono inaan awood u yeesho / karti u yeesho shaygeyga si aan tan u taageero
    - Nidaamkaygu waa 64 jajab oo waxaan arkaa in qaybtani ku nooshahay x86, ma tanaa tan? Xaalad kastoo aan weydiiyo, ma jiraan qaybo 64-bit ah oo aan rakibi karo oo aan joojin karo xanaaqa aniga?

    Waad ku mahadsan tahay horay!

    1.    Javier dijo

      Dhibaatada la xaliyay, waxaan ubaahanahay inaan awood uyeelo BIOS-ka nidaamkeyga ... 🙂

      gracias!

  9.   leonardopcc1991 dijo

    Waxaan u arkaa inaysan heli karin faylkan «virtinst»

    1.    535 dijo

      Anigu ma rakibin xirmada 'virtinst', sababtoo ah kuma sii jirto kaydka.

      Waxaan helayaa qalad la mid ah Xorlogs:

      Awoodin in la dhammaystiro rakibaadda: 'Khaladka gudaha: hawshu waxay dhammaatay iyadoo la isku xirayo si loola socdo: qemu-system-x86_64: -drive file = / home / maykel / archlinux-2013.10.01-dual.iso, if = no, id = drive-ide0 -1-0, readonly = on, qaab = cayriin: ma furi karin sawirka diskka / home/maykel/archlinux-2013.10.01-dual.iso: Ogolaanshaha waa la diiday
      '

      Raad-raac (wicitaankii ugu dambeeyay ee ugu dambeeyay):
      Faylka "/usr/share/virt-manager/virtManager/asyncjob.py", safka 100, ee cb_wrapper
      wicitaan (asyncjob, * args, ** kwargs)
      Faylka "/usr/share/virt-manager/virtManager/create.py", safka 1920, ee kujira_dalla
      guest.start_install (Been, mitir = mitir)
      Faylka "/usr/share/virt-manager/virtinst/Guest.py", safka 1134, ee start_install
      noboot)
      Faylka "/usr/share/virt-manager/virtinst/Guest.py", safka 1202, ee _create_guest
      dom = self.conn.createLinux (start_xml ama final_xml, 0)
      Fayl "/usr/lib/python2.7/site-packages/libvirt.py", khadadka 2897, ee abuurashada Linux
      haddii ret uusan midna ahayn: kor u qaad libvirtError ('virDomainCreateLinux () guuldareystay', conn = iskiis)
      libvirtError: Cilad gudaha ah: howshu waxay kudhamaatay iyadoo laguxirayo kormeeraha: qemu-system-x86_64: -drive file = / home / maykel / archlinux-2013.10.01-dual.iso, if = no, id = drive-ide0 -1 -0, readonly = on, qaab = ceeriin: ma furi karo sawirka diskka / home/maykel/archlinux-2013.10.01-dual.iso: Ogolaanshaha waa la diiday

      1.    faahfaahsan dijo

        Hadda waxa aan rakibay waa:

        - libvirt
        - libvirt-glib
        - maareeyaha guud
        - akhriste

        Hubi 😉

        1.    535 dijo

          Miyaad cusbooneysiisay qaanso ?? Waxaad ku aragtay cayayaanka wanaagsan ee ku habboon maareeyaha oo leh cusbooneysiinta maamule-maamule 0.10.0-4

          Cilad: 'NoneType' shaygu ma laha astaamo '__getitem__'

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

  10.   Dhawaaq-Alchemist dijo

    Casharkaagu wuu fiicanyahay, mahadnaqna maareeyaha wuxuu u shaqeeyaa ku dhowaad dhibaato la'aan, qoraalkaaga ma sharraxaysid waxa rukhsadaha .img lagu daro, mana aanan awoodin inaan abuuro mashiin casri ah

  11.   Edo dijo

    Xirmada virtinst-ka ma jirto, waxay kaloo ii sheegaysaa “openbsd-netcat iyo gnu-netcat way isku dhacayaan. Ka saar gnu-netcat? [y / n] ', markaa kama bixi karo gnu-netcat?

  12.   buuggan dijo

    hello oie Waxaan hayaa samsung chromebook qaabka aan u malaynayo inuu yahay Snow Clear, waxaan rabaa inaan ogaado hadii Qemu lagu rakibi karo saldhig ARM ah, waan ogahay sida loo rakibo ubuntu, runtiina waan u furey xaqiiqda fudud ee ah inaan ordi karin faylasha exe, khamrigu kuma dul socdo salka kaliya Intel, laakiin waxay umuuqataa inay haa tahay, laakiin ma aqaano sida loo rakibo: / waxaan rajaynayaa inaad jawaab si dhaqso ah i siiso, mahadsanid, shaqo fiican

  13.   ayaa dijo

    Haddii aan si sax ah u xasuusto, KVM waxay u adeegtaa xawaareynta qemu. Maaddaama qemu uu ku dayanayo processor-ka oo dhan waa uu ka gaabiyaa mashiinnada dalwadga sida meeris. Marka wixii aan ka ogahay KVM waxay ka dhigeysaa qemu inuu u dhaqmo sida mashiin dalwaddo ah marka qaab dhismeedka martida ay la mid tahay martida. Maya? Sikastaba xiisaha maqaalka.

    Quma rox !!

    Thanks.

  14.   Roberto dijo

    Galab wanaagsan, waad ku mahadsan tahay casharka aan raadinayay, laakiin waxaan u baahanahay inaad fadlan gacan i siiso, sida loo rakibo mashiinka kumbuyuutarka ah ee diskka banaanka ah, ha u isticmaalin martida martida loo yahay, mahadsanid

  15.   Bogga Asgardius dijo

    Qeybta ay ku shaqeyneyso qaybaha 'kernel modules' modprobe, kuwa u dhigma cpu-ga ayaa si dhab ah loo hawlgeliyaa, maadaama kvm uu adeegsado tilmaamaha hufnaanta ee kombuyuutarka si uu u shaqeeyo. Waxaan hayaa pc leh Intel cpu iyo amd gpu oo sidan ayey iigu shaqaysay