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
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
110
Contemporary Test Cases
maaretp
0
140
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
Realtime API 入門
riofujimon
0
150
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
540
イベント駆動で成長して委員会
happymana
1
330
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
CSC509 Lecture 12
javiergs
PRO
0
160
Jakarta EE meets AI
ivargrimstad
0
110
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
190
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
960
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Thoughts on Productivity
jonyablonski
67
4.3k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Building an army of robots
kneath
302
43k
The Cult of Friendly URLs
andyhume
78
6k
Statistics for Hackers
jakevdp
796
220k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
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!! ൃදҎ্ʹͳΓ·͢ɻ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