How to Install NVIDIA VGPU on Ubuntu Virtual Machine
Автор: Francis Techworld
Загружено: 22 апр. 2025 г.
Просмотров: 53 просмотра
In this video, I will guide you through the process of installing an NVIDIA VGPU on an Ubuntu virtual machine. From setting up the hardware to configuring the necessary dependencies, I'll cover each step to ensure a successful installation. Whether you're looking to enhance your virtual machine's performance or dive into AI computations, this tutorial will help you get started. Don't forget to check the description for all the commands and links mentioned in the video!
Hashtags: #VirtualMachine #NVIDIA #TechTutorial
Update system software:
sudo apt update
sudo apt upgrade -y
Install SSH tools:
sudo apt install ssh -y
Install dependencies required for the driver:
sudo apt install build-essential libglvnd-dev pkg-config -y
Resolve GCC version compatibility issues between Ubuntu 22.04 and kernel 6.5: a. Check the current GCC version:
gcc --version | grep -e 'gcc'
b. Install GCC-12:
sudo apt install gcc-12 g++-12 -y
c. Add GCC versions to update-alternatives:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
d. Manually switch GCC version to gcc-12:
sudo update-alternatives --config gcc
Enter 2 to manually select.
[Optional] Install dkms:
sudo apt install dkms -y
[Optional] Install 32-bit compatibility libraries:
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libc6:i386 -y
Disable nouveau open-source driver: a. Create blacklist-nouveau.conf file:
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
b. Add the following content:
blacklist nouveau
options nouveau modeset=0
c. Save and exit: Press ctrl+x, enter Y, then press Enter.
Regenerate kernel initramfs:
sudo update-initramfs -u
Reboot the system:
sudo reboot
Verify nouveau is disabled:
lsmod | grep nouveau
Switch to text command line console:
sudo chvt 3
Stop graphical interface service:
sudo service gdm stop

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: