CentOS 7 Hypervisor I - Marang-rang a SMB

Kakaretso ea li-series: Li-network tsa likhomphutha tsa li-SME: Selelekela

Babali ba Ratehang!

Ka nako e 'ngoe re tobane le li-Servers tsa Professional tse tšehetsang feela Ts'ebetso e' ngoe ea Ts'ebetso nakong ea Tlhahiso ea bona - Ho fana qalong. Re kopane le li-server tseo nakong ena li ts'ehetsang tse latelang feela:

  • Microsoft Windows Server 2003 le Lelapa
  • Microsoft Windows Server 2008 le Lelapa
  • Microsoft Windows Server 2012 le Lelapa
  • Red Hat Enterprise Linux RHEL 4, 6, le 7
  • SUSE Linux Enterprise Server 12

Debian, Ubuntu, tse ling ...?. Ha ho letho. Tse kaholimo ha li bolele hore re ke ke ra kenya sistimi e fapaneng ea ts'ebetso, empa ho tla etsahalang ka waranti, bakhanni, lipatche, lintlafatso, jj. E re 'mali e mong le e mong a iketsetse liqeto.

Kajeno ke fumane ka puisano ea ka le motsoalle oa ka le mosebetsi-'moho le 'na Julio Cesar Carballo - o sebetsa Setsing sa Boitsebiso sa bohlokoa - hore o qetile matsatsi a ka bang 10 a kenya li-server tse 180 tsa litsebi «ho tloha mabokoseng a bona ho ea mohahong o kenyellelitsoeng kakaretso ea likhalase»Ka sistimi e sebetsang ea Ubuntu.

Ka botsebi ho ka khoneha ho sebelisa Debian, Ubuntu, CentOS - RHEL, SuSE, kapa sistimi e ngoe ea ts'ebetso UNIX Joaloka -o sa natsoe systemd- E khothalletsoa bakeng sa mosebetsi o joalo, joalo ka ts'ehetso ea bonono ho li-server tsa profeshenale tsa mofuta ofe kapa ofe.

Sehloohong sena re ke ke ra fana ka lihokela tse ngata lipakeng tsa mela, hobane re nahana hore tse fetileng li ne li le teng letotong la «Likhomphutha tsa likhomphutha bakeng sa li-SME«, Le hore ba se ba ntse ba tloaelane le mabitso, lipolelo le litlhaloso. Maqephe ao ke afe?

Le ha e sa hlahe ka ho khetheha letotong lena, ho bala sengoloa se latelang ho bohlokoa haholo, kaha ho fana ka lebaka le utloahalang la khetho ea liphallelo tsa Linux tseo re li entseng letotong la lihlooho tse boletsoeng ka holimo:

Kajeno re leka ho fana ka Tataiso ho kenya Hypervisor ka CentOS - Moeletsi oa CentOS. Sebali se seng le se seng se tlameha ho se fetole ho latela sehare sa seva sa hau, le ho latela litlhoko tsa moetsi. Re tlohetse file ea Mohato ka Mohato Ho kenya ka Litšoantšo, Ho thusa ho bala sengoloa sena.

  • Hopola hore Red Hat, Inc. ke mofani oa mantlha oa CentOS, le hore Red Hat, Inc ke moqapi oa libvirt, manejara oa bohloeki, oVirt, mme boholo ba tsohle tse amanang le bonono bo sebelisang Qemu -KVM le tsamaiso ea eona.

Liphetoho tse nyane kamora ho kenya mohato ka mohato

Ho nolofatsa bophelo, hobane re ntse re sena DNS ho Lan, re fetola faele hanyane / etc / host:

[motso @ centos7 ~] # nano / jj / mabotho
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 :: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.10.10.4 centos7.desdelinux.fan centos 10.10.10.1 sysadmin.desdelinux.fan sysadmin

Re tiisa ka mokhoa o hlakileng libaka tsa polokelo tseo re tla li sebelisa le ho nchafatsa sistimi:

