CentOS 7 Hypervisor II ati ipari - Awọn nẹtiwọọki SMB

Atọka gbogbogbo ti jara: Awọn nẹtiwọọki Kọmputa fun Awọn SME: Ifihan

Kaabo awọn ọrẹ!

Ṣe o mọ kini? Eyikeyi gbolohun miiran fun ibẹrẹ nkan, bi Mo ti gbiyanju ninu awọn ifiweranṣẹ ti tẹlẹ, ko dabi ẹni ti o yẹ julọ, ati idi idi ti Mo fi pada si ikini mi ti o wọpọ, ni pipe ati ti fẹ, pẹlu awọn onkawe ti a mọ tun jẹ ti Agbegbe naa. .

Oni ni ojo kini odun 2017 ati pe a fe na si gbogbo awon onkawe wa, Oriire olooto julo lori Odun Tuntun ti o sese bere:

  • ! Ikini ati Ọdun Tuntun fun gbogbo eniyan!.

Ati bi Ifihan fun ibẹrẹ ọdun, a mu apakan 2 wa fun ọ -ati ipari- ti bawo ni a ṣe le ṣe latọna jijin ṣakoso hypervisor lori CentOS 7 ṣẹda ninu nkan ti tẹlẹ ninu jara Awọn nẹtiwọki SME, bi a ṣe pe ni lati igba bayi lọ fun kukuru.

A kii yoo funni ni ọpọlọpọ awọn ọna asopọ laarin awọn ila, nitori a ro pe awọn ifiweranṣẹ iṣaaju ninu jara «Awọn nẹtiwọọki Kọmputa fun Awọn SME«, Ati pe wọn ti mọ tẹlẹ pẹlu awọn orukọ, awọn adape ati awọn itumọ. Kini awọn oju-iwe wọnyẹn:

A tun ṣeduro kika nkan ti n tẹle, bi o ṣe idalare apakan ipinnu awọn pinpin Lainos ti a ṣe fun awọn atẹjade ti a ti sọ tẹlẹ:

Latọna jijin ṣiṣakoso hypervisor centos7

A yoo lo itọnisọna nikan ati awọn aṣẹ wundia y virt-fi sori ẹrọ. Lati ṣe igbesi aye rọrun fun wa nitori A KO NI DNS sibẹsibẹ:

buzz @ sysadmin: ~ $ nano / ati be be lo / awọn ogun
127.0.0.1 localhost 10.10.10.10 sysadmin.desdelinux.fan sysadmin 10.10.10.4 centos7.desdelinux.fan centos7 # Awọn ila wọnyi ni o wuni fun awọn ogun to lagbara IPv6 :: 1 localhost ip6-localhost ip6-loopback ff02 :: 1 ip6-allnodes ff02 :: 2 ip6-allrouter # ------------------------------

A kepe aṣẹ naa wundia lati ibi iṣẹ wa:

buzz @ sysadmin: ~ $ sudo virsh
[sudo] ọrọigbaniwọle fun buzz: Kaabo si virsh, ebute ibanisọrọ agbara ipa. Iru: 'iranlọwọ' fun iranlọwọ pẹlu awọn aṣẹ 'dawọ' lati dawọ

Lati yago fun ṣiṣe awọn pipaṣẹ lori hypervisor ti ko tọ!

wundia # uri
qemu: / eto
# A wa ni hypervisor agbegbe tabi "sysadmin".

A sopọ pẹlu hypervisor latọna jijin

virsh # so qemu + ssh: // root @ centos7 / eto
Otitọ ti agbalejo 'centos7 (10.10.10.4)' ko le fi idi mulẹ. Iwọn ika ọwọ ECDSA jẹ 71: b9: d9: f7: 30: 58: 07: 7f: a9: 78: 53: 21: 54: 67: 26: 4f. Ṣe o da ọ loju pe o fẹ tẹsiwaju sisopọ (bẹẹni / bẹẹkọ)? bẹẹni gbongbo @ centos7's ọrọigbaniwọle:

Ti igbesẹ ti tẹlẹ ba pada aṣiṣe aṣiri, o gbọdọ paarẹ faili naa / gbongbo /.ssh/known_hosts, ki o tun gbiyanju.

wundia # uri
qemu + ssh: // root @ centos7 / system
# A ti sopọ mọ tẹlẹ si hypervisor latọna jijin

Ifipamọ lori hypervisor latọna jijin

virsh # adagun-akojọ
 Orukọ Ipilẹṣẹ Ipinle -------------------------------------------- aiyipada nṣiṣe lọwọ bẹẹni       

