Whakahau Virsh - Whatunga Rorohiko mo nga SME

Taupū whanui o te raupapa: Tuihono Rorohiko mo nga SME: Whakataki

Kia ora e hoa ma!

Mena kua whai koe i a maatau e panui ana i nga tuhinga kua paahitia, ka mohio koe kei te whai maatau i tetahi huarahi tika, kia whiwhi ai i tetahi teihana mahi, whare taiwhanga ranei i te kaainga, me nga tautoko e tika ana hei mahi miihini mariko, kaiwhakarato ranei ka whakamahia e maatau nga ratonga iti mo a LAN - Rohe Rohe Paetata Pakihi.

Ki ta maatau ko koe te korero:

Ko nga hononga o mua, me nga hononga o waho ki nga whaarangi rereke me nga papaanga e whai kiko ana nga korero, kei roto i ia tuhinga, e whakaekea ana kia tutuki i a koe he matauranga taketake mo nga kaupapa rereke kua kapi.

Ko tenei whakairinga ko te haere tonu o te huarahi i tohua. Ma to panui me to ako e ahei ai koe ki te whakaaro mo te ao nui e puta ana i te Motuhake Qemu-KVM me tana toa toa matua tahua.

Virsh - Atanga kaiwhakamahi matua mo te whakahaere i nga Rohe Mariko

Kei te mohio taatau mai i nga panui o mua ko te Motuhake i te Linux te tikanga ki te whakahaere i nga ahuatanga maha o nga punaha whakahaere waatea, i runga i te papa taputapu kotahi. libvirt he kete taputapu kua oti te tuhituhi ki te reo C, e taea ai e taatau te korero ki nga maatanga mariko o nga waahanga hou o Linux, me era atu punaha whakahaere.

Ka taea e taatau te whakamahi i te kaupapa wahine hei waihanga, okioki, whakaweto, raarangi, me te maha atu o nga mahi i runga i nga rohe mariko me nga kaitoro mokowā hei manaaki i a raatau. Ko te ingoa o te hotaka he tohu he poto mo «virreorua Shia»Ranei Tukatuka Whakahaua Tauhiko.

Ma te tikanga whanui ka taea e taatau te karanga atu penei:

virsh [OPTION] .... [ARGUMENTS] ...
  • whakahau: Ka taea e tetahi o nga 215 whakahau kua whakarārangitia ā muri ake
  • rohe: ingoa o te rohe miihini miihini ranei, te ID tautuhi tau ranei o te rohe, UUID ranei o te rohe.
  • tautohetohe: nga whiringa motuhake mo ia whakahau

He maha nga waahanga o te ture o mua, peera i nga keehi e mahi ana te whakahau i nga rohe katoa, i tetahi miihini, i runga ranei i te Xen Hypervisor - Xen Kaitirotiro. Ko nga tuuketanga pera ka whakawatea mo ia whakahau.

Tuhipoka: Ahakoa he whaimana te tohu i tetahi miihini mariko ma tana ID tau, ko taua uara nama ka kiia i nga wa katoa ko te ID rohe, kaua ko tona ingoa.

te KOREUTU whakahau Virsh Ko:

  • -c, –Hono URI: Ka hono ki URI «Kaitohu Rauemi Tuturu- Tuuturu Rau Tuakiri, hei utu mo te URI taunoa ko tera o te kaitohu tuarua o te rohe.
  • -d, –whakapapa LEVEL: Whakahohea te whakakore i nga karere - patuiro, tae atu ki te uara TAUMATA tau, he tohenga tau e taea te tango i nga uara i waenga i te 0 me te 4. Tika 4 ko te uara taunoa.
  • -e, –rearea whakarere: Ka tautuhia he raupapa taangata rereke hoki ka pēhi tatou i te «kīEsc«. Ko te raupapa taunoa ko ^]. Ko nga kiripuaki e whakaaehia ana: tetahi taatai ​​taatai, @, [,], \, ^, _. Ka whakaarohia e maatau kaua e whakarerekē i te raupapa pūāhua taunoa.
  • -h, -help: Kaore e aro ki etahi atu tohenga me te whanonga me te mea e whakahaere ana i te whakahau tauturu i.
  • -k, –keepalive-wawhanga INTERVAL: Ka tautuhia he waahi i roto i nga hēkona hei tuku momo karere pupuri, ki te tirotiro mena kei te ora tonu te hononga ki te kaituku. Tuhinga o mua Tuhinga kua tautuhia ki 0, katahi ka monokia tenei tikanga arowhai.
  • -K, –keepalive-tatau COUNT: Ka tautuhia te maha o nga wa ka taea te tuku karere pupuri kaore he whakautu mai i te kaitoha, me te kore e tohu i te hononga kua mate. Kaore he painga ki tenei waahanga, mena ka tautuhia te uara INTERVAL o te waahanga o mua ki te 0.
  • -l, –rakau KĀNAE: Ka tohua te whakaputa roko mahi ki te konae Tuhinga.
  • -q, –maru: A ape i nga korero taapiri i roto i nga karere. Aratau noho puku.
  • -r, –mutunga noa: Ko te hononga tuatahi ka whakapumautia i Panuihia noa. He rite tonu ki te whakamahi i te whiringa –Tutu Noa i roto i te whakahau hono.
  • -t, –wā: Whakaatuhia ai te wa e pau ana i ia ota.
  • -v, –version = poto: Waiho etahi atu tohenga, ka whakaatu anake i te putanga o te whare pukapuka tahua mai te kaupapa i wahine.
  • -V, – hurihuri = roa: Waiho etahi atu tohenga ka whakaatu i te putanga o te wharepukapuka tahua mai te kaupapa i wahine me te mea ano, ko nga kaiwhakawhitiwhitinga rereke, kaiwhakahaere - taraiwa, momo whatunga, me etahi atu e tautokohia ana e te whakahiato.