[motso @ centos7 ~] # cd /etc/yum.repos.d/
[motso @ centos7 yum.repos.d] # ls -l
Kakaretso ea 28 -rw-r-r--. Motso oa 1 motso 1664 Dec 9 2015 CentOS-Base.repo -rw-r-r--. Motso oa 1 motso 1309 Dec 9 2015 CentOS-CR.repo -rw-r-r--. Motso oa 1 motso 649 Dec 9 2015 CentOS-Debuginfo.repo -rw-r-r--. Motso oa 1 motso 290 Dec 9 2015 CentOS-fasttrack.repo -rw-r-r--. Motso oa 1 motso 630 Dec 9 2015 CentOS-Media.repo -rw-r-r--. Motso oa 1 motso 1331 Dec 9 2015 CentOS-Mehloli.repo -rw-r-r--. Motso oa 1 motso 1952 Dec 9 2015 CentOS-Vault.repo

Ehlile ho phetse hantle ho bala likateng tsa lifaele tsa phatlalatso tsa mantlha tse tsoang litsing tsa polokelo tse khothalelitsoeng tsa CentOS. Liphetoho tseo re li etsang mona li bakoa ke taba ea hore ha re na marang-rang ebile re sebetsa le lits'oants'o tsa lehae tse jarollotsoeng ho WWW.

[motso @ centos7 yum.repos.d] # mkdir ea mantlha
[motso @ centos7 yum.repos.d] # mv CentOS- * ea mantlha /

[motso @ centos7 yum.repos.d] # nano centos-base.repo
[centos-base] lebitso = CentOS- $ releasever baseurl = http: //10.10.10.1/repos/centos/7/base/ gpgcheck = 0 nolofalletsa = 1

[motso @ centos7 yum.repos.d] # nano centos-updates.repo
[centos-updates]
name=CentOS-$releasever
baseurl=http://10.10.10.1/repos/centos/7/updates/x86_64/
gpgcheck=0
enabled=1

[root @ centos7 yum.repos.d] # yum hloekisa tsohle
Li-plugins tse laetsoeng: li-fastestmirror, li-langpacks Ho hloekisa libaka tsa polokelo: li-updates tsa centos-base centos-ho hloekisa tsohle

[root @ centos7 yum.repos.d] # yum ntlafatso
Li-plugins tse laetsoeng: li-fastestmirror, li-langpacks tsa li-centos-base | Lintlafatso tsa 3.4 kB 00:00 centos | 3.4 kB 00:00 (1/2): centos-base / primary_db | 5.3 MB 00:01 (2/2): li-centos-updates / primary_db | 9.1 MB 00:01 Ho tseba liipone tse lebelo haholo Ha ho liphutheloana tse tšoaetsoeng ntlafatso

Molaetsa "Che (ho na le) liphutheloana tse tšoailoeng bakeng sa ntlafatso" - "Ha ho liphutheloana tse tšoaetsoeng ntlafatso" e bonts'a hore, ka ho phatlalatsa lits'oants'o tsa morao-rao tse fumanehang ho rona nakong ea ho kenya, liphutheloana tsa morao-rao li kentsoe.

Ke lipakete life tse amanang le Hypervisor tse kentsoeng?

Foldareng / motso, Ea kenyang Anaconda siea faele e nang le mekhahlelo ea bohlokoahali e sebelisitsoeng nakong ea ts'ebetso ea CentOS. Re batla ho tseba hore na ke lipakete life tse kentsoeng, ho tloha hajoale ha re e-so sebelise taelo ka kotloloho yum kenya, ha u sebelisa sesebelisoa sa lits'oants'o.

[motso @ centos7 ~] # katse ea anaconda-ks.cfg ....
% liphutheloana @ ^ bonono-moamoheli-tikoloho
@base
@ lilaebrari tsa basebetsi
@lebohang
@liteboho
@ virtualization-hypervisor
@ virtualization-sethaleng
@ lisebelisoa tsa bonono
....

