Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Chạy Cuttlefish trên máy chủ tại chỗ
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này mô tả cách chạy Cuttlefish trên máy chủ tại chỗ. Để chạy Cuttlefish trên máy chủ tại chỗ, bạn phải sử dụng hình ảnh Docker của Cuttlefish và dịch vụ web của Cloud Orchestrator.
Hình ảnh Docker của Cuttlefish bao gồm tất cả các phần phụ thuộc cần thiết để chạy Cuttlefish trong một vùng chứa. Hình ảnh Docker này cho phép bạn thiết lập cơ sở hạ tầng để chạy các phiên bản Cuttlefish từ xa trên nhiều môi trường máy chủ và cho phép bạn chạy Cuttlefish độc lập với chế độ thiết lập của máy chủ, chẳng hạn như biến thể hệ điều hành (Debian, Linux), phiên bản hệ điều hành, biến thể kiến trúc (x86_64, ARM64) và các phần phụ thuộc cài đặt khác.
Trình điều phối đám mây là một dịch vụ web để lưu trữ máy ảo hoặc vùng chứa mà bạn có thể chạy Cuttlefish.
cvdr
là giao diện dòng lệnh phía máy khách để tương tác với Trình điều phối trên đám mây.
Yêu cầu về máy chủ để chạy các phiên bản Cuttlefish
Các yêu cầu về máy chủ (ví dụ: yêu cầu về CPU và bộ nhớ) để chạy các thực thể Cuttlefish phụ thuộc vào số lượng thực thể Cuttlefish chạy cùng một lúc và lượng tài nguyên mà mỗi thực thể sử dụng. Ví dụ: để chạy 40 phiên bản Cuttlefish, mỗi phiên bản sử dụng 4 lõi CPU và 8 GB RAM, máy chủ cần có ít nhất 160 lõi và 320 GB RAM. Nếu sử dụng tính năng tăng tốc đồ hoạ, bạn cũng cần có GPU. Ngoài ra, CPU của máy chủ phải có kiến trúc ARM bằng hoặc cao hơn kiến trúc mà thực thể Cuttlefish sử dụng cho bản dựng.
Để tham khảo, nhóm Cuttlefish sử dụng chế độ thiết lập máy chủ ARM tại chỗ để chạy các thiết bị kết hợp Cuttlefish. Để chạy 40 thực thể CHD cùng một lúc, nhóm nghiên cứu sử dụng 128 lõi (chúng tôi sử dụng ARM v8.2 nhưng bạn có thể sử dụng phiên bản mới nhất) và 512 GB RAM.
Thiết lập máy chủ tại chỗ để chạy Cuttlefish
Để thiết lập máy chủ tại chỗ nhằm chạy Cuttlefish, hãy làm theo hướng dẫn trong phần Kích hoạt trình điều phối đám mây tại máy chủ tại chỗ.
Các hướng dẫn này mô tả cách chạy Cloud Orchestrator, công cụ này sẽ tải xuống và chạy hình ảnh Docker Cuttlefish dưới dạng máy chủ lưu trữ.
Sử dụng cvdr
để tương tác với trình điều phối trên đám mây nhằm tạo, xoá và liệt kê máy chủ lưu trữ cũng như các thực thể Cuttlefish.
Tải hình ảnh Docker Cuttlefish xuống
Để tải hình ảnh Docker Cuttlefish xuống, hãy làm theo hướng dẫn trong android-cuttlefish/docker/README.md trên GitHub.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 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."]]