I-Debian 7 "Wheezy" ne-QEMU-KVM (II) yokugcina

Sanibonani zihlobo !. Siyaqhubeka ne- Isingeniso sokusebenzisa i-QEMU-KVM kuDebian Wheezy ukwenza imishini ebonakalayo. Ukwenza lula ukuxhumana kusuka manje sizobiza “Host"O Bamba emshinini osekela yonke imishini ebonakalayo, futhi"Guest"Noma isivakashi kunoma yimuphi umshini obonakalayo.

Namuhla sizobona ukuthi singaba kanjani nabasingathi nezivakashi ezinamakheli e-IP kunethiwekhi efanayo, nokuthi singaphatha kanjani Ababungazi nabavakashi abakude.

Futhi ngaphandle kokuqhubeka, ake siqale ibhizinisi!

Ungaba kanjani noMgcini nezivakashi ezinamakheli e-IP e-LAN yethu?

Esihlokweni esandulele lapho ufaka amaphakheji adingekayo sincoma ibhulorho-utils y hal. Owokuqala uzosivumela ukuthi senze iBhuloho, kanti owesibili uzolikhombisa kahle kusixhumi esibonakalayo se-Virtual Machine Manager.

Ngezinhloso ezisebenzayo nokukwazi ukwabela amakheli we-IP kusuka kunethiwekhi yethu kubavakashi, into yokuqala okufanele siyenze yi- Inethiwekhi Ibhuloho noma i- “Bridge” enamakhadi wenethiwekhi Yomsingathi. Kungatholakala ngezindlela eziningi ngokuya ngemibhalo ehambisana nayo etholakala ku- / usr / shar / doc / bridge-utils, noma lowo otholakala ku-Inthanethi. Sizokwenza ngokuhlela ifayela lokumisa / njll / inethiwekhi / ukuxhumana, kodwa hhayi ngaphambi kokumisa ukusebenza kwesixhumi esibonakalayo eth0 (nabanye)). Asikayihloli nge Umphathi Wenethiwekhi ukuphatha ukuxhumana kwenethiwekhi. Asisebenzisi iMenenja yenethiwekhi kudeskithophu yethu. Kulungile?.

  • Simisa isikhombimsebenzisi se-eth0 (nabanye):
ifdown eth0
  • Sihlela ifayela / njll / inethiwekhi / ukuxhumana nomhleli wethu esimthandayo futhi sikushiya nokuqukethwe okulandelayo ngokuya ngokunconyiwe kufayela le- wiki.debian.org:
# Leli fayela lichaza izixhumanisi zenethiwekhi ezitholakala kusistimu yakho # nokuthi ungazisebenzisa kanjani. Ngemininingwane engaphezulu, bheka izixhumi (5). # I-loopback network interface auto lo iface lo inet loopback # Setha izixhumi ezibonakalayo ngesandla, uvikele izingxabano, isb. Umphathi wenethiwekhi iface eth0 inet manual # iface eth1 inet manual # iface eth1 inet manual auto br0 iface br0 inet static address 10.10.10.1 network 10.10.10.0 netmask 255.255.255.0 isakaza 10.10.10.255 isango 10.10.10.10 bridge_ports all # bridge_ports eth0 bridge_stp off # khubaza iSpanning Tree Protocol Bridge_waitport 0 # akukho ukulibala ngaphambi kokuthi itheku litholakale ibhuloho_fd 0 # akukho ukulibaziseka kokudlulisa

Siphakamisa i-interface br0

i-ifup bro Ilinde ubuningi bemizuzwana engu-0 # hhayi ukubambezeleka ngaphambi kokuba itheku litholakale ukuthi litholakale. Ilinde i-br0 ukuthi ilungele (i-MAXWAIT amasekhondi ama-2).

