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
19
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
440
クラウドの作り方(GPUサーバ編)
picasa
0
2.2k
A story until offering openSUSE on Sakura VPS
picasa
0
62
自宅サーバでマストドンを立てる
picasa
1
2.6k
さくらのサービスを支えるAPI開発のお話(仮) - APIStudy#6
picasa
0
44
卒業制作 サーバーの脆弱性情報管理システム
picasa
0
30
Kickstartfileジェネレータを作ってみた
picasa
0
19
Amazon Cognito + SNS + Zabbixでサーバー監視アプリを作ってみた - JAWS DAYS 2015
picasa
0
48
Amazon SNSでZabbixのアラートをプッシュ通知してみた
picasa
0
43
Other Decks in Programming
See All in Programming
선언형 UI에서의 상태관리
l2hyunwoo
0
140
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
110
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
210
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
140
ドメインイベント増えすぎ問題
h0r15h0
1
180
Recoilを剥がしている話
kirik
5
6.6k
Zoneless Testing
rainerhahnekamp
0
120
バグを見つけた?それAppleに直してもらおう!
uetyo
0
170
創造的活動から切り拓く新たなキャリア 好きから始めてみる夜勤オペレーターからSREへの転身
yjszk
1
130
Beyond ORM
77web
1
160
Featured
See All Featured
Bash Introduction
62gerente
608
210k
The Language of Interfaces
destraynor
154
24k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Site-Speed That Sticks
csswizardry
2
190
Git: the NoSQL Database
bkeepers
PRO
427
64k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Optimising Largest Contentful Paint
csswizardry
33
3k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
We Have a Design System, Now What?
morganepeng
51
7.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
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!! ൃදҎ্ʹͳΓ·͢ɻ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