XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Toby4213
    3. Posts
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Toby4213

    • RE: GPU passthrough - Windows VM doesn't boot correctly

      @l1c said in GPU passthrough - Windows VM doesn't boot correctly:

      @toby4213
      I don't think since it seems from the link you posted that the latest Xen version resolve the issue.
      TBH most of this goes way above my head...

      Where do you see this as implemented? The github issue is still open...

      @tony said in GPU passthrough - Windows VM doesn't boot correctly:

      I had this problem before and XCP-ng won't boot without another graphic card to display its xsconsole. It might have been changed in latest version of XCP-ng but if not you'll have to have at least 1 graphics card for the host (can even be an iGPU) and another PCIe card for the VM.

      Also support for GeForce graphics card for VM is still in BETA stage so it might not work 100%, if you want to be sure then try your GRID card which might work better. AMD cards will work for sure even with vGPU.

      XCP-ng does boot with the GPU passed thorugh. XCP-ng comes online in XOA.
      The problem is the unstable Windows VM.
      I ordered a PCI riser, since I don't have a free 16x slots to test with 2 GPUs installed and 1 of them passed through.

      posted in Compute
      T
      Toby4213
    • VM Migration stuck at 0% VM metadata import

      I am trying to migrate a shut down VM from Server A to Server B.
      Server B is new and I deployed the XOA Instance from the Server B web ui.
      I also added Server A to the XOA instance. Both servers are separate pools.
      Trying to migrate in XOA doesn't work, the process is stuck at 0%:
      vm_migrate.png
      Server B task list, VM metadata import stuck at pending:

      [14:55 xcp-ng log]# xe task-list
      uuid ( RO)                : <uuid>
                name-label ( RO): VM metadata import
          name-description ( RO):
                    status ( RO): pending
                  progress ( RO): 0.000
      

      XCP-ng Center can migrate VM without a Problem.
      There I can also see the error message for the failed XOA migration attempt(s):
      Message: Migrate VM <VM-to-Migrate> Cannot contact the other host using TLS on the specified address and port; Server/Pool: Server A
      Both server have public IPs, there is no firewall between the servers.

      posted in Xen Orchestra
      T
      Toby4213
    • RE: GPU passthrough - Windows VM doesn't boot correctly

      @l1c Thanks for the reply and the Qubes OS workaround . I didn't now that Qubes was also using Xen, that's awesome. I will try with less ram (Currently 8GB), hopefully it will work. And if it does I will look into the workaround.

      I found this issue on Github:
      https://github.com/xcp-ng/xcp/issues/435
      Could this be the problem I am having?

      I am not at home this weekend and will give an update next week.

      olivierlambert created this issue in xcp-ng/xcp

      open q35 support in Xen #435

      posted in Compute
      T
      Toby4213
    • GPU passthrough - Windows VM doesn't boot correctly

      OS: XCP-ng 8.1.0
      Guest OS: Windows 10 LTSC 2019, Version 1809, Build 17763.2183
      GPU: Nvidia GTX 1660 Super

      The GPU worked for the XCP-ng console before I followed the PCIe Passthough guide from the XCP-ng docs. I enabled RDP and installed Parsec on the Windows VM. XCP-ng Guest Tools are installed. I am unable to install the Nvidia drivers beforehand. I get following error: This NVIDIA graphics driver is no compatible with this version of Windows. This graphics driver could not find compatible graphics hardware. I tried 465.89 and 471.96, both show the same error. I think this is because the GPU isn't passed through yet. The VM should boot even without those drivers.
      Following PCIe devices:

      [23:38 xcp-ng ~]# lspci
      
      09:00.0 VGA compatible controller: NVIDIA Corporation Device 21c4 (rev a1)
      09:00.1 Audio device: NVIDIA Corporation Device 1aeb (rev a1)
      09:00.2 USB controller: NVIDIA Corporation Device 1aec (rev a1)
      09:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device 1aed (rev a1)
      
      [23:42 xcp-ng ~]# xl pci-assignable-list 
      0000:09:00.0
      0000:09:00.3
      0000:09:00.1
      0000:09:00.2
      

      I assigned all four device to my Windows VM:

      [23:45 xcp-ng ~]# xe vm-param-set other-config:pci=0/0000:09:00.0,0/0000:09:00.1,0/0000:09:00.2,0/0000:09:00.3 uuid=<uuid>
      

      After that the devices still show up under xl pci-assignable-list, is that expected?
      Starting the Windows VM works without an error.

      [23:48 xcp-ng ~]# xe vm-start uuid=<uuid>
      [23:48 xcp-ng ~]#
      

      There is no video out on the console, which is expected I think, but the Windows VM never boots correctly. I am unable to ping/establish rdp connection. I have also tried connecting a monitor to the GPU while the VM is running and before booting, but get no video out.

      This is the only GPU installed on the system, no integrated graphics(Ryzen 5 3600). This shouldn't be a problem right? XCP-ng boots normally, the screen goes blank in the middle of the boot process, indicating that it's correctly blacklisted.

      Is this a known problem? How do I fix this?

      UPDATE:
      I got the VM to boot with the gpu passed through by NOT passing throught the USB Controller(0000:09:00.2). I am now able to install the nvidia drivers. Maybe this has to do with the USB Passthrough problems described here: https://xcp-ng.org/forum/topic/3594/pci-passthrough-usb-passthrough-does-not-work-together/ or maybe because my gpu doesn't have a USB-C connector which makes the USB controller irrelevant.

      After restarting to apply the nvidia drivers I get a black screen on the console and it seems that the VM once again doesn't boot correctly. I am unable to ping or establish rdp connection. I forced a shutdown and starting the VM again I could see the Tiano Core Windows boot screen, before I once again get a black screen.

      UPDATE 2:
      I also tried TightVNC but have the same problem that the VM isn't accessible via the network.

      UPDATE 3:
      I was able to boot the VM with the GPU. The 1660 Super was correctly shown in the Device Manager. After opening Geforce experience and trying to download the latest update I got the black screen again. During testing I also got a BSOD with error code VIDEO_TDR_FAILURE a couple of times. It seems that every time I try to update the drivers, the VM crashes.
      I also have a Grid K2 which I am going to try next.

      posted in Compute
      T
      Toby4213
    • Grid K1/K2 GPU Passthrough

      Re: Graphics Cards no longer on Hardware Compatibility List for 8.

      Does the Grid K1/K2 show up as 4 or 2 different GPUs respectively?
      Can multiple VMs utilise one of those GPUs at the same time?
      According to their datasheet they have multiple Kepler based GPUs.
      I haven't found any info regarding this.
      I know that vGPU won't work.

      OS: XCP-ng 8.2

      Edit:
      Also what performance could I expect from one VM with a passed through GPU?
      With passthrough does NVENC work in the VM?

      posted in Compute
      T
      Toby4213
    • XOA doesn't show Console over zerotier vpn

      I have a xcp-ng host server called Thor behind a firewall. Zerotier is installed directly on the hypervisor. The Xen Orchestra instance is in a VM on a different machine and also has zerotier installed.

      Everything works except for the console for the VM hosted on Thor and the hypervisor itself. Running xo-server in debug mode I get the following output after clicking on console:

      2021-03-16T19:39:14.225Z xo:main INFO + Console proxy (root - ::ffff:192.168.3.4)
      2021-03-16T19:39:14.488Z xo:api DEBUG root | pool.listMissingPatches(...) [8ms] ==> array
      2021-03-16T19:39:15.097Z xo:api DEBUG root | pool.listMissingPatches(...) [5ms] ==> array
      2021-03-16T19:39:28.506Z xo:proxy-console DEBUG error from the console: {
        error: Error: connect ETIMEDOUT 192.168.0.157:443
            at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
            at TCPConnectWrap.callbackTrampoline (internal/async_hooks.js:131:14) {
          errno: -110,
          code: 'ETIMEDOUT',
          syscall: 'connect',
          address: '192.168.0.157',
          port: 443
        }
      }
      2021-03-16T19:39:41.563Z xo:api WARN root | vm.stats(...) [32s] =!> Error: connect ETIMEDOUT 10.0.2.129:443
      2021-03-16T19:39:42.401Z xo:api DEBUG root | pool.listMissingPatches(...) [4ms] ==> array
        xen-api root@10.11.16.10: event.from(...) [40s] ==> object +4s
      2021-03-16T19:39:44.739Z xo:api DEBUG root | pool.listMissingPatches(...) [5ms] ==> array
      2021-03-16T19:39:45.658Z xo:proxy-console DEBUG error from the console: {
        error: Error: connect ETIMEDOUT 10.0.2.129:443
            at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
            at TCPConnectWrap.callbackTrampoline (internal/async_hooks.js:131:14) {
          errno: -110,
          code: 'ETIMEDOUT',
          syscall: 'connect',
          address: '10.0.2.129',
          port: 443
        }
      }
      2021-03-16T19:39:45.690Z xo:main INFO - Console proxy (root - ::ffff:192.168.3.4)
      

      192.168.3.4 is the IP of the jump host I am using to connect to the Xen Orchestra server, I don't know where 192.168.0.157 is from.
      10.0.2.129 is the local IP of Thor behind the firewall, but the Zerotier IP of the same server is 10.11.2.10 which is the IP I put into the host field for the server inside xoa.
      Screenshot from 2021-03-16 20-45-10.png
      Full disclosure: I installed Xen Orchestra from this install script https://github.com/ronivay/XenOrchestraInstallerUpdater but I don't think that this is the reason it doesn't work. Also none of my servers host anything in a productive environment. This is my hobby.

      How can I get the console to show up?

      posted in Xen Orchestra
      T
      Toby4213