From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id C757F622A1 for ; Thu, 20 Jan 2022 07:26:47 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B64CC20EC4 for ; Thu, 20 Jan 2022 07:26:47 +0100 (CET) Received: from mail.pa.ass.de (mail.pa.ass.de [49.12.163.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 6A45720EB8 for ; Thu, 20 Jan 2022 07:26:44 +0100 (CET) From: "Daniel Plominski" To: "Proxmox VE user list" Date: Thu, 20 Jan 2022 06:26:36 +0000 Message-Id: In-Reply-To: <1103806153.136951.1642619564206.JavaMail.zimbra@numberall.com> References: <5488c340-0a68-cb7d-4e65-e9a5fcfa7f23@merit.unu.edu> <1103806153.136951.1642619564206.JavaMail.zimbra@numberall.com> Reply-To: "Daniel Plominski" User-Agent: eM_Client/9.0.549.0 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_SHORT 0.001 Use of a URL Shortener for very short URL SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [nvidia.de, ass.de, leadergpu.com] Subject: Re: [PVE-User] windows remote desktop services as VM on proxmox X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2022 06:26:47 -0000 Hello Daniel Bayerdorffer, Long story briefly explained on the example of an AMD server with NVIDIA=20 graphics card (on Proxmox 6.4 / 7): 1. activate IOMMU, deactivate framebuffer root@assg25:~# cat /etc/kernel/cmdline root=3DZFS=3Drpool/ROOT/pve-1 boot=3Dzfs amd_iommu=3Don iommu=3Dpt video=3D= efifb:off root@assg25:~# root@assg25:~# update-initramfs -u -k all 2. deactivate (nativ) Kerneldrivers root@assg25:~# cat /etc/modprobe.d/blacklist.conf blacklist radeon blacklist nouveau blacklist nvidia blacklist nvidiafb blacklist snd_hda_intel root@assg25:~# 3. load vfio drivers root@assg25:~# cat /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. vfio vfio_iommu_type1 vfio_pci vfio_virqfd # EOF root@assg25:~# 4. search for the appropriate graphics card entry root@assg25:~# root@assg25:~# lspci -v > /tmp/GPU_INFO root@assg25:~# root@assg25:~# grep -A 30 "Quadro P1000" /tmp/GPU_INFO root@assg25:~# lspci -n -s 27:00 27:00.0 0300: 10de:1cb1 (rev a1) 27:00.1 0403: 10de:0fb9 (rev a1) root@assg25:~# 5. configure vfio.conf root@assg25:~# cat /etc/modprobe.d/vfio.conf options vfio-pci ids=3D10de:1cb1,10de:0fb9 disable_vga=3D1 root@assg25:~# 6. host reboot sync update-initramfs -u -k all proxmox-boot-tool refresh sync; reboot 7. create a windows vm in ovmf (uefi) mode, machine type: pc-q35-5.2,=20 cpu with hidden and hv-vendor-id flag and gpu (hostpci) passthrough root@assg25:/etc/pve/qemu-server# cat 216.conf # #term41gpu # #GPU - PCIe 27%3A00 # agent: 1,type=3Dvirtio balloon: 0 bios: ovmf boot: order=3Dvirtio0;net0 cores: 12 cpu: host,hidden=3D1,hv-vendor-id=3Dproxmox efidisk0: local-zfs:vm-216-disk-1,size=3D1M hostpci0: 27:00,pcie=3D1 machine: pc-q35-5.2 memory: 73728 name: term41gpu net0: virtio=3DXX:XX:XX:XX:XX:XX,bridge=3Dvmbr107,firewall=3D1 numa: 1 ostype: win10 scsihw: virtio-scsi-single smbios1: uuid=3DXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX sockets: 2 startup: order=3D116 virtio0: local-zfs:vm-216-disk-0,iothread=3D1,size=3D256G vmgenid: XXXXXXX-XXXX-XXXX-XXXXXXXXXXXX root@assg25:/etc/pve/qemu-server# 8. install the windows server drivers from nvidia https://www.nvidia.de/Download/driverResults.aspx/176988/de 9. activate the necessary RemoteFX settings using the active-directory=20 group policies (or the local ones) https://www.leadergpu.com/articles/483-how-to-enable-gpu-rendering-for-micr= osoft-remote-desktop-on-leadergpu-servers ASS - Der Bildungseinrichter GmbH Mit freundlichen Gr=C3=BC=C3=9Fen DANIEL PLOMINSKI Leitung IT | Head of IT Telefon 09265 808-151 | Mobil 0151 58026316 | dpl@ass.de PGP Key: https://pgp.ass.de/dpl@ass.de.asc PGP Fingerprint: 74DBC06BD9F63187C4DF8934C96585A89CFC10B3 Company Logo ASS-Einrichtungssysteme GmbH =09 ASS-Adam-Stegner-Stra=C3=9Fe 19 | D-96342 Stockheim Gesch=C3=A4ftsf=C3=BChrer: Matthias Stegner, Michael Stegner, Ralph M=C3= =BCller =09 Amtsgericht Coburg HRB 3395 | Ust-ID: DE218715721 Bottom_Line