virsh # aiyipada-pool-info
Orukọ: aiyipada UUID: 71d42689-cfaf-4190-bad8-c395640ceee7 Ipinle: nṣiṣẹ Itẹsiwaju: bẹẹni Aifọwọyi: bẹẹni Agbara: 155.43 GiB Ipin: 1.28 GiB Wa: 154.15 GiB

virsh # aiyipada-pool-dumpxml
aiyipada 71d42689-cfaf-4190-bad8-c395640ceee7 166896857088 1378762752 165518094336 / var / lib / libvirt / awọn aworan 0711 0 0 system_u: object_r: virt_image_t: s0

A ko fẹ ki awọn ero wa ni fipamọ ni / var / lib / libvirt / awọn aworan

virsh # ijade

A ṣẹda ibi ipamọ tuntun ni centos7

buzz @ sysadmin: ~ $ ssh root @ centos7
root @ centos7's ọrọigbaniwọle: 

[gbongbo @ centos7 ~] # mkdir / ile / vms
[gbongbo @ centos7 ~] # ijade
logout Asopọ to 10.10.10.4 ni pipade.

A pada si sysadmin ati si virsh

buzz @ sysadmin: ~ $ sudo virsh
Kaabọ si virsh, ebute ibanisọrọ agbara ipa. Tẹ: 'iranlọwọ' fun iranlọwọ pẹlu awọn aṣẹ 'dawọ' lati dawọ

virsh # so qemu + ssh: // root @ centos7 / eto
root @ centos7's ọrọigbaniwọle: 

wundia # uri
qemu + ssh: // root @ centos7 / system

A ko fẹ ibẹrẹ laifọwọyi ti idogo "aiyipada"

aiyipada # pool-autostart aiyipada-ṣee ṣe
Aiyipada adagun omi ti a ko samisi bi a ti tun bẹrẹ

A ṣalaye garawa ibi ipamọ tuntun ninu tuntun ti a ṣẹda / ile / vms

virsh # adagun-ṣalaye-bi -orukọ centos7-vms - iru dir - ipilẹ / ile / vms - ọna kika-orisun xfs
Pool centos7-vms ti ṣalaye

virsh # adagun-akojọ-gbogbo
 Lorukọ Ipinle Aifọwọyi -------------------------------------------- centos7-vms aláìṣiṣẹ ko si aiyipada ṣiṣẹ rara

virsh # adagun-ibẹrẹ centos7-vms
Pool centos7-vms bẹrẹ

virsh # adagun-akojọ-gbogbo
 Orukọ Ipilẹṣẹ Ipinle ------------------------------------------- centos7-vms ti n ṣiṣẹ ko si aiyipada ṣiṣẹ rara

virsh # adagun-autostart centos7-vms
Pool centos7-vms samisi bi a ti tun bẹrẹ

virsh # adagun-info centos7-vms
Orukọ: centos7-vms UUID: 6a9e0f8c-03dc-405b-8b52-f1899b632adc Ipinle: nṣiṣẹ Itẹsiwaju: bẹẹni Autostart: bẹẹni Agbara: 155.43 GiB Pin: 1.29 GiB Wa: 154.15 GiB

virsh # adagun-dumpxml centos7-vms
sentos7-vms 6a9e0f8c-03dc-405b-8b52-f1899b632adc 166896857088 1381736448 165515120640 / ile / vms 0755 0 0 unconfined_u: object_r: home_root_t: s0

A ṣẹda aworan ti ẹrọ foju «wordpress»

Akọsilẹ: aworan ISO ti openSUSE a ti daakọ tẹlẹ si ibi ipamọ ibi ipamọ centos7-vms. Ti o ni idi ti o fi ṣe atokọ ni isalẹ. O han gbangba pe a fẹ fi WordPress sori ẹrọ lori pinpin OpenSuSE.

virsh # adagun-itura centos7-vms
Pool centos7-vms tù

virsh # vol-atokọ centos7-vms
 Ona Orukọ -------------------------------------------- ----------------------------------------------- OpenSUSE-13.2-DVD-x86_64.iso /home/vms/openSUSE-13.2-DVD- x86_64.iso

virsh # vol-ṣẹda-bi --pool centos7-vms - orukọ wordpress.raw - agbara 40G
Vol wordpress.raw ti ṣẹda

virsh # vol-atokọ centos7-vms
 Ona Orukọ -------------------------------------------- -------------------------------------- OpenSUSE-13.2-DVD-x86_64.iso /home/vms/openSUSE-13.2-DVD- x86_64.iso wordpress.raw /home/vms/wordpress.raw

Awọn Nẹtiwọọki Foju

A yọ DHCP kuro lati nẹtiwọọki aiyipada

virsh # net-list - gbogbo
 Orukọ Ipinle Aifọwọyi Aifọwọyi ---------------------------------------------- ------------ aiyipada nṣiṣe lọwọ bẹẹni bẹẹni