Tuhipoka:

  • Te nuinga o nga mahi whakahau wahine, kiia ko te toa pukapuka tahua taea te hono atu ki tetahi ratonga libvirtd i roto i te mahi.
  • Ko te nuinga o nga whakahau me whakahaere ma nga mana o nga kaiwhakamahi pakiaka na te kaha o nga ara whakawhitiwhiti korero e whakamahia ana e ia ki te korero ki te Kaitohutohu. Mena ka whakahaerehia me nga mana o te kaiwhakamahi noa, ka hoki mai he he.
  • Ko te nuinga o nga whakahau he mahi taapiri. Ka taea te waiho tutakina, Tuhinga y huinga. I era ahuatanga, ko te wahine whakahoki te tere whakahau, kaore pea i te kii kua tutuki pai te mahi. Me aata tirotiro i ia wa kia kitea kua oti te mahi ki te Manuhiri - Anō.

Mo etahi atu korero mo te korero, tirohia tangata virsh.

He whakaaro me pehea te whakatata atu ki te ako wahine

Kia maama ake ai te rapu awhina mo te whakamahi i te neke atu i te 200 whakahau, wahine whakarōpū ia ratou ma nga kupu matua - kupu awhina, ko:

  • rohe
  • aroturuki
  • ope
  • atanga
  • tātari
  • whatunga
  • nodedev
  • ngaro
  • hopuāhua
  • poka
  • rōrahi
  • wahine
buzz @ sysadmin: ~ $ virsh awhina rohe
 Whakahaerehia te Rohe (awhina 'rohe' kupu matua): taapiri-taputapu taapiri atu i te taputapu mai i te konae XML taapiri-kōpae taapiri i te taputapu kōpae hono-atanga taapiri i te atanga whatunga autostart autostart he rohe blkdeviotune Whakatakotoria te uiui ranei i tetahi taputapu poraka I / O nga waahanga whakatangi.
 blkiotune Haere ki te tautuhi ranei i nga waahanga blkio blockcommit Me tiimata te mahi aukati poraka.
 aukati Tīmata i te mahi kape kape.
 blockjob Whakahaerehia nga mahinga poraka hohe blockpull Tuhia he kopae mai i tona ahua tautoko.
 blockresize Whakakahiahia te rahi poraka o te rohe.
 huringa-pāpāho Huri papaaho o te kopae kopae puku kopae puku ranei, hono atu ki te papatohu manuhiri rorohiko CPU-CPU kaute-whakataurite CPU manaaki CPU-CPU host host me te PTM e whakaatuhia ana e te konae XML, cpu-tatauranga, whakaatu rohe cpu tatauranga hanga he rohe mai i te XML tautuhia te tautuhi (engari kaua e tiimata) he rohe mai i te whakaaturanga XML ka whakaheke i te whakaaturanga, te tautuhi ranei i te whakaahuatanga o te rohe, te taitara ranei ki te whakangaro (kati) he taputapu wetewete-taputapu wetekina mai i te konae XML kopae-kopae-wehe hononga atanga domdisplay rohe whakaatu hononga URI domfsfreeze Whakatio Paetukutuku whakauru o nga punaha.
 domfsthaw Thaw rohe o konae filesystems.
 domfstrim Tonoa fstrim i runga i nga konae raupaparorohiko.