Kufayela / njll / inethiwekhi / ukuxhumana, kufanele sicabangele:

  • Shintsha amakheli e-IP ne-subnet kulawo we-LAN yethu.
  • Yabela u- br0 i-IP efanayo ne eth0 Okomzimba (i-IP yomshini wethu).
  • Umugqa othi “ibhuloho_yivala", Kushiwo STP (kusuka esiNgisini Sukwethuka Tree Pi-rotocol), okuyi-protocol 2 yenethiwekhi yenethiwekhi ye- Imodeli ye-OSI (Isendlalelo sedatha yokuxhumanisa). Umsebenzi wawo ukuphatha ukutholakala kwama-loops kuma-topologies wenethiwekhi ngenxa yokuba khona kwezixhumanisi ezingafuneki (ezidingekayo ezimeni eziningi ukuqinisekisa ukutholakala kokuxhumeka). [tomado kusuka kuWikipedia, Kulungile?]
  • Ngalokhu kulungiselelwa, njalo lapho siqala i-Host, i-interface izophakanyiswa ngokuzenzekelayo. br0.

Labo bethu abajwayele ukuqondiswa yindatshana eyedlule, sizoqinisekisa kusukela manje kuqhubeke ukuthi iWizard yokwakhiwa kweMishini Ebonakalayo izokhetha ngokuzenzakalela Umthombo wedivayisi "Idivayisi yeqembu eth0 (Ibhuloho 'br0')", Njenge-Virtual Network Interface yesihambeli ngasinye (Umshini Obonakalayo) esiyidalayo. Kodwa-ke singaba nemishini exhunywe ku-br0 noma kwi-NAT.

umphathi we-virt-11

 

Ngale ndlela elula singabela amakheli we-IP we-LAN yethu kumishini yethu ebonakalayo. Impela, inqobo nje uma kungamakheli angasetshenziswanga. Uma sihlola noma sisebenzisa uhlelo olusebenzayo olunemvelo yedeskithophu futhi ku-LAN yethu sine-server ye-DHCP, singakwazi ukumisa ikhadi lenethiwekhi lezivakashi ukuze lilungiselelwe kusetshenziswa i-DHCP. Ngendlela efanayo, singalungiselela ibhuloho le-br0 ukuthola ikheli lalo le-IP kwiseva ye-DHCP, noma kungesilo elinconywe kakhulu.

Ungawaphatha Kanjani ama-Remote Homes Usebenzisa i-Virtual Machine Manager Connections

Esizokuchaza kuzo kuvumelekile kuDeskithophu esiyiqokele ukuphatha abaphathi (aba) ababungazi besihambeli. Vele, ama-Homes akude angaba ngamanye ama-Desktops, inqobo nje uma i-Hardware yabo inezandiso zokwenza izinto.

Okuwukuphela kwephakeji okufanele siyifakele kudeskithophu yethu yi- i-ssh-Askpass, noma lezo esizisebenzisayo I-GNOME el i-ssh-askpass-gnome. Masingakhohlwa ukufaka iphakheji i-openssh-server ku-Host eyihlane ukuze ukwazi ukufinyelela kuyo shh.

Ukufaka i-Connection ku-Host eyihlane nge-Virtual Machine Manager sizokwenza okulandelayo:

umphathi we-virt-15 umphathi we-virt-16 umphathi we-virt-14 umphathi we-virt-13 umphathi we-virt-12

Izithombe ziyazichaza. Sincoma ukuphequlula ZONKE izinketho ezinikezwa yifomethi ye- IMenenja Yemishini Ebonakalayo futhi HLOLA izici nemingcele esingayidlulisela kumashini we-Virtual adalwe ngayo.

Futhi Umsebenzi usuphelile. Kuze adventure olandelayo!


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

