There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
 - The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
 
| #!/bin/bash | |
| # Verify if GPU is CUDA-enabled | |
| lspci | grep -i nvidia | |
| # Remove previous NVIDIA driver installation | |
| sudo apt-get purge nvidia* -y | |
| sudo apt remove nvidia-* -y | |
| sudo rm /etc/apt/sources.list.d/cuda* -y | |
| sudo apt-get autoremove && sudo apt-get autoclean -y |