Because the system must be windows, windows server system has no graphics card driver, and win 10 has no corresponding server hardware driver, so we try to install windows 10 and use windows server20 19 driver. After the system was installed, the driver problem led to the blue screen of the system, which could not be used normally after restarting.
Only centos+kvm can be used to deploy win 10 virtual machine, and the graphics card adopts straight-through mode, so the graphics card driver can be installed normally.
English installation, virt-manager graphical interface Chinese will display garbled code.
Centos version: CentOS-7.8-x86_64-DVD-2003
Automatic partition is adopted, but manual partition is more suitable.
2. 1 Establish a bridging network named br0. After eno 1, change it to br0.
Install the bridging utility.
Configure the network parameters of br0 and configure your own ip according to your own network card.
Modify the network parameters of eno 1.
Restart the network
Systemctl restarts the network.
2.2 install kvm
Check kvm version. Installing windows in UEFI mode requires upgrading kvm.
2.3 update qemu-kvm
View the updated kvm version
2.4 installing OVMF
OVMF "is a project to support virtual machines for UEFI".
2.5 install win 10
Use the graphical interface to install xshell's xmanager tool.
Virtual manager
2.5. 1 Select UEFI mode, and do not configure the graphics card to pass temporarily.
2.5.2 If the hard disk or CD/ROM does not support IDE mode, please change to SATA mode.
2.5.4vnc connection configuration, select vncserver, otherwise the virtual machine screen may not be visible, and the vnc client is configured in raw mode, otherwise it may get stuck.
2.6 the graphics card passed
2.6. 1 open iommu.
Iommu has two functions: mapping the dma address of the control device to the physical address (dmar) of the machine and interrupt remapping (optional).
Confirm whether the kernel supports iommu.
If there is output, Cat /proc/cmdline | grep iommu is normal.
If there is no output, please add intel_iommu=on to the grub startup file.
Edit grub file:
Vim/etc/ default /grub
Rebuild kernel
grub 2-mkconfig-o/boot/EFI/EFI/centos/grub . CFG
Verify again that the kernel supports iommu.
It is normal to have an output.
Verify that Ventricular Tachycardia -D is enabled.
Dmesg European meteorological organization
2.6.2 Disable the RTX2080 graphics driver on the server.
Disable the graphics card device on the server host.
VI/etc/modprobe . d/black list . conf
increase
vim/usr/lib/modprobe . d/dist-black list . conf
Add a line option nouveau modeset=0.
Back up the original initramfs new image image.
mv /boot/initramfs-$(uname -r)。 img/boot/initramfs-$(uname-r)-nouveau . img
Create a new initramfs mirror.
dracut/boot/initramfs-$(uname-r)。 Img dollars (uname -r)
2.6.3 The graphics card loads the vfio driver.
Load vfio module
Uninstall 4 video card devices from the server.
Verify that the vfio-pci driver is loaded on the graphics card device, and it is loaded successfully.
2.6.4 add NVDIA graphics card to win 10 virtual machine.
At the same time, you can add USB device passthrough to the server.
Ps: Please refer to the link for other configurations.
After adding, shut down and restart.
To install the graphics driver, you need to modify the configuration file of virtual machine win 10.
Otherwise, the self-check will report an error 43 during the installation of the graphics card driver, and it is not allowed to install the driver on the virtual machine.
Reboot to install the driver.
AID64 test