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
16
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
390
クラウドの作り方(GPUサーバ編)
picasa
0
2k
A story until offering openSUSE on Sakura VPS
picasa
0
47
自宅サーバでマストドンを立てる
picasa
1
2.5k
さくらのサービスを支えるAPI開発のお話(仮) - APIStudy#6
picasa
0
34
卒業制作 サーバーの脆弱性情報管理システム
picasa
0
27
Kickstartfileジェネレータを作ってみた
picasa
0
17
Amazon Cognito + SNS + Zabbixでサーバー監視アプリを作ってみた - JAWS DAYS 2015
picasa
0
41
Amazon SNSでZabbixのアラートをプッシュ通知してみた
picasa
0
31
Other Decks in Programming
See All in Programming
実践!難読化ガイド
mitchan
0
120
エラーレスポンス設計から考える、0→1開発におけるGraphQLへの向き合い方
bicstone
5
1.5k
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
580
Kotlin 2.0が与えるAndroid開発の進化
masayukisuda
1
280
Ruby Parser progress report 2024
yui_knk
2
220
dRuby 入門者によるあなたの身近にあるdRuby 入門
makicamel
4
350
Rubyとクリエイティブコーディングの輪の広がり / The Growing Circle of Ruby and Creative Coding
chobishiba
1
260
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
600
What we keep in mind when migrating from Serverless Framework to AWS CDK and AWS SAM
kasacchiful
1
140
rails_girls_is_my_gate_to_join_the_ruby_commuinty
maimux2x
0
190
ブラウザ互換の重要性 - あらゆるユーザーに価値を届けるために必要なこと
yamanoku
0
110
Amebaチョイス立ち上げの裏側 ~依存システムとの闘い~
daichi_igarashi
0
230
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
278
13k
A Philosophy of Restraint
colly
202
16k
What the flash - Photography Introduction
edds
67
11k
Building Better People: How to give real-time feedback that sticks.
wjessup
359
18k
Optimising Largest Contentful Paint
csswizardry
30
2.8k
Music & Morning Musume
bryan
46
6k
Writing Fast Ruby
sferik
623
60k
Practical Orchestrator
shlominoach
185
10k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.1k
YesSQL, Process and Tooling at Scale
rocio
167
14k
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!! ൃදҎ্ʹͳΓ·͢ɻ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