Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
cobbler + koan VPS作成の自動化
Search
Hikaru Ashino
January 18, 2015
Programming
0
17
cobbler + koan VPS作成の自動化
slideshare版:
https://www.slideshare.net/hikaruashinon/o-vpsauto
Hikaru Ashino
January 18, 2015
Tweet
Share
More Decks by Hikaru Ashino
See All by Hikaru Ashino
さくらのクラウド高火力プランを使って 大規模言語モデル(LLM)を動かしてみよう
picasa
1
420
クラウドの作り方(GPUサーバ編)
picasa
0
2.2k
A story until offering openSUSE on Sakura VPS
picasa
0
57
自宅サーバでマストドンを立てる
picasa
1
2.6k
さくらのサービスを支えるAPI開発のお話(仮) - APIStudy#6
picasa
0
42
卒業制作 サーバーの脆弱性情報管理システム
picasa
0
29
Kickstartfileジェネレータを作ってみた
picasa
0
18
Amazon Cognito + SNS + Zabbixでサーバー監視アプリを作ってみた - JAWS DAYS 2015
picasa
0
45
Amazon SNSでZabbixのアラートをプッシュ通知してみた
picasa
0
35
Other Decks in Programming
See All in Programming
as(型アサーション)を書く前にできること
marokanatani
10
2.6k
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.1k
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
220
最新TCAキャッチアップ
0si43
0
140
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
170
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
C++でシェーダを書く
fadis
6
4.1k
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
100
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
900
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
110
初めてDefinitelyTypedにPRを出した話
syumai
0
400
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Music & Morning Musume
bryan
46
6.2k
Producing Creativity
orderedlist
PRO
341
39k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
A Tale of Four Properties
chriscoyier
156
23k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
How STYLIGHT went responsive
nonsquared
95
5.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Transcript
cobbler + koan VPS࡞ͷࣗಈԽ Hikaru Ashino
ࣗݾհ • Ѷ ޫ(౦ిࢠઐֶߍ)2012.04~ – PG(c,java,c#,php,js) – DB(oracle,access) – SystemDesign,Security,Server,android,
Project Management • ΞϧόΠτ – ITؔ࿈ձࣾʹͯΞϧόΠτ (2014.3~) – αʔόʔΤϯδχΞͱͯ͠ۈ – αʔόʔߏஙɺϛυϧΣΞݕূ
VPS automation cobbler + koan
what’s cobbler ? • LinuxܥOSͷωοτϫʔΫΠϯετʔϧڥΛఏ ڙ – PXE(ޙ΄Ͳհ͠·͢) – ཧαʔόʔ(PM)ɺԾαʔόʔ(VM)ͲͪΒʹର
Ԡ • OSࣗಈΠϯετʔϧΛࢧԉ – kickstart (ޙ΄Ͳհ͠·͢)
what’s PXE ? • PXE(Preboot eXecution Environmentʣͱ – ωοτϫʔΫΧʔυʹࡌ͞Ε͍ͯΔ PXEػೳΛར༻ͯ͠ϓϩάϥϜΛىಈ͢Δϒʔτํ๏
PXE
PXE boot࣌
PXE Boot Sequence ͜ͷ෦Λcobbler͕୲ ”
what’s cobbler ? • Cobblerͷػೳ – DHCPαʔό – TFTPαʔό –
PXEαʔό – kickstartͱDistribution,Profile,System(આ໌͠·͢) ͱ͍͏OSࣗಈΠϯετʔϧͷઃఆςϯϓϨʔτ ͷཧ
kickstart • kickstart – RedHat ܥOSͷOS Πϯετʔϥ anaconda ͕ఏڙ͢Δࣗಈ ΠϯετʔϧͷΈɻ
– Πϯετʔϧ࣌ʹઃఆ͢Δ߲Λkickstartfileʹఆٛ͠Πϯ ετʔϧ࣌ʹϩʔυͤ͞Δ͜ͱͰɺࣗಈͰઃఆ߲Λઃఆ ͠ΠϯετʔϧΛߦ͍·͢ɻ • ϗετ໊ɺωοτϫʔΫ • λΠϜκʔϯ • ύʔςΟγϣϯ • ηοτΞοϓྃޙʹҙͷॲཧΛ࣮ߦ • ɾɾɾͯ͢ͷઃఆΛఆٛͰ͖·͢ɻ
kickstart ύʔςΟγϣϯ ݴޠઃఆ rootύεϫʔυ λΠϜκʔϯ
what’s cobbler ? • Distribution • ΠϯετʔϧOSΠϝʔδΛఆٛ – Example. CentOS6.x,
CentOS5.x,Fedora • Profile • Πϯετʔϧʹ͏DistributionͱkickstartfileͳͲͷ ΠϯετʔϧεΫϦϓτͷॴͷఆٛ ɾ ԾϚγϯͷεϖοΫͷఆٛ(koanͰ͍·͢) • System • Πϯετʔϧ͏Profileͷఆٛͱɺ ରͷαʔόʔʹؔΘΔใʢϗετ໊IPΞυϨεͳͲʣͷఆ ٛ
Profile
Profile(koanར༻ͷ߹)
System
System(Networking)
System(Networking)
cobblerςϯϓϨʔτߏ ̍ ̎ ̏
cobber Web Interface
what’s koan ? • koan(Kickstart over a network) – cobblerͱ࿈ܞͯ͠VMͷ࡞͔Β
OSࣗಈΠϯετʔϧΛࢧԉɻ – VMΛ࡞͢ΔkvmϗετػʹΠϯετʔϧ – VMͷ࡞Λಉ࣌ʹߦ͏͜ͱ͕Ͱ͖Δɻ – kvmҎ֎ͷϋΠύʔόΠβʔར༻Մ
what’s koan ? • Πϯετʔϧ(epelಋೖࡁΈ) • # yum install koan
• VM࡞ɺOSΠϯετʔϧͷίϚϯυ • # koan --virt --server=1.2.3.4 --system=testvps • ίϚϯυ̍ͭͰVM࡞&OSͷࣗಈΠϯετʔϧ͕ Մೳ
koan Step 1 • koan --virt --server=1.2.3.4 --system=testvps – --server=<cobblerαʔόͷIP>
– --system=<༻͍ͨ͠system>
koan Step 2 • koan --virt --server=1.2.3.4 --system=testvps – testvpsͱ͍͏systemʹඥͮ͘profile(testvps)ͷ
Virtualizationʹج͍ͮͯVMΛ࡞͢Δɻ
koan Step 3 • koan --virt --server=1.2.3.4 --system=testvps – systemͷNetworkingʹै͍VMʹNICΛ࡞Δɻ
koan Step 4 • koan --virt --server=1.2.3.4 --system=testvps – OSΠϯετʔϧʹ༻͢Δkickstartfileʹ
systemͷNetworkingΛݩʹVMͷNICͷIPͳͲ ͷઃఆΛcobbler͕ຒΊࠐΉ kickstart system
koan Step 5 • koan --virt --server=1.2.3.4 --system=testvps – VM͕࡞͞ΕVM͕ىಈ
– PXEʹΑΔOSࣗಈΠϯετʔϧ͕։࢝
koan Step 6 • koan --virt --server=1.2.3.4 --system=testvps – ͋ͱɺVMͷΛ͚ͭͩɻ
cobblerͱkoanͷ·ͱΊ • cobbler – PXEʹΑΔOSࣗಈΠϯετʔϧΛࢧԉ – ୲ൣғ:PXEboot~OSηοτΞοϓྃ·Ͱ • koan –
cobblerͱ࿈ܞͯ͠VM࡞ͱOSࣗಈΠϯε τʔϧ – ୲ൣғ: VM࡞~ىಈ
構成図(ݕূڥ)
cobbler+koanʹΑΔޮՌ • ίϚϯυ1ͭͰVM࡞OSinstall→࡞ۀͷ؆ུ Խ • ̺ickstart͕ར༻Մೳ→ઃఆࣗಈԽɺϛεͷܰ ݮ • VMͷ࡞࡞ۀ͕ฒྻͰՄೳ→࡞ۀ࣌ؒॖ
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ͭ
demo • cobbler + koanʹΑΔVM࡞ͷdemo
koanͰ࡞ͬͨVMͷཧ • Webvirtmgr – Webϒϥβ͔Βkvmϗετʹରͯ͠ɺVMͷ ࡞(ະݕূ)ɺཧ͕ߦ͑Δπʔϧɻ
Webvirtmgr
demo • Webvirtmgrͷdemo
Let's use Cobbler!! ൃදҎ্ʹͳΓ·͢ɻ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