Run Blender on a Cloud GPU Ubuntu: Step-by-Step
In this article
This guide shows you how to run Blender on a cloud GPU instance running Ubuntu. You'll get fast rendering and viewport performance without buying expensive hardware. You'll need a cloud provider account (like AWS, Google Cloud, or Paperspace), an SSH client, and basic Linux command knowledge. The steps below use a standard Ubuntu 22.04 LTS image with an NVIDIA GPU.
What You'll Need
- A cloud GPU instance with at least 8 GB VRAM (e.g., NVIDIA T4, V100, or A10).
- Ubuntu 22.04 LTS (or 20.04) pre-installed on that instance.
- SSH access to the instance (username and key or password).
- An SSH client on your local machine (e.g., Terminal on macOS/Linux, PuTTY on Windows).
- Blender's Linux download (tar.xz archive) from blender.org – you can grab it on the instance via wget.
Step-by-Step
- Connect to your instance via SSH. Open a terminal and run:
ssh ubuntu@your_instance_ip. Replace 'ubuntu' with your default username (often 'ubuntu' or 'root') and the IP with your instance's public IP. - Update the system and install dependencies. Run:
sudo apt update && sudo apt upgrade -yand thensudo apt install -y wget libx11-6 libxext6 libxrender1 libgl1-mesa-glx libglu1-mesa libxkbcommon0 libegl1. These libraries are needed for Blender's GUI and OpenGL rendering. - Install NVIDIA drivers. If your instance doesn't have drivers pre-installed, run:
sudo apt install -y nvidia-driver-535(or the latest version available). Reboot after:sudo rebootand reconnect via SSH. - Verify the GPU is visible. Run
nvidia-smi. You should see your GPU model and driver version. If it says 'No devices found', the driver didn't install correctly – see Troubleshooting. - Download Blender. Go to blender.org/download to find the latest Linux tar.xz link. On the instance, run:
wget https://download.blender.org/release/Blender4.2/blender-4.2.0-linux-x64.tar.xz(adjust version as needed). - Extract Blender. Run:
tar -xvf blender-4.2.0-linux-x64.tar.xz. This creates a folder likeblender-4.2.0-linux-x64. - Run Blender with GPU rendering. Navigate into the folder:
cd blender-4.2.0-linux-x64and launch Blender:./blender. If you're using a headless server (no monitor), you'll need to enable virtual display – see Tips. - Enable GPU rendering in Blender. Once Blender opens, go to Edit > Preferences > System. Under 'Cycles Render Devices', select 'CUDA' or 'OptiX' (depending on your GPU). Check your GPU model. Then in the Render Properties tab (the monitor icon), set 'Device' to 'GPU Compute'.
- Test a render. Open a sample file (File > Open, choose a .blend file) or create a simple cube. Press F12 to render. Check the bottom of the render window for 'Render Time'. If it uses GPU, it will be much faster than CPU.
Common Mistakes
- Forgetting to install NVIDIA drivers. Without them, Blender won't see the GPU. Always run
nvidia-smifirst. - Using the wrong Blender version for your OS. Make sure you download the Linux x64 version, not Windows or macOS.
- Not setting GPU as the render device. Even with drivers, Blender defaults to CPU. You must manually select CUDA/OptiX in Preferences.
- Running out of disk space. Blender and its cache can take several GB. Check with
df -hbefore starting. - Ignoring firewall rules. If you plan to use Blender's remote control or render on a port, open it in your cloud provider's security group.
Tips
- Use a virtual display for headless servers. If you don't have a monitor, install
xvfband run Blender withxvfb-run ./blender. This creates a virtual screen so Blender doesn't crash. - Render from the command line for automation. You can render a .blend file without opening the GUI:
./blender -b myfile.blend -o //output_ -F PNG -x 1 -t 0. The-bruns in background mode,-osets output,-t 0uses all threads. - Consider using Blender's EEVEE for real-time preview. It uses OpenGL and works well on cloud GPUs, but for final renders, Cycles with OptiX is faster.
- Save your Blender preferences. After setting GPU, go to Edit > Preferences > Save Preferences. Then you won't have to set it again for new sessions.
- Use a persistent disk. If you stop your instance, data on the system disk may be lost. Attach a persistent volume for your Blender files and output.
Troubleshooting
- Blender doesn't start (missing libGL.so.1). Install the OpenGL library:
sudo apt install libgl1-mesa-glx. If still missing, runldd ./blender | grep 'not found'to see exactly which libraries are missing and install them. - nvidia-smi shows no GPU. Reboot the instance after installing drivers. If it still fails, your cloud provider may not have enabled GPU passthrough – check your instance type and region. On some providers, you need to request a GPU quota.
- Blender renders but uses CPU only. Go to Edit > Preferences > System and ensure CUDA/OptiX is checked. Also check that your GPU is listed under 'Cycles Render Devices'. If not, your driver may be too old – update it.
- Black screen or rendering errors. Try running with
xvfb-runif headless. For Cycles, try switching from OptiX to CUDA, as some older GPUs don't support OptiX. - Out of memory during render. Reduce tile size in Performance settings (e.g., 256x256) or lower the resolution. Also check available RAM with
free -h.
Frequently Asked Questions
Can I use Blender on a cloud GPU without a monitor?
Yes, use xvfb-run to create a virtual display. For rendering, you can also run Blender in background mode (-b) which doesn't need a display at all.
What is the best cloud provider for Blender?
It depends on your needs. AWS, Google Cloud, and Paperspace all offer GPU instances. Paperspace is often simpler for beginners, while AWS and GCP have more options and pricing flexibility.
How much does it cost to run Blender on a cloud GPU?
Prices vary by provider and GPU type. A T4 instance might cost around $0.30–$0.50 per hour, while a V100 or A100 can be $1–$3 per hour. Check your provider's pricing page for current rates.
Do I need to install Blender every time I start the instance?
No, if you save the instance image or use a persistent disk, Blender and drivers will remain. But if you stop the instance, the system disk may be wiped unless you have persistent storage.
Can I use a cloud GPU for real-time rendering in Blender?
Yes, for viewport and EEVEE real-time rendering, a cloud GPU works well if you have a good network connection. For final Cycles renders, it's also fast but not real-time.
Is it safe to run Blender on a cloud GPU?
Yes, as long as you follow security best practices: use SSH keys, keep your system updated, and don't expose unnecessary ports. Blender itself is safe to run.