Lipapaka - liphutheloana tsa ka letšoao @ qalong, li bonts'a Lihlopha tsa Pakete. Molemong oa rona, ho fumana lenane la Lihlopha - Lihlopha, re ile ra tlameha ho kenya DVD ea ho kenya phatlalatsong ea libaka tsa polokelo:

[motso @ centos7 ~] # mount / dev / sr0 / media /
mount: / dev / sr0 e sirelelitsoe ka mongolo, mme ho beha ho bala feela

[motso @ centos7 ~] # nano /etc/yum.repos.d/centos-media.repo
[centos-media] name = CentOS- $ releasever baseurl = faele: /// media gpgcheck = 0 nolofalletsa = 1

[root @ centos7 ~] # yum hloekisa tsohle
Li-plugins tse laetsoeng: li-fastestmirror, li-langpacks Li-polokelo tsa polokelo: li-centos-base centos-media centos-liapdeite Ho hloekisa ntho e ngoe le e ngoe Ho hloekisa lethathamo la liipone tse potlakileng

[root @ centos7 ~] # yum ntlafatso
Li-plugins tse laetsoeng: li-fastestmirror, li-langpacks tsa li-centos-base | 3.4 kB 00:00 centos-e bolelang | Lintlafatso tsa li-centos tsa 3.6 kB 00:00 | 3.4 kB 00:00 (1/4): centos-media / group_gz | 155 kB 00:00 (2/4): centos-media / primary_db | 5.3 MB 00:00 (3/4): li-centos-base / primary_db | 5.3 MB 00:00 (4/4): li-centos-updates / primary_db | 9.1 MB 00:01 Ho tseba liipone tse lebelo haholo Ha ho liphutheloana tse tšoaetsoeng ntlafatso

[root @ centos7 ~] # yum repolist tsohle
Li-plugins tse laetsoeng: li-fastestmirror, li-langpacks tse jarang lebelo la seipone ho tsoa ho li-cached hostfile repository id repository name centos-base status

[root @ centos7 ~] lenane la lihlopha tsa # yum
... Lihlopha tsa Tikoloho tse fumanehang: Sesebelisoa sa Ts'ebetso e Nyane ea Khomphutha ea Sesebelisoa sa Sesebelisoa sa Sesebelisoa sa Phatlalatso le Print File File Basic Web Server Virtualization Host Server e nang le GUI Gnome Desktop Plasma KDE Workspaces Development le Creative Workstation Lihlopha tse fumanehang: Tsamaiso ea Tsamaiso ea Lilaeborari tse Ts'ehetsoeng Lefa la UNIX Ts'ehetso ea Ts'ebetso ea Ts'ebetso Lisebelisoa tsa Ntšetso-pele Lisebelisoa tsa Ts'ireletso Lisebelisoa tsa Graphical Administration Lisebelisoa Lisebelisoa tsa Internet Console. Ts'ehetso ea mahlale Ts'ehetso ea karete e bohlale ...

ó