buzz @ sysadmin: ~ $ virsh awhina awhina
 Domain Monitoring (help keyword 'monitor'): domblkerror Whakaatuhia nga he i runga i nga taputapu poraka domblkinfo rohe poraka te rahi o te purongo korero raarangi domblklist raarangi katoa poraka rohe domblkstat kia whiwhi i nga tatauranga poraka taputapu mo te rohe rohe rohe raarangi raarangi whakauru raarangi mariko katoa ma te domifstat tiki tatauranga atanga whatunga mo te rohe rohe korero dommemstat tiki tatauranga mahara mo te rohe rohe rohe ingoa rohe whiwhi tatauranga mo te kotahi, te maha ranei o nga rohe rohe ingoa rohe rārangi raarangi

buzz @ sysadmin: ~ $ virsh awhina awhina
 Domain Monitoring (help keyword 'monitor'): domblkerror Whakaatuhia nga he i runga i nga taputapu poraka domblkinfo rohe poraka te rahi o te purongo korero raarangi domblklist raarangi katoa poraka rohe domblkstat kia whiwhi i nga tatauranga poraka taputapu mo te rohe rohe rohe raarangi raarangi whakauru raarangi mariko katoa ma te domifstat tiki tatauranga atanga whatunga mo te rohe rohe korero dommemstat tiki tatauranga mahara mo te rohe rohe rohe ingoa rohe whiwhi tatauranga mo te kotahi, te maha ranei o nga rohe rohe ingoa rohe rārangi raarangi

buzz @ sysadmin: ~ $ virsh awhina manaaki
 Kaihautu me Kaitohutohu (awhina i te kupu matua 'manaaki'): tohatoha Whakahoahoa te rahi o te puna puna aravihi cpu-tauira PTM tauira maaritanga rohe rohe kaha freecell NUMA koreutu mahara koreutu NUMA wharangi koreutu ingoa ingoa ingoa taarua te ingoa rangatira hypervcpus hononga vcpu tino node-mahara-rangi Whakatika tautuhia nga tohu whakamahara kōpuku nodecpumap kōpuku cpu mahere nodecpustats Ka tarai i nga tatauranga cpu o te kōpuku. nodeinfo node information nodememstats Ka tuhi i nga tatauranga mahara o te kōpuku. nodesuspend whakatārewa i te kōpuku manaaki mo te roanga o te waa sysinfo taarua te hypervisor sysinfo uri taarua te hypervisor canonical URI putanga whakaatu putanga

