2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
オンプレミス サーバーで Cuttlefish を実行する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、オンプレミス サーバーで Cuttlefish を実行する方法について説明します。Cuttlefish をオンプレミス サーバーで実行するには、Cuttlefish の Docker イメージと Cloud Orchestrator のウェブサービスを使用する必要があります。
Cuttlefish の Docker イメージには、コンテナでの Cuttlefish の起動に必要な依存関係がすべて含まれています。この Docker イメージを使用すると、さまざまなホスト環境で Cuttlefish インスタンスをリモートで実行するためのインフラストラクチャをセットアップしたり、OS の種類(Debian、Linux)、OS のバージョン、アーキテクチャの種類(x86_64、ARM64)、その他のインストールの依存関係など、ホストマシンのセットアップから独立して Cuttlefish を起動したりできます。
Cloud Orchestrator は、Cuttlefish を実行できる VM またはコンテナをホストするためのウェブサービスです。cvdr
は、Cloud Orchestrator と連携するためのクライアントサイドのコマンドライン インターフェースです。
Cuttlefish インスタンスを実行するためのサーバーの要件
Cuttlefish インスタンスを実行するためのサーバーの要件(CPU やメモリの要件など)は、同時に実行される Cuttlefish インスタンスの数と、それぞれのインスタンスで使用されるリソースの量に応じて異なります。たとえば、各インスタンスで 4 個の CPU コアと 8 GB の RAM を使用している Cuttlefish インスタンスを 40 個実行する場合、サーバーには少なくとも 160 個のコアと 320 GB の RAM が必要になります。グラフィック アクセラレーションを使用する場合は、GPU も必要になります。
参考までに、Cuttlefish チームでは Cuttlefish ハイブリッド デバイス(CHD)を実行するために、ARM のオンプレミス サーバー設定を使用しています。40 個の CHD インスタンスを同時に実行するために、128 個のコア(現在使用しているバージョンは ARM v8.2 ですが、最新バージョンでも構いません)と 512 GB の RAM を使用しています。
Cuttlefish を実行するためのオンプレミス サーバーをセットアップする
Cuttlefish を実行するためのオンプレミス サーバーをセットアップするには、オンプレミス サーバーで Cloud Orchestrator を有効にするの手順に沿って操作します。ここでは、Cloud Orchestrator を実行して Cuttlefish の Docker イメージをダウンロードし、ホストとして実行する方法について説明します。
cvdr
を使用して Cloud Orchestrator と連携し、ホストと Cuttlefish インスタンスを作成、削除、および一覧表示します。
Cuttlefish の Docker イメージをダウンロードする
Cuttlefish の Docker イメージをダウンロードするには、GitHub の android-cuttlefish/docker/README.md の手順に沿って操作します。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-02-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-02-26 UTC。"],[],[],null,["# Run Cuttlefish on an on-premise server\n\nThis page describes how to run Cuttlefish on an on-premise server. To run\nCuttlefish on an on-premise server, you must use the Cuttlefish\n[Docker](https://docs.docker.com/get-started/overview/) image and the Cloud\nOrchestrator web service.\n\nThe Cuttlefish Docker image includes all the required dependencies for launching\nCuttlefish in a container. This Docker image lets you set up the infrastructure\nfor running Cuttlefish instances remotely on different host environments and\nlets you launch Cuttlefish independently from your host machine's setup, for\nexample OS variant (Debian, Linux), OS version, architecture variant (x86_64,\nARM64), and other installation dependencies.\n\nThe\n[Cloud Orchestrator](https://github.com/google/cloud-android-orchestration/blob/main/docs/cloud_orchestrator.md)\nis a web service for hosting VMs or containers that you can run Cuttlefish on.\n[`cvdr`](https://github.com/google/cloud-android-orchestration/blob/main/docs/cvdr.md)\nis a client-side command line interface for interacting with the Cloud\nOrchestrator.\n\nServer requirements for running Cuttlefish instances\n----------------------------------------------------\n\nThe server requirements (for example, CPU and memory requirements) for\nrunning Cuttlefish instances depends on the number of Cuttlefish\ninstances running at the same time and the amount of resources each instance\nuses. For example, to run 40 Cuttlefish instances, which each use 4 CPU cores\nand 8 GB of RAM, the server requires at least 160 cores and 320 GB of\nRAM. If using graphical acceleration, GPUs are also required. Also, the server's\nCPU should have an ARM architecture equal to or higher than that used by a\nCuttlefish instance for its build.\n\nFor reference, the Cuttlefish team uses an on-premise ARM server setup for\nrunning Cuttlefish hybrid devices. To run 40 CHD instances at the same time, the\nteam uses 128 cores (we use ARM v8.2 but you can use the latest version) and\n512 GB of RAM.\n\nSet up an on-premise server for running Cuttlefish\n--------------------------------------------------\n\nTo set up an on-premise server for running Cuttlefish, follow the instructions\nin\n[Activate cloud orchestrator at on-premise server](https://github.com/google/cloud-android-orchestration/blob/main/scripts/on-premises/single-server/README.md).\nThese instructions describe how to run Cloud Orchestrator, which downloads\nand runs the [Cuttlefish Docker image](#download-docker-image) as a host.\n\nUse\n[`cvdr`](https://github.com/google/cloud-android-orchestration/blob/main/docs/cvdr.md)\nto interact with Cloud orchestrator to create, delete, and list hosts and\nCuttlefish instances.\n\nDownload the Cuttlefish Docker image\n------------------------------------\n\nTo download the Cuttlefish Docker image, follow the instructions in\n[android-cuttlefish/docker/README.md](https://github.com/google/android-cuttlefish/blob/main/README.md)\non GitHub."]]