Upgrade to Pro — share decks privately, control downloads, hide ads and more …

cobbler + koan VPS作成の自動化

cobbler + koan VPS作成の自動化

Hikaru Ashino

January 18, 2015
Tweet

More Decks by Hikaru Ashino

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ • Ѷ໺ ޫ(౦๺ిࢠઐ໳ֶߍ)2012.04~ – PG(c,java,c#,php,js) – DB(oracle,access) – SystemDesign,Security,Server,android,

    Project Management • ΞϧόΠτ – ITؔ࿈ձࣾʹͯΞϧόΠτ (2014.3~) – αʔόʔΤϯδχΞͱͯ͠ۈ຿ – αʔόʔߏஙɺϛυϧ΢ΣΞݕূ౳
  2. PXE

  3. what’s cobbler ? • Cobblerͷػೳ – DHCPαʔό – TFTPαʔό –

    PXEαʔό – kickstartͱDistribution,Profile,System(આ໌͠·͢) ͱ͍͏OSࣗಈΠϯετʔϧͷઃఆςϯϓϨʔτ ͷ؅ཧ
  4. kickstart • kickstart – RedHat ܥOSͷOS Πϯετʔϥ anaconda ͕ఏڙ͢Δࣗಈ Πϯετʔϧͷ࢓૊Έɻ

    – Πϯετʔϧ࣌ʹઃఆ͢Δ߲໨Λkickstartfileʹఆٛ͠Πϯ ετʔϧ࣌ʹϩʔυͤ͞Δ͜ͱͰɺࣗಈͰઃఆ߲໨Λઃఆ ͠ΠϯετʔϧΛߦ͍·͢ɻ • ϗετ໊ɺωοτϫʔΫ • λΠϜκʔϯ • ύʔςΟγϣϯ • ηοτΞοϓ׬ྃޙʹ೚ҙͷॲཧΛ࣮ߦ • ɾɾɾ౳͢΂ͯͷઃఆΛఆٛͰ͖·͢ɻ
  5. what’s cobbler ? • Distribution • ΠϯετʔϧOSΠϝʔδΛఆٛ – Example. CentOS6.x,

    CentOS5.x,Fedora • Profile • Πϯετʔϧʹ࢖͏DistributionͱkickstartfileͳͲͷ ΠϯετʔϧεΫϦϓτͷ৔ॴͷఆٛ ɾ Ծ૝ϚγϯͷεϖοΫͷఆٛ(koanͰ࢖͍·͢) • System • Πϯετʔϧ࢖͏Profileͷఆٛͱɺ ର৅ͷαʔόʔʹؔΘΔ৘ใʢϗετ໊΍IPΞυϨεͳͲʣͷఆ ٛ
  6. what’s koan ? • koan(Kickstart over a network) – cobblerͱ࿈ܞͯ͠VMͷ࡞੒͔Β

    OSࣗಈΠϯετʔϧΛࢧԉɻ – VMΛ࡞੒͢ΔkvmϗετػʹΠϯετʔϧ – VMͷ࡞੒Λಉ࣌ʹߦ͏͜ͱ͕Ͱ͖Δɻ – kvmҎ֎ͷϋΠύʔόΠβʔ΋ར༻Մ
  7. what’s koan ? • Πϯετʔϧ(epelಋೖࡁΈ) • # yum install koan

    • VM࡞੒ɺOSΠϯετʔϧͷίϚϯυ • # koan --virt --server=1.2.3.4 --system=testvps • ίϚϯυ̍ͭͰVM࡞੒&OSͷࣗಈΠϯετʔϧ͕ Մೳ
  8. koan Step 4 • koan --virt --server=1.2.3.4 --system=testvps – OSΠϯετʔϧʹ࢖༻͢Δkickstartfileʹ

    systemͷNetworkingΛݩʹVMͷNICͷIPͳͲ ͷઃఆΛcobbler͕ຒΊࠐΉ kickstart system
  9. Auto vs Manual 0:00:00 1:12:00 2:24:00 3:36:00 4:48:00 6:00:00 7:12:00

    8:24:00 9:36:00 10:48:00 Auto Manual  GBTU NT NT CentOS6.5minimal 64bit CPU:2vCPU MEM:1GB STORAGE:88GB NIC 1ͭ