Which Virtual Machine do I need to install the NVIDIA GPU Driver Extension and run Fooocus?

Benjamin Charlton 26 Reputation points
2024-01-31T15:28:19.2766667+00:00

I'd like to run Fooocus (https://github.com/lllyasviel/Fooocus) locally, but my laptop doesn't have an NVIDIA GPU. So, I thought maybe I could rent a virtual machine on Azure with a higher spec. This turned out to be a lot harder than I expected. Whenever I try to create a new VM resource and add the NVIDIA GPU Driver Extension to it, Azure tells me:

The currently selected size is not supported by this extension. Select a gpu family size.

I have tried loads of sizes, even ones that seem very expensive, but none make the message go away. I can see the Operating System support for the Extension on this page: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/hpccompute-gpu-windows#prerequisites I tried Windows 10, Windows 11, and Windows Server but always got to that same error above. I read that I needed an N-Series VM on this page: https://learn.microsoft.com/en-us/azure/virtual-machines/sizes-gpu I searched for VMs that were N-Series on Azure and nothing came up, so I'm a bit stuck. I would be very grateful if somebody could tell me the most cost-effective virtual machine on Azure that:

  • Runs Windows
  • Permits a remote desktop connection
  • Has a GPU
  • Will support the NVIDIA GPU Driver Extension or will allow me to install NVIDIA drivers some other way)
  • Ultimately allowing me to run Fooocus

Many thanks in advance! Benjamin

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,041 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2024-02-17T19:48:27.98+00:00

    Hello, @Benjamin Charlton ! I apologize for the delay--I wanted to make sure I had a running version to confirm the installation.

    What Azure VM can I install Stable Diffusion (or other variants like Fooocus and Cascade)?

    You'll want to use a GPU accelerated VM (most installations I've seen are for NVIDIA):

    https://learn.microsoft.com/en-us/azure/virtual-machines/sizes-gpu

    From that list, the NCv3-series and NC T4_v3-series sizes or NV-series and NVv3-series sizes are a good place to start. These are very popular VMs as many people are currently working on AI projects so you may need to create a quota increase request:

    enter image description here

    Before you create your VM, you may want to take advantage of Azure Marketplace images that can make installation easier (note: please verify software that has been installed on your behalf):

    To verify this, I used pinokio (again, please verify software prior to installation). I used default drivers on the VM which made things straight forward although you can go through the GPU driver installation documentation if needed.

    With this I was able to get Fooocus up and running (as well as Cascade although I ran into script errors I didn't have time to work through when it came to image generation):

    User's image


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A! User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.