Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Proxmoxをまとめて管理できるコンソール作ってみました
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
karugamo
May 23, 2025
Programming
990
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Proxmoxをまとめて管理できる コンソール作ってみました
JPmoxs勉強会#7 LT1での登壇資料です。
karugamo
May 23, 2025
More Decks by karugamo
See All by karugamo
暇に任せてProxmoxコンソール 作ってみました
karugamo
2
1.2k
Other Decks in Programming
See All in Programming
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
Kotlinの15年とServer-Side Kotlin
n_takehata
1
160
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
660
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
AWSに止められる覚悟してますか?
morizo_1984
2
540
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
300
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
golang-bob.pdf
iwatsukayura
0
130
Workers Cache を知る
syumai
0
370
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
10k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
What's in a price? How to price your products and services
michaelherold
247
13k
Making Projects Easy
brettharned
120
6.8k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
My Coaching Mixtape
mlcsv
0
360
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Building Adaptive Systems
keathley
44
3.3k
The browser strikes back
jonoalderson
0
1.8k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
310
Chasing Engaging Ingredients in Design
codingconduct
0
370
Transcript
Proxmoxをまとめて管理できる コンソール作ってみました カルガモ JPmoxs勉強会#7 LT1
自己紹介 名前:カルガモ 情報系の大学生(4回生) 今年に入ってAWSに入門 X(旧Twitter):@karugamosenpai Qiita:@karugamosenpai 2
前回のきっかけ JPmoxs #5 LT2 友人にサーバを布教したいけど... 難しすぎない??? 3
前回の概要 4 X(旧Twitter)等での反響も...
作ったもの ダッシュボード 5
作ったもの ダッシュボード • /currentなどのデータ取得 • /rrddataのグラフの作成 6
構成 ~概要~ 7 Cloudflare Tunnelの認証情報と Proxmoxの認証情報を付与 • 利用者はAWSで動いているサービスを使用、 Proxmox本体には一切直接アクセスしない •
AWS Proxmox間はCloudflare tunnelで接続し、 Service tokenで認証
構成 AWS ~全体~ • AWSのAPI GatewayとLambdaで ProxmoxへAPIをリレー • VMの認証情報とCFのトークンは Parameter
Storeで保管 8 Parameter StoreからCFの clientIDとsecretを取得 DBのノード情報などは定期更新
構成 AWS ~VNC~ 9 • 最初にチケットを発行 • Proxmoxの/vncwebsocketへの websocket通信が必要 •
Lightsail(EC2)のNode.jsでリレー (xtermはバグ#6079でAPIで使用不可)
構成 AWS ~VNC~ • 最初にチケットを発行 • Proxmoxの/vncwebsocketへの websocket通信が必要 • Lightsail(EC2)のNode.jsでリレー
(xtermはバグ#6079でAPIで使用不可) 10 ②チケット&接続情報保存 ①チケット発行 ③チケットで接続情報取得して websocketで接続
活用案 新規ユーザ • ちょっと試しに使ってみたい... • 24時間起動しときたい... 鯖主 • 物理的距離が離れた場所に リソースを配置したい...
• 監視サーバを配置したい... 等 11
活用案 メニューも柔軟に設定したり... 12
13 構成 QEMU Guest Agent “QEMU Guest Agentは、Proxmox VEとゲストOS (VM)間で通信を行い、仮想化環境における管理や
操作をサポートするツール” * インストール方法 • apt-get install qemu-guest-agent • systemctl enable qemu-guest-agent • qm agent <vmid> ping *引用:青山 尚暉,海野 航 ,大石 大輔,工藤 真臣,殿貝 大樹,野口 敏久, ”Proxmox VEサーバー仮想化導入実践ガイド”,インプレス,2025,p.174
14 構成 QEMU Guest Agent # qm guest cmd <vmid>
get-host-name { "host-name" : "OC-demo" } # qm guest cmd <vmid> get-users [ { "login-time" : 1747322704.3527, "user" : "karugamo" } ] # qm guest cmd <vmid> get-osinfo { "id" : "ubuntu", "kernel-release" : "5.15.0-139-generic", "kernel-version" : "#149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025", "machine" : "x86_64", "name" : "Ubuntu", "pretty-name" : "Ubuntu 22.04.5 LTS", "version" : "22.04.5 LTS (Jammy Jellyfish)", "version-id" : "22.04" }
15 構成 QEMU Guest Agent exec • Proxmox API /api2/json/nodes/{node}
/qemu/{vmid}/agent/execで任意のコマンドを実行 可能 (結果の確認は/exec-statusポーリングが必要) # qm guest exec <vmid> -- sh -c 'echo "hello" 2>&1' { "exitcode" : 0, "exited" : 1, "out-data" : "hello\n" }
まとめ • AWSに入門&移行しました • VNCなども自前で実装できる • QEMU Guest Agentで色々操作できるのでもっと活用したい •
利用案の需要あるかな... 16
ありがとうございました! 17