virsh # net-info aiyipada
Orukọ: aiyipada UUID: 2a2ef469-3008-45f9-a165-ab1fb8f6277b Ṣiṣẹ: bẹẹni Itẹsiwaju: bẹẹni Aifọwọyi: bẹẹni Afara: virbr0

Nẹtiwọọki "aiyipada" ni a rii bii eleyi

virsh # apapọ-satunkọ aiyipada
aiyipada 18ce4bbb-fddb-4300-9f13-65b4d999690c 

Ati pe a yoo fi silẹ bi eleyi

aiyipada 2a2ef469-3008-45f9-a165-ab1fb8f6277b 

A lo awọn ayipada naa

virsh # apapọ-run aiyipada
Aiyipada nẹtiwọki run

virsh # apapọ-ibere aiyipada
Aiyipada nẹtiwọọki ti bẹrẹ

virsh # net-list - gbogbo
 Orukọ Ipinle Aifọwọyi Aifọwọyi ---------------------------------------------- ------------ aiyipada nṣiṣe lọwọ bẹẹni bẹẹni

virsh # net-info aiyipada
Orukọ: aiyipada UUID: 2a2ef469-3008-45f9-a165-ab1fb8f6277b Ṣiṣẹ: bẹẹni Itẹsiwaju: bẹẹni Aifọwọyi: bẹẹni Afara: virbr0

wundia # olodun-

A ṣẹda ẹrọ foju “wordpress” latọna jijin

buzz @ sysadmin: ~ $ sudo virt-install \
- sopọ qemu + ssh: // root @ centos7 / system \
-Virt-type = kvm \
- orukọ wordpress \
-ram 1024 \
--vcpus = 1 \
--disk /home/vms/wordpress.raw \
--cdrom /home/vms/openSUSE-13.2-DVD-x86_64.iso \
losos-type-type \
- nẹtiwọọki nẹtiwọọki = aiyipada \
--apejuwe wordpress.desdelinux.fan \
- awọn aworan vnc \
--video = vga

[sudo] ọrọigbaniwọle fun buzz: root @ centos7's password: Bibẹrẹ fifi sori ẹrọ ... Ṣiṣẹda ibugbe ... | 0 B 00:00 root @ centos7's password: root @ centos7's password: (oluwo-oluwo: 7491): Gdk-CRITICAL **: gdk_window_set_cursor: itenumo 'GDK_IS_WINDOW (window)' kuna

Ti a ba ni aimọ pa window naa, ko ṣe pataki. A tun sopọ mọ

buzz @ sysadmin: ~ $ virt-viewer - so asopọ qemu + ssh: // root @ centos7 / wordpress word
root @ centos7 ká ọrọigbaniwọle: root @ centos7's password:

Awọn nkan ti n bọ?

DNS, DHCP ati NTP - Awọn nẹtiwọọki SMB


Awọn akoonu ti nkan naa faramọ awọn ilana wa ti awọn ilana olootu. Lati jabo aṣiṣe kan tẹ nibi.

Awọn asọye 2, fi tirẹ silẹ

Fi ọrọ rẹ silẹ

Adirẹsi imeeli rẹ yoo ko le ṣe atejade.

*

*

  1. Lodidi fun data naa: Miguel Ángel Gatón
  2. Idi ti data naa: SPAM Iṣakoso, iṣakoso ọrọ asọye.
  3. Ofin: Iyọọda rẹ
  4. Ibaraẹnisọrọ data: Awọn data kii yoo ni ifọrọhan si awọn ẹgbẹ kẹta ayafi nipasẹ ọranyan ofin.
  5. Ibi ipamọ data: Alaye data ti o gbalejo nipasẹ Awọn nẹtiwọọki Occentus (EU)
  6. Awọn ẹtọ: Ni eyikeyi akoko o le ni opin, gba pada ki o paarẹ alaye rẹ.

  1.   Zodiac Carburus wi

    Dun 2017 ọrẹ Fico. Egbin ni ifijiṣẹ ti tirẹ ni isansa ti awọn asọye lori iru awọn nkan titayọ bii eleyi ninu eyiti o ṣakoso latọna jijin gbogbo hypervisor kan. Mo dupẹ lọwọ rẹ pupọ fun ohun gbogbo ti o kọ, Federico. Mo nireti si awọn nkan atẹle rẹ!

  2.   Frederick wi

    Ọrẹ Zodiac, Emi ko ṣe akiyesi igbiyanju mi ​​ti sọnu nitori Mo mọ pe ọpọlọpọ wa ti o tẹle ati nduro fun awọn nkan mi, botilẹjẹpe bi o ṣe sọ, wọn ko sọ asọye lori wọn. O ṣeun fun awọn ọrọ otitọ rẹ.