buzz @ sysadmin: ~ $ virsh atanga awhina
 Atanga (awhina 'kupu matua' atanga '): ki te tiimata-timata ki te hanga i tetahi whakaahua o nga waahanga atanga onaianei, ka taea te mahi i muri (iface-mahia) ka whakahouhia ranei (iface-rollback) mena ka hangaia e te piriti-piriti he taputapu piriti ka hono ai i tetahi taputapu whatunga ki reira mena ka mahia e nga huringa mai i te tiimata-tiimata me te tohu whakahoki koreutu ki te tautuhi (engari kaua e tiimata) he atanga kaitautoko tinana mai i te konae XML mena ka whakangaro i te atanga kaihauturu tinana (whakaweto / "mena- iho ") iface-dumpxml information interface in XML iface-edit edit XML config for a physical host interface if-list-list list physical host interfaces iface-mac hurihia he ingoa atanga ki te tohu MAC wahitau iface-ingoa hurihia tetahi atanga MAC wahitau ki te atanga ingoa iface-rollback rollback ki te whirihoranga kua tiakina i hangaia ma te iface-tiimata mena-tiimata te tiimata o te kaiwhakarato kaiwhakarato tinana (whakahohea / "mena-ake") ki te whakakore-kore i te taputapu piriti i muri i te wehenga o tana taputapu pononga mena ka kore e tautuhia he tohu atanga manaaki tuuturu (tangohia mai i te whirihoranga)

buzz @ sysadmin: ~ $ virsh awhina awhina
 Tātari Whatunga (awhina 'taatari kupu awhina'): tautuhi-tautuhi tautuhi whakahou ranei i tetahi taatari whatunga mai i te konae XML nwfilter-dumpxml korero taatari whatunga i roto i te XML nwfilter-edit edit XML whirihora mo te taatari whatunga nwfilter-list list network filters nwfilter-undefine whakatau i te taatari whatunga

buzz @ sysadmin: ~ $ virsh awhina awhina
 Whatunga (awhina 'kupumatua' awhina): net-autostart autostart he kupenga-hanga waihangahia he hononga mai i te konae XML tautuhi-tautuhi tautuhi (engari kaua e tiimata) he whatunga mai i te konae XML kupenga-whakangaro whakangaro (kati) a whatunga kupenga-dhcp-riihi info riihi taarua mo te whatunga whatunga-dumpxml korero whatunga i hoatu i roto i te XML whakatika-whakatika whakatika whirihoranga XML mo te whatunga-kaupapa kupenga Takahanga Whatunga-korero korero whatunga korero raarangi-raarangi raarangi ingoa ingoa ingoa-ingoa huri i tetahi whatunga UUID ki te ingoa whatunga-tiimata-tiimata tiimata te (kua tautuhia i mua) raarangi-kore tautuhi kuputuhi-kore tautuhia he hononga whakahou kupenga whatunga pumau o te whirihoranga whatunga kei a net-uuid huri i tetahi ingoa whatunga ki whatunga UUID

buzz @ sysadmin: ~ $ virsh awhina nodedev
 Pūrere Node (kupu awhina 'nodedev'): nodedev-hanga waihangahia he taputapu kua tautuhia e te konae XML i runga i te nodode-whakangaro whakangaro (kati) he taputapu kei runga i te nododev-wetekina te taputapu tohu tuuturu mai i tana taraiwa taputapu nodedev-dumpxml kōpuku taipitopito taputapu i te raarangi XML nodedev-raarangi taputapu tapua i runga i tenei kaihokohoko nodedev-taapiri whakauruhia te taputapu kōpuku ki tana taraiwa taputapu nodedev-tautuhi tautuhi i te taputapu kōpuku

buzz @ sysadmin: ~ $ virsh awhina muna
 Rahinga (kupu awhina 'muna'): muna-tautuhi, whakarereke ranei i tetahi muna mai i te konae huna XML-huna-huna muna XML i roto i te XML muna-tiki-uara Putanga he raarangi muna muna-rarangi raarangi muna-muna muna muna-huinga-uara he muna muna uara muna-tautuhia kore tautuhia he muna

buzz @ sysadmin: ~ $ virsh awhina whakaahua
 Whakaahuatanga (awhina kupu awhina 'whakaahua'): whakaahua-hanga Hangaia he whakaahua mai i te XML whakaahua-hanga-rite Hangaia he whakaahua mai i te huinga o te tohenga-kauhono-o naianei Tangohia te tautuhi ranei o te whakaahua nei o te whakaahua-ka-whakakore XML mo te rohe hopuaki hopu-putunga-etita whakatika XML mo te whakaahua-putunga-kopae-whakaahua whakaahua-kopoa-kopae-raarangi raarangi hopu-whakaahua mo te rohe hopu-matua
buzz @ sysadmin: ~ $ virsh awhina puna
 Puna Poto (awhina kupu matua 'puna'): rapu-penapena-puna-puna-hei rapu puna puna poka puna kitea-penapena-puna-puna puna kitea puna puna puna puna puna puna-autostart autostart he puna poka-hanga hanga poka puna- hanga-hei waihanga poka wai mai i te huinga tautohetohe-waihanga hanga poka wai mai i te konae XML puna-tautuhi-kia tautuhia he puna mai i te huinga tautohetohe tautuhi-tautuhi tautuhi (engari kaua e tiimata) he puna mai i te XML konae-poka-whakakore whakakorea tetahi puna kaukau-whakangaro whakangaro (mutu) he puna kaukauranga-putunga puna puna puna XML puna-whakarereke whakatika XML whirihora mo te puna poka wai puna-poka puna korero puna-puna puna poka wai-ingoa puna huripuna-ingoa hurihia he puna kaukau UUID ki te ingoa poka wai puna-whakahou i te puna kaukauranga-tiimata te tiimata (kua tautuhia i mua) te puna kaukau-kore e tautuhia he puna kaukaukau-uuid huri i tetahi ingoa puna ki te puna UUID

buzz @ sysadmin: ~ $ virsh awhina nui
 Rokiroki Rokiroki (awhina i te kupu matua 'rahinga'): Whakataurutia te rōrahi-puoro. hanga-hei hanga i te rahinga mai i te huinga tautohetohe vol-hanga waihangahia he vol mai i te konae XML-hanga-mai i te hanga i tetahi puoro, ma te whakamahi i tetahi atu puoro hei whakauru-whakakore i te whakakore he konae vol-dumpxml vol korero i roto i te XML vol-info penapene vol korero-nui ka whakahoki mai i te ki o te rahinga mo te ingoa o te roopu, raarangi rarangi-rarangi raarangi-ingoa ka whakahoki i te ingoa o te ruri mo te ki o te rahinga i homai raanei ara- Ko te ara ka hoki mai i te ara rahinga mo te ingoa roopu i homai, ma te puranga wai-matua ranei ka whakahoki i te puna kauhau mo te ki o te rahinga kua whakawhiwhia ranei te ara-whakarereke i te rahi o te rahi o te waahanga o te konae ki te vol-horoia horoia he waahanga.

buzz @ sysadmin: ~ $ virsh awhina virsh
 Virsh ano (awhina kupu matua 'virsh'): cd hurihia te whaiaronga onaianei hono hono (re) hono atu ki te kaitohu whakaari

Mo te awhina motuhake mo tetahi o nga whakahau kua whakarārangitia

Me mahi e taatau awhina virsh. Tauira:

buzz @ sysadmin: ~ $ virsh rārangi awhina
  Rarangi ingoa INGI - raarangi rohe SYNOPSIS raarangi [--akorero] [- katoa] [--takitaki] [--persisten] [--with-snapshot] [--without-snapshot] [--state-running] [- -state-pause] [--state-shutoff] [--state-other] [--autostart] [--no-autostart] [--with-whakahaere-save] [--without-whakahaeretia-penapena] [ --uuid] [- Ingoa] [--mamae] [--ka whakahaerehia-penapena] [- upoko] WHAKAARO Ka whakahoki i te raarangi o nga rohe. WHAKANUI --e raarangi hohe kaore i te kaha --e kore e raarangi te mahi me te rohe hohe --e noho tonu ana te raarangi waahi -e whai tonu ana i nga raarangi - me nga raarangi raarangi hopu-whakaahua me nga whakaahua o naianei -Kore he raarangi raarangi hopu-whakaahua kaore he whakaahua - whenua -Whakaari i nga raarangi raarangi i te waahi whakahaere - nga raarangi raarangi-waatea i te waahi okioki - nga raarangi raarangi kati-kore i te kawanatanga kati - etahi atu rohe raarangi i etahi atu kawanatanga whakararangihia nga rohe me te kore o te tiimataAunoa - me te kore e taea te whakahaere -e pupuri raarangi raarangi me te kore e taea te whakahaere --e raarangi raarangi ko te raarangi - ingoa ingoa raarangi raarangi -ko te raarangi raarangi (taunoa ) -whakahaere-tohu tohu i nga rohe korekore me te ahua penapena whakahaere --Tohu whakaatu i te taitara rohe

buzz @ sysadmin: ~ $ virsh awhina kati
  NAME whakaweto - ataahua te whakaweto i te aukatinga rohe SYNOPSIS [--mode ] WHAKAMARAMA Whakahaukia te kati i te rohe whaainga. NGA TUPUNA [--domain] ingoa rohe, id ranei uuid --mode aratau whakaweto: acpi | kaihoko | initctl | tohu | paravirt

He tauira mo te whakamahi i te whakahau virsh

Putanga Virsh

buzz @ sysadmin: ~ $ virsh -v
1.2.9

buzz @ sysadmin: ~ $ virsh -V
Taputapu raina whakahau a Virsh o te libvirt 1.2.9 Tirohia te paetukutuku i http://libvirt.org/ Whakaritehia me te tautoko mo: Hypervisors: QEMU / KVM LXC UML Xen LibXL OpenVZ VMWare VirtualBox Test Networking: Remote Network Bridging Interface netcf Nwfilter VirtualPort Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM RBD Sheepdog He rerekee: Daemon Nodedev AppArmor SELinux Nga muna a Debug DTrace Panuira Tauira

Whakauruhia te virsh console

buzz @ sysadmin: ~ $ sudo virsh
[sudo] kupuhipa mo te buzz: Nau mai ki te virsh, te virtualization interactive terminal. Patohia: 'awhina' mo te awhina me nga whakahau 'whakamutu' kia whakamutu

Rarangi nga rohe katoa

wahine # rārangi - Katoa
 Ingoa Ingoa Id ------------- ----- - dns ka tutakina - miweb ka whakaweto - sysadmin-centos ka kati

Tiimata te rohe dns

wahine # tiimata dns
Domain dns i tiimata

wahine # domdisplay dns
raukikini: //127.0.0.1: 5900

Rarangi pukapuka penapena

virsh # puna-puna
 Ingoa State Autostart ------------------------------------------- taunoa taunoa kahore vms -e kii ana i te hohe ae       

virsh # puna-puna taunoa taunoa
Ingoa: taunoa UUID: 3d158e62-6237-464f-9d8f-07ac98be56dc State: kei te tohe tonu: ae Autostart: kaore he Raukaha: 14.64 GiB Tohaina: 5.18 GiB Wātea: 9.46 GiB

virsh # puna-korero vms-whakaahua
Ingoa: vms-whakaahua UUID: 72e1b63d-3d90-4f02-bfde-197fd00f3b94 State: rere Tonu: ae Autostart: ae Raukaha: 916.77 GiB Taunga: 464.22 GiB Wātea: 452.55 GiB

Whakaritehia nga whakaahua kei roto i te pukapuka

virsh # vol-list vms-whakaahua
 Huarahi Ingoa ---- ----------------- CentOS-7-x86_64-Katoa-1511.iso / tera / vms / CentOS-7- x86_64-Katoa-1511.iso dns.qcow2 /tera/vms/dns.qcow2 miweb.qcow2 /tera/vms/miweb.qcow2 whakatuwheraSUSE-13.2-DVD-x86_64.iso /tera/vms/openSUSE-13.2-DVD-x86_64 .iso sysadmin-centos.qcow2 /tera/vms/sysadmin-centos.qcow2 sysadmin.qcow2 /tera/vms/sysadmin.qcow2                

virsh # vol-info dns.qcow2 --mera whakaahua-whakaahua
Ingoa: dns.qcow2 Momo: konae Raukaha: 10.00 GiB Tohaina: 1.56 GiB

Hangaia he ahua kōpae ki te rahinga

virsh # vol-create-as --pool vms-whakapakoko - ingoa dns2.raw --capacity 20G
Vol dns2.raw hanga

virsh # vol-list vms-whakaahua
 Huarahi Ingoa ---- ----------------- CentOS-7-x86_64-Katoa-1511.iso / tera / vms / CentOS-7- x86_64-Katoa-1511.iso dns.qcow2 /tera/vms/dns.qcow2                     
 dns2.raw /tera/vms/dns2.raw                    
 miweb.qcow2 /tera/vms/miweb.qcow2 tuwheraSUSE-13.2-DVD-x86_64.iso /tera/vms/openSUSE-13.2-DVD-x86_64.iso sysadmin-centos.qcow2 /tera/vms/sysadmin-centos.qcow2 sysadmin .qcow2 /tera/vms/sysadmin.qcow2

Whakauru atu ki te ahua hou i hangaia ki te rohe e rere ana

virsh # domstate dns
rere

virsh # domaininfo dns
Id: 4 Ingoa: dns UUID: 9e69ebc6-213e-42f7-99bf-83b333e93958 OS Momo: hvm State: rere CPU (s): 1 PTM wa: 25.2s Mahara mahara: 262144 KiB Mahara Whakamahia: 262144 KiB Tuuturu: ae Whakahuihia: monoa Whakahaerehia te whakahaere: kaore he tauira Haumaru: kaore he Haumaru DOI: 0

virsh # domblklist dns
Puna Mahere ---- vda /tera/vms/dns.qcow2 hda -

virsh # tāpiri-kōpae dns /tera/vms/dns2.raw vdb - pumau --e ora
I angitu te taapiri o te kopae

virsh # domblklist dns
Puna Mahere ---- vda /tera/vms/dns.qcow2 vdb /tera/vms/dns2.raw hda -

virsh # domblkstat dns vda
vda rd_req 5438 vda rd_bytes 67512320 vda wr_req 405 vda wr_bytes 2854912 vda flush_operations 14 vda rd_total_times 20533958076 vda wr_total_times 423498369 vda flush_total_times 232141607

virsh # domblkstat dns vdb
vdb rd_req 117 vdb rd_bytes 479232 0 vdb wr_req 0 vdb wr_bytes 0 vdb flush_operations 28976780 vdb rd_total_times 0 vdb wr_total_times 0 vdb flush_total_times XNUMX

Ka wehewehehia e maatau, ka whakatakoto me te whakapiri i te kopae hou

wahine # whakamutu
buzz @ sysadmin: ~ $ ssh buzz@192.168.10.5
buzz@192.168.10.5 kupuhipa:

buzz @ dns: ~ $ sudo fdisk / dev / vdb
[sudo] kupuhipa mo te buzz: Nau mai ki te fdisk (util-linux 2.25.2). Ko nga whakarereketanga ka mau tonu ki o maharatanga, kia whakatau ra ano koe ki te tuhi. Kia tupato i mua i te whakamahi i te whakahau tuhi. Whakahaua (m mo te awhina): n Momo wehenga p tuatahi (0 tuatahi, 0 whanui, 4 koreutu) me te (ipu mo nga wahanga arorau) Tohua (p taunoa): p Tau wehewehe (1-4, taunoa 1): Rangatahi tuatahi (2048-41949951, taunoa 2048): Rāngai whakamutunga, + rāngai, me te rahi + {K, M, G, T, P} (2048-41949951, taunoa 41949951): I hangaia he waahanga hou 1 mo te momo 'Linux' me te rahi 20 GiB. Whakahaua (m mo te awhina): p Disk / dev / vdb: 20 GiB, 21478375424 paita, 41949952 nga waahanga Units: rarangi o 1 * 512 = 512 paita Te rahi o te waahanga (arorau / a-tinana): 512 paita / 512 paita I / O te rahi ( iti rawa / tino pai): 512 paita / 512 paita Momo kopae: Taakapa Disk: 0x12e1497e Whakaaetanga Whakaaetanga Whakaaetanga Whakaaetanga Taputapu Rahi Id Momo / dev / vdb1 2048 41943039 41940992 20G 83 Tono Linux (m mo te awhina): w Kua whakarereketia te ripanga wehewehe . Karanga ioctl () ki te panui ano i te ripanga wehewehe. Tukutahi kōpae.

buzz @ dns: ~ $ sudo mkfs.ext4 / dev / vdb1

buzz @ dns: ~ $ sudo fdisk -l

Kōpae / dev / vda: 10 GiB, 10737418240 paita, 20971520 waahanga Waeine: rarangi o 1 * 512 = 512 paita Rahi o te waahanga (arorau / a-tinana): 512 paita / 512 paita I / O te rahi (iti / pai): 512 paita / 512 paita Momo Tapanga: e rua te Kaitohu Whakaatu: 0xb1e40216 Pūrere Whakaara Whakaoho Whakamutunga Rawa Rahi Id Momo / dev / vda1 * 2048 20013055 20011008 9.6G 83 Linux / dev / vda2 20015102 20969471 954370 466M 5 Toronga / dev / vda5 20015104 20969471 954368 huri / Solaris Disk / dev / vdb: 466 GiB, 82 paita, 20 nga waahanga Units: rarangi o 21478375424 * 41949952 = 1 paita Te rahi o te waahanga (arorau / a-tinana): 512 paita / 512 paita I / O te rahi (iti / pai) 512 paita / 512 paita Momo kopae: taarua Kaituku Disk: 512x512e0e Whakaaetanga Whakaaetanga Whakaaetanga Whakaaetanga Taputapu Rahi Id Momo / dev / vdc12 1497 1 2048 41943039G 41940992 Linux

buzz @ dns: ~ $ sudo mkdir / toa
buzz @ dns: ~ $ sudo nano / etc / fstab 
/ dev / vdb1 / toa ext4 taunoa 0 0

buzz @ dns: ~ $ sudo mount -a
buzz @ dns: ~ $ ls -l / toa katoa 16 drwx ------ 2 pakiaka pakiaka 16384 Tihema 10 17:34 kua ngaro + kua kitea

Ka hoki ano maatau ki te papatohu virsh

buzz @ sysadmin: ~ $ sudo virsh Nau mai ki te virsh, te virtualization interactive terminal. Patohia: 'awhina' mo te awhina me nga whakahau 'whakamutu' kia whakamutu

wahine # 

Ka tahuri taatau

virsh # domstate dns
rere

virsh # whakaweto dns
Kei te kati te Domain dns

Whakarāpopoto

I tenei waa kua rere atu maatau i nga tahataha o te Moana Virsh. 😉 Mo etahi atu korero, mahia te whakahau tangata virsh. Heoi, ka waiho e matou tetahi konae tuhinga noa virsh-help.txt kia maatau ake ai te ora mo te hunga e whai ana i tenei Whakahau Matua mo te whakahaere me te whakahaere i nga Kaiwhakahaere Putaako me a raatau Miihini Motuhake.

Ka tino taunaki matou whakamatauhia nga whakahau i waho o te taiao whakaputa.


Ko nga korero o te tuhinga e piri ana ki o maatau kaupapa o matatika whakatika. Ki te ripoata i tetahi paatene paato Here.

7 korero, waiho maau

Waiho to korero

Ka kore e whakaputaina tō wāhitau īmēra. Kua tohua ngā āpure e hiahiatia ana ki *

*

*

  1. He kawenga mo nga raraunga: Miguel Ángel Gatón
  2. Te kaupapa o te raraunga: Whakahaerehia te SPAM, te whakahaere korero.
  3. Ture: To whakaae
  4. Whakawhitinga korero: Kaore nga korero e tukuna ki nga taha tuatoru engari ma te ture herenga.
  5. Rokiroki raraunga: Paetukutuku e whakahaerehia ana e Occentus Networks (EU)
  6. Tika: I nga wa katoa ka taea e koe te whakaiti, te whakaora me te muku i o korero.

  1.   Pūoro ka mea

    Kei te hiahia ahau ki te whakamahi i a Virsh mo etahi atu mea, ko enei anake nga mea timatanga, tiimata, kati, nga mea katoa e whakamahia ana e au hei kaiwhakahaere-tino, He pai ki ahau kia taea e nga kaiwhakarato N te whakahaere i te hononga ki te whakahaere i a raatau mahi me te kaiwhakahaere-katoa.

  2.   kaikaiwhenua ka mea

    Kia ora e hoa Dhunter !!! Kei i taku mahi tonu tenei. Tangohia te konae-awhina.txt hei awhina nui i a koe. I hangaia e au mai i te papatohu virsh tonu, ana ka hangaia he tuhinga hei whakakii. Ki taku whakaaro, ma te whakariteritehia e nga kupu matua o te awhina, he pai ake te inu. I roto i te tuhinga e whai ake nei ka pa atu ahau ki etahi atu kaupapa o tenei whakahau.

  3.   Carburus Zodiac ka mea

    Tena koe Federico. Kua whai au i o tuhinga pai i runga i nga SME. He maama ake te whakamahi i te papatohu kia tere te whakahaere. He iti ake hoki nga rauemi e pau i a ratou. Kei te tatari ahau mo o whakaora i muri mai.

  4.   Crespo88 ka mea

    Aue Federico, kua tutaki ke koe ki ahau. Mauruuru mo tenei koha i homai nei e koe ki a matou. He pou pai, kua tatari ahau mo tenei tuhinga mo te virsh. Kia ora e te tuakana, ka mohio tatou katoa ki te whakamahi tika.

  5.   piki ka mea

    Nau mai, Crespo88. Mo tena kei roto matou i te DesdeLinux.

  6.   Ismael Alvarez Wong ka mea

    Kia ora, I miharo ahau ki te kaha o te whakahau a te wahine, kaore e kitea nga kupu hei whakaahua i taku whakaaro mo taua mea, he maere, me taau e whakaatu nei i te pou he whiu noa, ma te whakamahi i a koe ake kupu «I tenei wa i tere atu ma te tahataha o te Moana Virsh. "
    tino whaihua ka whakamarama koe me pehea te rangahau awhina i a virsh ma te whakamahi i ana kupu matua.
    pai te tauira whakawhanakehia o Hangaia he ahua kōpae i runga i te rōrahi ka Whakauru (taapirihia) ki te rohe e rere ana (ko te MV), me te wahine katoa; mai i ta maatau WK sysadmin honohono na SSH ki te rohe me roto, hangahia te waahanga me tana punaha punaha ext4 kia eke rawa mai i te fstab.
    Kaore he mea hei whai ma nga panui ka whai ake nei i roto i te rekoata tata qemu-kvm ka nui te mihi ki a koe mo te tohatoha i enei korero katoa.

    1.    kaikaiwhenua ka mea

      Kei i a koe te kiko o te korero, e hoa Wong. Mena he whakauru noa ki te whakahau Virsh, ka taea te mahi miiharo, he aha e kore ai e haere tonu me tana ako me tana whakamahinga. wahine na, ma te whakamaarama, ko te atanga Qemu-KVM, i whakaarohia e ona kaihanga i Red Hat, Inc a na taua kamupene nui i tautoko. Ahakoa e mohio ana taatau kei kona ano etahi atu atanga penei i te Virt-Kaiwhakahaere me te oVirt, ko Virsh tonu te mea tino pai ki te whakahaere i te whare pukapuka tahua. Kia ora e hoa e Wong mo o korero nui.