[root @ centos7 ~] lihlopha tsa lihlopha tsa # yum
Li-plugins tse laetsoeng: li-fastestmirror, li-langpacks tse jarang lebelo la seipone ho tsoa ho li-cached hostfile Lihlopha tsa Tikoloho tse fumanehang: Khakanyo e nyane ea Compute Node (compute-node-tikoloho) Sesebelisoa sa meralo ea motheo web server (web-server-environment) Virtualization host (virtualization-host-environment) Seva le GUI (graphical-server-tikoloho) Gnome desktop (gnome-desktop-tikoloho) Plasma KDE libaka tsa mosebetsi (kde-desktop-tikoloho) Nts'etsopele le Pōpo Workstation (developer-workstation-environment) Lihlopha tse kentsoeng: Libraries tse lumellanang (li-library-libraries) Lefa la UNIX Support (legacy-unix) Lisebelisoa tsa Tsamaiso ea Sistimi (system-admin-tools) Lisebelisoa tsa ts'ireletso (lisebelisoa tsa ts'ireletso) -management) Lisebelisoa tsa nts'etsopele (nts'etsopele) Lisebelisoa tsa papatso ea litšoantšo ho sebeletsa (graphical-admin-tools) Lisebelisoa tsa ho tšelisa Inthanete. (console-internet) Tšehetso ea mahlale (saense) Ts'ehetso ea karete e bohlale (karete e bohlale)

Nakong ea ho kenya re khetha khetho e kholo Sebaka sa Virtualization Host le ka hare ho eena ho Sethala sa Virtualization:

[root @ centos7 ~] # yum groupinfo virtualization-moamoheli-tikoloho
- Sehlopha sa Tikoloho: Id ea tikoloho ea tikoloho ea Virtualization: moamoheli-moamoheli-tikoloho Tlhaloso: Bonyane moamoheli oa bonono Lihlopha tse tlamang: motheo oa motheo
    khopolo-taba
    lisebelisoa tsa bonono
Lihlopha tse ikhethileng: debugging + network-file-system-client + remote-system-management
    virtualization-sethala

[motso @ centos7 ~] # yum groupinfo virtualization-hypervisor
.... Sehlopha: Virtualization Hypervisor Group-Id: virtualization-hypervisor Tlhaloso: Sistimi e nyane ka ho fetisisa e ka khonehang ea ho amohela. Liphutheloana tse tlamang:
   = libvirt
   = qemu-kvm
 Liphutheloana tsa boikhethelo: qemu-kvm-tools

[root @ centos7 ~] # yum groupinfo lisebelisoa tsa bonono
.... Sehlopha: Lisebelisoa tsa ho iketsetsa sehlopha-Id: lisebelisoa tsa bonono Tlhaloso: Lisebelisoa tsa ho laola setšoantšo se sa sebetseng. Liphutheloana tsa mantlha:
   = libguestfs
 Liphutheloana tsa boikhethelo: libguestfs-java libguestfs-lisebelisoa libguestfs-lithulusi-c

[motso @ centos7 ~] # yum groupinfo virtualization-platform
.... Sehlopha: Virtualization Platform Group-Id: virtualization-platform Tlhaloso: E fana ka sebopeho sa ho fihlella le ho laola lits'oants'o le baeti. Liphutheloana tse hlokahalang: libvirt
   = moreki-libvirt
   = ntle-mang
 Liphutheloana tsa boikhethelo: terata-virtd-libvirt terata-virtd-multicast terata-virtd-serial libvirt-cim libvirt-java libvirt-snmp perl-Sys-Virt

Mokhoa o mong oa ho fumana Lethathamo le Felletseng la Liphutheloana tse kentsoeng ke tse latelang:

[root @ centos7 ~] ho kentsoe lenane la # yum
[root @ centos7 ~] # yum lethathamo le kentsoe> kenya.txt

E amana le Hypervisor

[motso @ centos7 ~] # egrep "(vir | kvm | qemu)" e kentsoe.txt
ipxe-roms-qemu.noarch 20130517-8.gitc4bce43.el7_2.1 @Updates libvirt.x86_64 1.2.17-13.el7_2.5 @Updates libvirt-client.x86_64 1.2.17-13.el7_2.5 @Updates libvirt- daemon.x86_64 1.2.17-13.el7_2.5 @Updates libvirt-daemon-config-network.x86_64 1.2.17-13.el7_2.5 @Updates libvirt-daemon-config-nwfilter.x86_64 1.2.17-13.el7_2.5 .86 @Updates libvirt-daemon-driver-interface.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver-lxc.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver- network.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver-nodedev.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver-nwfilter.x64_1.2.17 13-7.el2.5_86 .64 @Updates libvirt-daemon-driver-qemu.x1.2.17_13 7-2.5.el86_64 @Updates libvirt-daemon-driver-Secret.x1.2.17_13 7-2.5.el86_64 polokelo.x1.2.17_13 7-2.5.el86_64 @Updates libvirt-daemon-kvm.x1.2.17_13 7-2.5.el86_64 @Updates libvirt-python.x1.2.17_2 7-86.el64 @Base qemu-img. x10_1.5.3 105: 7-2.7.el86_64 @Updates qemu-kvm.x10_1.5.3 105: 7. 2.7-86.el64_10 @Updates qemu-kvm-common.x1.5.3_105 7: 2.7-86.el64_1.13 @Updates virt-what. el6_7 @Updates

Hlokomela hore sehlahisoa se kaholimo se bonts'a polokelo e ngoe le e ngoe e kentsoeng ho. Ha re le tseleng, re lekola ka tsela e sa tobang hore na re sebetsa le mofuta oa CentOS 7.2. Re ka boela ra bona hore, ka filtara e sebelisitsoeng lenaneng la lipakana, mohlala, package libapilo eo hape e leng karolo ea Sethala sa Virtualization.

Re fana ka maikutlo sheba Lethathamo la Liphutheloana tse kentsoeng hanyane.

Ts'ebetso ea hoqetela ... kapa hoo e ka bang

Qetella phetolo ea hypervisor khomphuteng 'me u thehe mochini oa hau oa pele o hole, joalo ka ha re bonts'itse sengoloeng Virt-Manager le virsh: Tsamaiso ea Remote ka SSH.

Bakeng sa babali ba khethang Console ea kamehla e otloang, re tla nehela sengoloeng se latelang «CentOS 7 Hypervisor: Remote Administration» moo re tla sebelisa haholo-holo litaelo virsh y ho kenya baleha hole le moo re sebeletsang teng khomphuteng.

Ho kenya mohato ka mohato ka litšoantšo

Mehopolo:

  • Litšoantšo lia itlhalosa. Setsi Anaconda ke CentOS ke sesebelisoa se matla haholo sehlopheng sa eona
  • Litekanyetso tse bontšitsoeng ke tsa liteko feela 'me ha ho nako eo li lokelang ho nkuoa joalo ka ha li khothaletsoa kapa li le molaong.
  • Taelo e lateloang ho khotsofatsa litlhoko tsa se kenyang, ka mohlala ha se letho le leng
  • Eo re sa khethang Leano la Ts'ireletso - TS'IRELETSO LEANO leha e le efe ha ho bolele hore u lokela. Ho feta moo, re u mema hore u e sebelise
  • Ka khetho ea KDUMP ho etsahala joalo ka ntlha e fetileng
  • Ha ho hlophisoa ha Network, ha re ame likhetho tse ngata hobane ha re li hloke ho etsa seva ea rona ea liteko. Ha ho potang hore, leha e le teko, e sebetsa hantle haholo
  • Mofuta oa karohano le boholo ba likarolo tsa eona ke mohlala mme ha ho letho le leng hape
  • KHETHO EA SOFTWARE ke ho fumana Hypervisor ka palo e tlase ea liphutheloana tse kentsoeng. Re u mema hore u matlafatse seva sa hau tlhahiso
  • Mabapi le INSTALLATION SOURCE, re pheta hore re sebelisa polokelo ea lehae ka lebaka la khaello ea khokahano ea lapeng ho Internet. Re sebetsa le lits'oants'o tsa lehae tse jarollotsoeng - ke metsoalle le basebetsi 'moho le WWW
  • Haeba kamora ho qala bocha sistimi e sebetsang qetellong ea ho kenya o kopuoa ho bala le ho amohela Tumellano ea ho qetela ea laesense, tatellano ea linotlolo ke "1", "2" le "c", ntle le matšoao a qotsulo. Ho lebohile nna!. 😉

Setšoantšo sa litšoantšo


Litaba tsa sengoloa sena li latela melao-motheo ea rona ea melao ea boitšoaro ea bongoli. Ho tlaleha phoso tlanya mona.

Maikutlo a 6, siea ea hau

Siea maikutlo a hau

aterese ya hao ya imeile ke ke ho phatlalatswa. masimo a hlokahala a tšoailoe ka *

*

*

  1. E ikarabella bakeng sa data: Miguel Ángel Gatón
  2. Morero oa data: Laola SPAM, tsamaiso ea maikutlo.
  3. Molao: Tumello ea hau
  4. Puisano ea data: Lintlha li ke ke tsa tsebisoa batho ba boraro ntle le ka tlamo ea molao.
  5. Polokelo ea data: Database e hapiloeng ke Occentus Networks (EU)
  6. Litokelo: Nako efe kapa efe o ka fokotsa, oa hlaphoheloa mme oa hlakola tlhaiso-leseling ea hau.

  1.   Zodiac Carburus a re

    Post e ntle haholo, Fico. Ke boetse ke lebelletse e latelang ho tsamaiso e hole ka virsh le virt-install. Ke kenya kopo ea tlhahiso hoo e ka bang lingoloa tsohle tsa hau tsa lethathamo la PYMES mme ho fihlela joale ke ntse ke sebetsa hantle haholo. Ke leboha Fico

  2.   federico a re

    Ke leboha haholo motsoalle Zodiac. Litaba tsena li khahlisa babali ba fokolang, ho bonahala.

  3.   juanjo a re

    Lingoloa li ntle, e sebetsa e le thuso ea ho hopola lintho tseo u li lebalang kapa u li tlatsellelitseng tlatsetso e ananeloang haholo

    1.    federico a re

      Ke leboha ho fana ka maikutlo, Juanjo. Ke sebelisa lingoliloeng tsena e le tataiso ea ts'ebetsong.

  4.   Ismael Alvarez Wong a re

    Fico, joalo ka kamehla le ho pholletsa le letoto la lihlooho ho tla fihlela joale, sengoloa se botsitsoeng se hantle haholo.
    Kamehla ho na le ho hong ho hocha: mona ke hore, ho fapana le ho kenya CentOS «fokolang» (ke ntho e tloaelehileng); Ho tsoa ts'ebetsong e ts'oanang ea ho kenya, tikoloho ea «Virt Host» e khethoa hammoho le sethala sa eona sa Virt le lilaebrari tse lumellanang.
    Mokhoa oa ho fetola mohloli oa kamehla oa ho kenya oo motho e mong le e mong a o sebelisang (polokelo e fumanehang ho CentOS installer ISO DVD) bakeng sa polokelo ea lehae marang-rang a lumelloang ke http le eona e ntle haholo (bona ke tlamo, hlophisa karete marang-rang a pele, hantle haholo hape ena). Ntho e tloaelehileng ke hore kamora ho kena ka har'a seva ka lekhetlo la pele le ho hlophisa khokahano ea marang-rang ea rona, re nolofalletsa polokelo ea lehae.
    E bohlokoa haholo mehato eohle e fanoeng ka mokhoa o makatsang oa ho etsa lipatlisiso tsa liphutheloana tsohle tse kentsoeng tse amanang le Virt kemu (ho tloha anaconda.cfg, ho hlomella polokelo ea ISO DVD ho sebetsa ka nako eo o sebelisa Lihlopha).
    Ha ho letho motsoalle, boholo ba tlhaiso-leseling mme ho latela serapa sa ho qetela, sengoloa se latelang se tšepisa tse ling tse ngata.

  5.   federico a re

    Kea leboha motsoalle Wong ka litlhaloso tsa hau. Ke lekile ho nka mokhoa o fapaneng oa ho tseba liphutheloana tse kentsoeng. Ke ne ke nahana hore ke taba e khahlisang, ke ka hona ke e hlahisitseng. Ke u emetse lihloohong tsa ka tse latelang