XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. marcoi
    3. Posts
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 55
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Building from source fails with commit cb96de6

      @manilx same here

      Xen Orchestra, commit 45ef6
      Master, commit 45ef6

      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: Building from source fails with commit cb96de6

      getting build error as well. I run the update every morning to build XO.
      Currently running at below version as the update failed

      Xen Orchestra, commit 676b0
      Master, commit bf705

      • Packages in scope: xo-server, xo-server-audit, xo-server-auth-github, xo-server-auth-google, xo-server-auth-ldap, xo-server-auth-oidc, xo-server-auth-saml, xo-server-back
      up-reports, xo-server-load-balancer, xo-server-netbox, xo-server-perf-alert, xo-server-sdn-controller, xo-server-test-plugin, xo-server-transport-email, xo-server-transport
      -icinga2, xo-server-transport-nagios, xo-server-transport-slack, xo-server-transport-xmpp, xo-server-usage-report, xo-server-web-hooks, xo-web
      • Running build in 21 packages
      • Remote caching disabled
      @xen-orchestra/qcow2:build: cache miss, executing e9d3169e4c8d9523
      @xen-orchestra/qcow2:build: yarn run v1.22.22
      @xen-orchestra/qcow2:build: $ tsc
      @xen-orchestra/qcow2:build: src/disk/QcowDisk.mts(94,52): error TS2365: Operator '&' cannot be applied to types 'bigint' and 'number'.
      @xen-orchestra/qcow2:build: error Command failed with exit code 2.
      @xen-orchestra/qcow2:build: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      @xen-orchestra/qcow2:build: ERROR: command finished with error: command (/opt/xo/xo-builds/xen-orchestra-202510281011/@xen-orchestra/qcow2) /tmp/yarn--1761660713548-0.01268
      3662235605908/yarn run build exited (2)
      @xen-orchestra/qcow2#build: command (/opt/xo/xo-builds/xen-orchestra-202510281011/@xen-orchestra/qcow2) /tmp/yarn--1761660713548-0.012683662235605908/yarn run build exited
      (2)
      
       Tasks:    26 successful, 28 total
      Cached:    0 cached, 28 total
        Time:    11.108s
      Failed:    @xen-orchestra/qcow2#build
      
       ERROR  run failed: command  exited (2)
      error Command failed with exit code 2.
      
      
      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: XCP-ng 8.3 updates announcements and testing

      updated my two hosts without issues.

      posted in News
      marcoiM
      marcoi
    • RE: Feature request add open in new tab to XO GUI

      @tc-atwork thanks for post, i wasnt able to get xo6 setup as i havent had time to play with it. I look forward to when it released. For now I just keep using xo-lite to open the console window.

      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: Feature request add open in new tab to XO GUI

      @olivierlambert

      I will have to figure out how to get XO 6 up and running. 😁

      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: Feature request add open in new tab to XO GUI

      just for reference. Under console tab in XO you have all the extra around the display
      23af10ef-35d1-4518-93b8-b9171dcde92b-image.png
      which is fine for quick access to do something but becomes a hassle when trying to work with the vm display.

      XO lite open in a new tab is clean interface. And it expands with the broswer.
      785df576-8711-4b67-9fc7-6353cb629cd4-image.png

      PS looking forward to the copy/paste feature being implemented.

      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: Feature request add open in new tab to XO GUI

      @probain I tried that just now, not really doing anything in XO. I am under console tab on a VM.

      On a side note, seem like the url for the new tab function in xo lite is

      https://MasterHostIP/#/vm/5de057e5-97a0-937f-15d6-ef8793c54331/console?ui=0
      Maybe because of the IP being the host and not XO it may be harder to implement as a button on XO?

      posted in Xen Orchestra
      marcoiM
      marcoi
    • Feature request add open in new tab to XO GUI

      I found under XO lite the open console in new tab an awesome feature. Its better then remote desktop especially for linux based VMs. I would like a button to provide the same feature in XO if possible.

      c1ef9b9c-1531-44f6-9b8d-1c23d8542370-image.png

      Maybe somewhere in this group of buttons.
      0ac64ff6-411f-408e-9efa-6f43e418c839-image.png

      posted in Xen Orchestra
      marcoiM
      marcoi
    • RE: No mem stats under Windows Server

      d8a45581-68e2-4c0e-aea9-e58f98b93d73-image.png

      a42099bd-e4d7-4004-8827-43984ee6974d-image.png

      Mine seems to work okay.

      Xen Orchestra, commit 1c01f
      Master, commit 1c01f

      posted in Management
      marcoiM
      marcoi
    • RE: XCP-ng 8.3 updates announcements and testing

      updated on my three servers no issues.

      posted in News
      marcoiM
      marcoi
    • RE: PCI device doesn't show in XO or xe pci-list

      so it seems like when i make the igpu pass through, i see the starting lines of xcp-ng but it never gets to the console screen. which is what i expect.
      When I add the pcie devices (igpu/hdmi audio) to a vm and start it up, I get and update to the screen and it shows a red number counting which is part of the console.
      So it seems that when the VM re-initializes the igpu, dom/xcp retakes it over.
      I confirmed that by using the keyboard to move around and it reshowing the console and filling the missing details as i move around.
      So why is the dom/xcp retaking the video device over again when it should be blocked from accessing it?

      IMG_3348.JPEG

      posted in Compute
      marcoiM
      marcoi
    • RE: PCI device doesn't show in XO or xe pci-list

      is there anyway to block igpu from being used by xcp-ng during boot? I have it setup for pass through but it fails under the VM. I think it because xcp-ng still displaying the console screen and does not want to give it up.

      posted in Compute
      marcoiM
      marcoi
    • Bash script to work with pci passthrough on host

      I wrote a simple script to help those of us who want to do pci passthrough and running into xe limits.
      Not responsible for issues/use/etc... use at own risk.
      Feel free to github/maintain it, i wont be planning on doing any more on it.
      I did this to work with pci passthrough and issues i been having while testing a new build. I found out that adding new devices while enabled pci for devices showing in xe can lead to issues and having to do pci hide reset. So i added that. I also added a enable pci device that is on xe so you can do it via app on host or still do it on gui using XO. Finally added a menu to add non xe pci device directly to vm.
      Vm list is my list so you need to update that with what you want to enable.

      Hope this helps someone else šŸ˜€

      So grab the code, save it to /root/pcishare.sh and chmod +x it to run it.
      This is on the host directly.

      #!/bin/bash
      
      # pcieDevices[x] is the name of the  device
      # pcieDevicesID[x] is the id of the device from lspci
      # pcieDevicesUUID[x] is uuid from xe list if available
      
      ######## Add Devices to check and make passthrough #########################
      #format pcieDevices[x]='' #make sure to use single quotes are special chars will mess up.
      ##############################################################################
      pcieDevices[0]='USB controller: ASMedia Technology Inc. ASM2142/ASM3142 USB 3.1 Host Controller'
      pcieDevices[1]='VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 720] (rev a1)'
      pcieDevices[2]='Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)'
      pcieDevices[3]='SATA controller: JMicron Technology Corp. JMB58x AHCI SATA controller'
      ###############################################################################
      
      #Startup
      pcieCount=${#pcieDevices[@]}
      
      #load lspci into array lspciDevices#####
      mapfile -t lspciDevices < <(lspci)
      
      #####################################################################################
      #function to request a reboot
      function rebootPC
      {
        read -n 1 -p "Need to reboot host. Y/N to reboot?: " doReboot
        case $doReboot in
              y|Y ) reboot;;
              *|n|N ) clear; echo "please reboot"; exit;;
        esac
      }
      
      ######################################################################################
      # remove old hide list / request reboot
      function resetDOMPCIE 
      {
        echo ""  
        echo " Clearing out xen-pciback list "
      
        /opt/xensource/libexec/xen-cmdline --delete-dom0 xen-pciback.hide
        
        echo "Completed"
        rebootPC
      
      }
      ######################################################################################
      # List variables to confirm which pcie the script is working with
      function confirmPCIList
      {
        clear
        echo ""
        echo "***************************************"
        for (( j=0; j<${#pcieDevices[@]}; j++ )); do
          echo "*${pcieDevices[$j]}"
        done
        echo "***************************************"
      exit
      }
      ######################################################################################
      function enablePCI
      {
      clear
      echo "**************************************************"
      echo "* Please select Index to enable pci passthrough  *"
      echo "**************************************************"
      echo ""
      
      for (( j=0; j<${#pcieDevices[@]}; j++ )); do
        if [ -n "${pcieDevicesUUID[$j]}" ]; then
          echo "Index $j: ${pcieDevicesUUID[$j]}-${pcieDevicesID[$j]}:${pcieDevices[$j]}"
        fi
      done
      echo ""
      echo ""
      read -n 1 -p  "Please make a selection or (E)xit: " menuEnablePCIEchoice;
      
      case $menuEnablePCIEchoice in
       [0-99] ) 
           echo ""
           xe pci-disable-dom0-access uuid=${pcieDevicesUUID[$menuEnablePCIEchoice]}
           echo ""
           
           rebootPC
       ;; 
       e|E ) exit;;
       * )  exit ;;
      esac
      }
      #######################################################################################
      function addPCIEVM
      {
      clear
      echo "********************************************************"
      echo "* Please select Index to enable pci passthrough on VM  *"
      echo "********************************************************"
      echo ""
      
      for (( j=0; j<${#pcieDevices[@]}; j++ )); do
        if [ -z "${pcieDevicesUUID[$j]}" ]; then
          echo "Index $j: ${pcieDevicesUUID[$j]}-${pcieDevicesID[$j]}:${pcieDevices[$j]}"
        fi
      done
      echo ""
      echo ""
      read -n 1 -p  "Please make a selection or (E)xit: " menuAddPCIEchoice;
      
      case $menuAddPCIEchoice in
       [0-99] )
           echo ""
           read -p  "Please provide the VM UUID: " vmID;
           echo ""
           xe vm-param-set other-config:pci=0/0000:${pcieDevicesID[$menuAddPCIEchoice]} uuid=$vmID
           echo ""
       ;;
       e|E ) exit;;
       * )  exit ;;
      esac
      }
      ######################################################################################
      function setPCIE
      {
      #########################################
      # Fill in pci ID into pcieDevicesID/UUID
      # Offer to toggle devices and add non xe device to VM
      #########################################
      
      clear
      
      # build list
      for (( i=0; i<"${#lspciDevices[@]}"; i++ )); do
       for (( j=0; j<${#pcieDevices[@]}; j++ )); do
        if [[ ${lspciDevices[$i]} ==  *"${pcieDevices[$j]}"*  ]]; then
         pcieDevicesID[$j]="${lspciDevices[$i]%% *}"
         tempUUID=""
         tempUUID=$(xe pci-list |grep -B 3 ${pcieDevicesID[$j]} |head -n 1| cut -d ':' -f2 | tr -d ' ')
      
         if [ -z "$tempUUID" ]; then
             echo "Index $j UUID not found for Device: ${pcieDevicesID[$j]} - ${pcieDevices[$j]}"
         else
            pcieDevicesUUID[$j]="$tempUUID"
            echo "Index $j Device:${pcieDevicesUUID[$j]}: ${pcieDevicesID[$j]} - ${pcieDevices[$j]} "
         fi
        fi
       done
      done
      
      echo "**************************************************"
      echo "* Would you like to:                             *"
      echo "* (E)nable pcie device for passthrough           *"
      echo "* (A)dd pcie directly to VM for non UUID         *"
      echo "* (Q)uit                                         *"
      echo "**************************************************"
      
      read -n 1 -p  "Please make a selection: " menuPCIEchoice;
      
      case $menuPCIEchoice in
       e|E ) enablePCI;;
       a|A ) addPCIEVM;;
       q|Q ) exit ;;
       * )  exit ;;
      esac
      }
      ##################################################
      # Menu - App choices below
      #################################################
      clear
      echo "****************************************"
      echo "* Please make sure to add your devices *"
      echo "* to the varible list before running   *"
      echo "*                                      *"
      echo "*             Menu                     *"
      echo "* Select options below to continue     *"
      echo "* 1. Reset PCIE hide list and DOM      *"
      echo "* 2. Show PCIE variable list           *"
      echo "* 3. Set pci devices                   *"
      echo "* Any other key to exit                *"
      echo "****************************************"
      
      read -n 1 -p  "Please make a selection: " menuChoice;
      
      case $menuChoice in
       1 ) resetDOMPCIE;;
       2 ) confirmPCIList;;
       3 ) setPCIE ;;
       4 ) echo "" ;;
       * ) clear ; exit ;;
      esac
      
      
      posted in Compute
      marcoiM
      marcoi
    • RE: XO (self build) tasks spamming

      looks good
      Xen Orchestra, commit 384bb
      Master, commit 384bb

      thanks for quick fix

      posted in Management
      marcoiM
      marcoi
    • RE: PCI device doesn't show in XO or xe pci-list

      @olivierlambert

      xe vm-param-set other-config:pci=0/0000:c6:00.0 uuid=45d0f537-9076-b395-1fbd-850d2cc0cf68

      This command worked. I was able to pass through the usb and also pcie devices i can get to using XO.

      3555b351-e13d-478d-9df4-7bbcb1643909-image.png

      windows host showing usb drive plugged into usb3 card and graphics card.

      b6f55d15-9e66-4606-8a37-7593e3068d3a-image.png

      posted in Compute
      marcoiM
      marcoi
    • RE: PCI device doesn't show in XO or xe pci-list

      @olivierlambert to confirm the steps
      i can skip this step since it isnt showing up anyways

      • xe pci-disable-dom0-access uuid=<pci uuid>

      then use

      • xe vm-param-set other-config:pci=0/0000:04:01.0 uuid=<vm uuid> to add it to vm
      posted in Compute
      marcoiM
      marcoi
    • RE: PCI device doesn't show in XO or xe pci-list

      @olivierlambert thanks for the update.
      and just to confirm, if a device is not showing up in xe list with uuid, there is no way to pass it to a VM correct?

      posted in Compute
      marcoiM
      marcoi
    • RE: PCI device doesn't show in XO or xe pci-list

      @andriy.sultanov is there a way to allow all devices (even if we blow up the system lol)

      For example in the docs there a usb filter list you can edit
      /etc/xensource/usb-policy.conf

      anything similar for pcie? Can something be added with disclaimer you break it on you etc?
      Maybe make it a command line option to disable the pci device filters for users that want to pass through special devices.

      posted in Compute
      marcoiM
      marcoi
    • RE: XO (self build) tasks spamming

      @olivierlambert
      Okay i got it I am running
      Xen Orchestra, commit 09f67
      Master, commit 35428

      I will watch it and see how the tasks issue goes

      Update 2: been about 20 mins and nothing showing up in the task list.

      posted in Management
      marcoiM
      marcoi
    • RE: XO (self build) tasks spamming

      is this in the latest build or do i need to download a separate branch etc? I'm using a script someone made to build my XO so not sure how to do a separate branch but if the change made it into main build i can download an update and test as well.

      posted in Management
      marcoiM
      marcoi