Amazwana ayi-22, 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.   eliotime3000 kusho

    Siyakuhalalisela ngomsebenzi owenze nge-QVM. Manje, ngiqedela okokufundisa mayelana nokufakwa kanye / noma ukumiswa kweZPanelX ngoba ekugcineni ngikwazile ukuyifaka ngenxa yomnikelo uPetercheco awunikeze ngokuncika kweZPanel.

    Noma kunjalo, lapho nje ngiqeda ukulanda iDVD ye-Debian Wheezy (ngiyaxolisa uma i-inthanethi yami ihamba kancane), ngizozama.

    1.    phico kusho

      Ngiyabonga ElioTime !!!

      1.    eliotime3000 kusho

        Wamukelekile mngani. Ngaphezu kwalokho, ngithemba ukuthi bazokushicilela engikuthumele mayelana ne-ZPanelX futhi okungenani bathumele izithombe-skrini zokuthi kuhambe kanjani.

    2.    petercheco kusho

      Ngiyajabula ukuthi ngikusizile mngani 😀

      1.    eliotime3000 kusho

        Siyabonga ngezeluleko, petercheco. Ngaphezu kwalokho, lapho ngifaka i-zpanel, ngincoma ukusebenzisa ip yangaphakathi esikhundleni sangaphandle noma esidlangalaleni (ukukhuluma iqiniso, ngenze iphutha elikhulu lokusebenzisa i-laip yomphakathi noma yangaphandle futhi ngeshwa, angikwazanga ukufinyelela kuphaneli futhi bekufanele ngenze konke futhi.

  2.   phico kusho

    Uxolo !!! Ngivele ngabona ukuthi ukuhleleka kwezithombe kungemuva. Ngamanye amagama, kufanele bafunde kusuka phansi kuya phezulu. 🙂

    1.    eliotime3000 kusho

      I-Errare humanum est.

  3.   Julio Cesar kusho

    Kuhle kakhulu umlingani wami, qhubeka nokwenza iminikelo emihle 🙂

    1.    UFederico A. Valdés Toujague kusho

      Ngiyabonga mngani wami !!!.

  4.   pvv92 kusho

    Ngivivinya i-opera entsha, okwamanje kancane ...

    1.    pvv92 kusho

      Ayifaki ngisho ne-opera ... yehluleka

    2.    izinga kusho

      Indoda .. yenza izivivinyo kwenye intambo .. woza, ungabi nonya. 😛

  5.   UFederico A. Valdés Toujague kusho

    Ngiyabonga u-Elav. Kubonakala kimi ukuthi kufanele baxoxe kwenye indawo. 🙂

  6.   umagazine kusho

    I-Deluxe compa: D!

    Ngiyabonga kakhulu ngesifundo!

    Ukubingelela!

    1.    UFederico A. Valdés Toujague kusho

      Wamukelekile. Siyabonga ngokuphawula.

  7.   ed kusho

    Ukubingelela nokuhalalisela isifundo, ngiphenya ukuthi ungayisebenzisa kanjani i-firewall (clearos, monowall, pfsense ...) umbuzo wami ukuthi elinye lamakhadi enethiwekhi lingenziwa kanjani lisebenze kuphela ngomshini obonakalayo, okungukuthi, umshini obonakalayo ngubani ongayibona futhi ayiphathe kepha uhlelo lwe-Host aluyiboni.

    1.    UFederico Antonio Valdés Toujague kusho

      @simphiwe Ngokuqondene nami kuqala kunakho konke. Isixazululo esingaba khona kungaba okulandelayo, yize kufanele ngikutshele ukuthi angikazami. Kulungile?.

      Ake sithi unayo kwi-Host esekela i-Virtual Firewall, okungenani ama-interface amabili wenethiwekhi: i-eth0 ne-eth1. Ake sithi kulelo Hhostela unemishini ebonakalayo ebonakalayo exhunywe kubhuloho le-br0, elimenyezelwa kanjena:

      iface br0 inet static
      ikheli le-10.10.10.1
      inethiwekhi ye-10.10.10.0
      I-255.255.255.0 ye-netmask
      kusakaza i-10.10.10.255
      i-bridge_ports eth0
      bridge_stp off # khubaza i-Spanning Tree Protocol
      bridge_waitport 0 # akukho ukubambezeleka ngaphambi kokuba itheku litholakale
      bridge_fd 0 # akukho ukulibaziseka kokudlulisela phambili

      Qaphela ukuthi isikhombimsebenzisi se-eth0 kuphela esivinjelwe. Isixhumi esibonakalayo se-eth1, esingasetshenziswa yi-Host, yiso kanye okufanele usingeze ku-Virtual Firewall yakho futhi siyilungiselele kahle ukuze sixhumeke kwi-Internet WAN ngamakheli we-IP abakunike wona. Vele, i-Firewall kufanele futhi ibe nenye inethiwekhi yokuxhuma kwi-LAN yakho futhi isebenze njengeGateway noma iGateway kuwo wonke amanye amakhompyutha owagunyazayo ukuphuma ngeFirewall. Leyo interface izobe idalwe lapho ukhetha i-br0 njengesixhumi esibonakalayo somshini wakho obonakalayo.

      Ngiyakutshela futhi ukuthi uma uphasa i-eth1 ye-Host ibheke ku-Virtual Firewall, uMgcini ngeke akwazi ukuyisebenzisa, ngaphandle kokuthi wenze ukucubungula okuthuthukile kulelo khadi lenethiwekhi.

      Zama ungitshele.

  8.   frederico kusho

    Ngingawaphatha kanjani amakhadi wenethiwekhi amabili e-etemu ku-qemu? eyodwa eyomgcini wami neyodwa ye-qemu. Ngikwenza ngoba nginezindawo ezimbili zokufinyelela ezinokuxhumana okuzimele. Umqondo wami ukusebenzisa okulandwayo okumbalwa ngesifufula (umshini obonakalayo ku-qemu) nomunye ukusetshenziselwa nsuku zonke ku-archlinux yami) (Host)

    1.    Federico kusho

      ungenza ibhuloho ngekhadi ofuna ukulixhumanisa nesifufula sakho. Isibonelo, uma i-eth1 iyilokho okufunayo ngalokho, umemezela ibhuloho nayo. bese unamathisela ikhadi lenethiwekhi elibonakalayo lomshini wakho wesifufula kulelo bhuloho.

  9.   renzo kusho

    Sawubona lapho ufaka inethiwekhi lapho ungasusa khona lokhu ukuze kungaveli kamuva

    1.    UFederico Antonio Valdés Toujague kusho

      Endaweni efanayo lapho uyidale khona. Umphathi we-Virtual Machine noma iMenenja eyi-Virtual. Hlela Imenyu - Imininingwane Yokuxhumana - Amanethiwekhi Abonakalayo. Kulelo khasi, ungeza noma ususe amanethiwekhi abonakalayo.

  10.   jathan kusho

    Sanibonani umphakathi kanye neFico, ngiyabonga ngalezi zihloko ezimbili, ziwusizo olukhulu futhi zilula. Ngine-QEMU-KVM efakwe emshinini we-i686 nge-Debian Jessie 8.3 futhi konke kuhamba kahle. Ngingathanda lokho nge-IP elungisiwe engiyinikeze umphathi (okuyikhompyutha enoDebian Jessie 8.3), esinye sezivakashi zami singafinyelelwa okungumshini obonakalayo futhi oneDebian Jessie 8.3 engizowusebenzisa njengewebhu kanye nedatha yedatha yedatha ukuze ngaphakathi kwenethiwekhi yendawo yomsebenzi wami, abanye ozakwethu bakwazi ukuxhuma kulezi zinqolobane nge-IP yami engaguquki njengokungathi zifakwe kukhompyutha ebanjelwe. Ngichaze ukumiswa kwesixhumi esibonakalayo sebhuloho lekhompiyutha yami engiyisingathile njengoba uchazile kule ndatshana, konke bekuhamba kahle futhi ngaphakathi komphathi we-virt sengishintshe inethiwekhi ye-nat yaba i-br0 kuzinketho zokuxhuma zomshini obonakalayo engiwushoyo, kepha manje mina ayikwazi ukufinyelela nge-SSH noma nganoma iziphi izinsizakalo zewebhu kulesi sivakashi nge-IP engaguquki engiyinikeze kusuka kunethiwekhi yendawo yangasese 192.168.122.0/24 ye-QEMU-KVM ngenkathi ise-nat. Ngabe ukhona umuntu ongangisiza angitshele ukuthi ngingayisebenzisa kanjani i-IP yomsingathi wami omisiwe ukuxhuma kulesi sivakashi sendawo nangamanye ama-computer engisebenza nawo?