You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否在Google Cloud、Azure等云服务器上运行AirSim?本地运行过热转云平台报错求助

Hey there! Let's work through your AirSim cloud deployment issues together.

Can AirSim Run on Azure/GCP Cloud Servers?

First off, the short answer: Yes, you absolutely can—but you need to use GPU-accelerated instances and configure the graphics environment correctly. AirSim depends on hardware-accelerated graphics APIs (like OpenGL) that plain CPU-only cloud instances don't support, which is why you're hitting those errors.

Fixing Azure's "Insufficient Driver/Hardware" & OpenGL Errors

Your errors ("insufficient driver or hardware" and failed OpenGL 4.3 context creation) stem from using a non-GPU instance or missing proper drivers. Here's how to fix it:

  • Switch to a GPU-enabled instance: Choose Azure's NV-series (e.g., NVv3, NVv4) or NC-series instances—these come with NVIDIA GPUs that support OpenGL 4.3+.
  • Install NVIDIA drivers & CUDA: After spinning up the instance, install the official NVIDIA driver matching your GPU model, plus the CUDA toolkit. This ensures the system recognizes the GPU and supports the required OpenGL version.
  • Set up a virtual display: Cloud servers don't have physical monitors, so you need a virtual X server. Run these commands to start Xvfb (a lightweight virtual display):
    Xvfb :0 -screen 0 1024x768x24 &
    export DISPLAY=:0
    
    Then launch AirSim within this environment.
Fixing Google Cloud's XRandR/SDL Initialization Errors

The XRandR and SDL errors happen because GCP's default instances lack a proper X11 graphics environment (which SDL relies on for display handling). Try these steps:

  • Use a GPU instance: Pick GCP's N1 instances with NVIDIA T4/P4 GPUs, or A2-series instances—these include the hardware needed for graphics acceleration.
  • Install X11 components & NVIDIA drivers: Install packages like xorg, xrandr, and the official NVIDIA driver. For Ubuntu-based instances, run:
    sudo apt update && sudo apt install xorg xrandr
    
    Then install the NVIDIA driver via GCP's nvidia-driver-installer tool or official repositories.
  • Configure SDL to use X11: Set the environment variable to force SDL to use the X11 backend:
    export SDL_VIDEODRIVER=x11
    
    Combine this with the Xvfb setup from the Azure section to create a virtual display for AirSim.

Once you've configured the GPU instance and graphics environment, AirSim should run smoothly on either cloud platform.

内容的提问来源于stack exchange,提问作者ozan pali

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.30 08:42:43