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
24
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
500
クラウドの作り方(GPUサーバ編)
picasa
0
2.5k
A story until offering openSUSE on Sakura VPS
picasa
0
80
自宅サーバでマストドンを立てる
picasa
1
2.7k
さくらのサービスを支えるAPI開発のお話(仮) - APIStudy#6
picasa
0
55
卒業制作 サーバーの脆弱性情報管理システム
picasa
0
32
Kickstartfileジェネレータを作ってみた
picasa
0
26
Amazon Cognito + SNS + Zabbixでサーバー監視アプリを作ってみた - JAWS DAYS 2015
picasa
0
56
Amazon SNSでZabbixのアラートをプッシュ通知してみた
picasa
0
56
Other Decks in Programming
See All in Programming
プログラミング教育のコスパの話
superkinoko
0
120
Go1.24で testing.B.Loopが爆誕
kuro_kurorrr
0
160
SQL Server ベクトル検索
odashinsuke
0
120
ミリしらMCP勉強会
watany
2
370
Preact、HooksとSignalsの両立 / Preact: Harmonizing Hooks and Signals
ssssota
1
700
WordPress Playground for Developers
iambherulal
0
120
Devin , 正しい付き合い方と使い方 / Living and Working with Devin
yukinagae
1
530
AI時代のプログラミング教育 / programming education in ai era
kishida
23
20k
自分のために作ったアプリが、グローバルに使われるまで / Indie App Development Lunch LT
pixyzehn
1
120
snacks.nvim内のセットアップ不要なプラグインを紹介 / introduce_snacks_nvim
uhooi
0
340
보일러플레이트 코드가 진짜 나쁜 건가요?
gaeun5744
0
370
ニックトレイン登壇資料
ryotakurokawa
0
140
Featured
See All Featured
Embracing the Ebb and Flow
colly
85
4.6k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
Stop Working from a Prison Cell
hatefulcrawdad
268
20k
Writing Fast Ruby
sferik
628
61k
Fontdeck: Realign not Redesign
paulrobertlloyd
83
5.4k
RailsConf 2023
tenderlove
29
1k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
KATA
mclloyd
29
14k
Being A Developer After 40
akosma
90
590k
Optimizing for Happiness
mojombo
377
70k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
It's Worth the Effort
3n
184
28k
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!! ൃදҎ্ʹͳΓ·͢ɻ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