用Isaac Automator在云端部署Isaac Lab工作站

Isaac Lab可借助Isaac Automator v4部署到AWS、GCP、Azure和阿里云,生成带远程桌面的Isaac Workstation。使用前需预装Docker并完成免sudo配置,之后通过容器执行部署、连接、暂停与销毁等操作。

## 云层部署[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#cloud-deployment>) Isaac Lab可在各种云基础设施中运行,并使用 [Isaac 自动化器](<https://github.com/isaac-sim/IsaacAutomator>) (v4). Isaaac Automator将Isaac Sim, Isaaac Lab Arena 部署到 AWS, GCP, Azure, 和 Alibaba Cloud 。 由此产生的 Isaaac Workstation 提供了用于开发和测试的远程桌面。 您可以停止并重启实例, 传输数据, 通过相同的工具运行启动脚本 。 ## 系统要求[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#system-requirements>) Isaaac Automator公司要求拥有 `docker` 预安装在系统上。 - 要安装 Docker, 请遵守您操作系统的指令 。 [Docker 引擎网站](<https://docs.docker.com/engine/install/>). - 跟着安装后的步骤,多克在 [Docker 安装后步骤](<https://docs.docker.com/engine/install/linux-postinstall/>) 。这些步骤允许您不使用 `sudo`. ## 安装 Isaac 自动化器[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#installing-isaac-automator>) 关于大多数up-to-date和完整的安装指令,请参见: [艾萨克自动化器 README](<https://github.com/isaac-sim/IsaacAutomator?tab=readme-ov-file#installation>). 要使用Isaac Automator,首先复制回波: HTTPS ``` git clone https://github.com/isaac-sim/IsaacAutomator.git cd IsaacAutomator ``` SSH ``` git clone git@github.com:isaac-sim/IsaacAutomator.git cd IsaacAutomator ``` ## 建造集装箱[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#building-the-container>) 构建 Isaac 自动化容器 : Linux / macOS 请检查url=值 (帮助). ``` ./build ``` 窗口 ``` docker build --platform linux/x86_64 -t isaac_automator . ``` 这将构建 Isaaac 自动化容器,并将其标记为 `isaac_automator`. ## 部署艾萨克工作站[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#deploying-an-isaac-workstation>) Linux / macOS 请检查url=值 (帮助). 输入自动化容器并运行部署命令 : ``` ./run # inside container: ./deploy-aws ``` 或者,一步步运行它: ``` ./run ./deploy-aws ``` 窗口 ``` docker run --platform linux/x86_64 -it --rm -v .:/app isaac_automator bash :: inside container: ./deploy-aws ``` 替换 `deploy-aws` 与 `deploy-gcp`, `deploy-azure`,或 `deploy-alicloud` 为其他云供养者. 说明 那个... `--isaaclab` 财务报告和财务报告 `--isaacsim` 标记接受任何有效的 Git 引用来指定要部署的版本。使用 `--isaaclab no` 或 时 间 `--isaacsim no` 以跳过相应组件的安装。 ``` ./deploy-aws --isaaclab v3.0.0 --isaacsim main ``` 在第一次运行(或证书到期时)时,将提示您输入您的云证书。 `state/` 并贯穿容器重新启动。运行 `./deploy-<cloud> --help` 以查看所有可用的选项。 关键部署选项 : - `--instance-type` – Cloud VM 实例类型. - `--isaacsim` / `--isaaclab` / `--isaaclab-arena` - 用于安装该版本的 Git ref, 或 `no` 跳过。 - `--existing` - 如果部署已经存在,怎么办: `ask` (违约), `repair`, `modify`, `replace`,或 `run_ansible`. - `--from-image` - 从预建的VM图像中部署以更快地提供(AWS,Azure,或GCP). ## 连接艾萨克工作站[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#connecting-to-the-isaac-workstation>) 已部署的Isaac工作站可通过下列途径进入: - **SSH**: `./ssh <deployment-name>` - **noVNC** (浏览器: `./novnc <deployment-name>` - **NoMachine** (远程桌面客户端) 连接指令显示在部署命令输出的末尾并保存到 `state/<deployment-name>/info.txt`. ## 在云上运行艾萨克实验室[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#running-isaac-lab-on-the-cloud>) Isaac Lab从源头安装在已部署的工作站上。 `~/IsaacLab`运行Isaac Lab 指令,在工作站上打开一个终端: ``` uv run --project ~/IsaacLab isaaclab train --rl_library rsl_rl \ --task=Isaac-Cartpole-Direct ``` ## 暂停和恢复[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#pausing-and-resuming>) 您可以停止并重新启动实例以节省云费用 : ``` # inside the Automator container: ./stop <deployment-name> ./start <deployment-name> ``` 使用( U) `./start <deployment-name> --quick` 以跳过完整的 Ansible 备料,而只运行自动运行的脚本。 ## 上传和下载数据[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#uploading-and-downloading-data>) ``` # upload local uploads/ folder to the instance ./upload <deployment-name> # download results from the instance to local results/ folder ./download <deployment-name> ``` ## 摧毁部署[#](<https://isaac-sim.github.io/IsaacLab/main/source/features/cloud_deployment.html#destroying-a-deployment>) 为了节省费用,在不再需要时销毁部署: ``` # inside the Automator container: ./destroy <deployment-name> ``` 说明 部署元数据储存在 `state/` 目录。不要删除此目录,因为它是管理部署所需的。

查看原始来源