'LXD Container Client Error "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver" When Install NVidia

I have lxd container client with ubuntu os 18.04. When I install nvidia following https://www.murhabazi.com/install-nvidia-driver, and I run "nvidia-smi" there is an error "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running." What's wrong?

lxd


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source