XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    • Profile
    • Following 0
    • Followers 0
    • Topics 24
    • Posts 166
    • Groups 0
    A Offline
    1. Home
    2. abudef

    abudef

    @abudef

    46
    Reputation
    16
    Profile views
    166
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    abudef Unfollow Follow
    • RE: XCP-ng Windows PV tools announcements

      I was thinking more of updating the entire set of the agent and drivers, similar to how XenServer VM Tools for Windows have it implemented. Using a scheduled job, they regularly check whether an update is available, and if so, they carry out the update of both the agent and the drivers themselves.

      posted in News
      A
      abudef
    • RE: Problem with importing large VMDK disks

      @olivierlambert Thanks for the good news!

      I've used VMware for years. ESXi as a server hypervisor and VMware Workstation Pro on the desktop. Even for some labs and test environments I got by with the free version of ESXi with limited APIs. The new licensing policy does not suit me and my companions at all and as a bonus Broadcom has cut the free version of ESXi. Bravo! I think Broadcom should get the award for best marketing of XCP-ng, H-V, Citrix etc. for 2024 πŸ™‚

      On desktops, I need to keep VMware Workstation Pro for many reasons. That's why I was impressed by the videos @lawrencesystems made about XCP-ng & Xen Orchestra. The capabilities that are close to vSphere and vCentre, the ability to import and export VMDK so easily through XO blew me away. And to top it all off, transferring VMDK disks through XO works noticeably faster than migrating VMs between VMw WS and ESXi!

      posted in Xen Orchestra
      A
      abudef
    • RE: XCP-ng Windows PV tools announcements

      @dinhngtu said in XCP-ng Windows PV tools announcements:

      @abudef Got it, the agent was not changed since the last version so the build number was not bumped. I'll keep that in mind for the next release.

      πŸ‘Œ
      e9ef55bc-1a55-4dd6-9576-d20e105472e3-image.png

      posted in News
      A
      abudef
    • RE: Attach PCIs - Not enough permissions

      Great, it's working fine now πŸ‘Œ

      posted in Xen Orchestra
      A
      abudef
    • RE: Problem with importing large VMDK disks

      To conclude this: @florent and I discussed the issue in a private conversation. I provided the vmdk file that was causing the problem. It turned out that the problem was caused by the vmdk thin file from VMware Workstation Pro, which has a slightly different structure than the vmdk files on ESXi hypervisors. Currently XO imports these files fine and the problem can be considered solved. Thank you very much @florent for your cooperation and help.

      posted in Xen Orchestra
      A
      abudef
    • RE: XO - enable PCI devices for pass-through - should it work already or not yet?

      That's exactly it, thank you πŸ‘Œ πŸ˜‰

      1533660b-c0eb-45b1-b81c-ae50d03a4f36-image.png

      posted in Xen Orchestra
      A
      abudef
    • RE: XCP-ng host - Power management

      @tjkreidl We don't need performance, but we do need to test how XCP-ng pools, networking, migration, live migration, backup, import from VMware and so on work. It's just a playground where we can have relatively many XCP-ng hosts, but it's not about performance, it's about efficiency and low requirements, because it's just a playground where we learn, validate how things work, and prepare the process for the final migration from VMware to XCP-ng. We originally had two R630s ready for this, then 4, but that would have been unnecessary, given the power consumption, to have physical hypervisors, so in the end we decided to virtualize it all. Well, on ESXi it's because XCP-ng works seamlessly there in nested virtualization.

      posted in XCP-ng
      A
      abudef
    • RE: "Hardware-assisted virtualization is not enabled on this host" even though platform:exp-nested-hvm=true is set

      @stormi That's not quite what I meant. The point is that if the host is 8.3/4.17, then virtualization is not working on its guest and therefore no other nested guest can be started on this guest. And actually, yes, if 8.3/4.17 appears somewhere in the cascade of nested hosts, then nested virtualization will no longer work on its guest.

      posted in XCP-ng
      A
      abudef
    • RE: "Hardware-assisted virtualization is not enabled on this host" even though platform:exp-nested-hvm=true is set

      But I have a suspicion that it hasn't worked since the last or second to last batch of updates for XCP-ng, that it worked before.

      posted in XCP-ng
      A
      abudef
    • "Hardware-assisted virtualization is not enabled on this host" even though platform:exp-nested-hvm=true is set

      Hello,
      on XCP-ng host v. 8.3 (latest updates), I created an XCP-ng 8.3 virtual machine using the CentOS 7 template and enabled Nested virtualization. However, XO shows a "Hardware-assisted virtualization is not enabled on this host" alert and the nested virtual machine cannot be started on the virtualized host.

      89a9c926-0a02-4c37-ae44-a3e542a5a9c9-obrazek.png

      4a84c6a9-c2b8-4020-a360-220987f98308-obrazek.png

      vm.start
      {
        "id": "b2b6c96b-f6c8-a99c-5e72-d6cd1b123022",
        "bypassMacAddressesCheck": false,
        "force": false
      }
      {
        "errors": [
          "xcp-ng-brxbamkk: VM_HVM_REQUIRED(OpaqueRef:e0855019-e6dd-595d-648c-62872961b97f)"
        ],
        "code": "NO_HOSTS_AVAILABLE",
        "params": [],
        "message": "NO_HOSTS_AVAILABLE()",
        "name": "Error",
        "stack": "Error: NO_HOSTS_AVAILABLE()
          at Xapi._startVm (file:///opt/xo/xo-builds/xen-orchestra-202404302058/packages/xo-server/src/xapi/index.mjs:909:11)
          at Xapi.startVm (file:///opt/xo/xo-builds/xen-orchestra-202404302058/packages/xo-server/src/xapi/index.mjs:948:7)
          at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202404302058/packages/xo-server/src/xo-mixins/api.mjs:366:20)"
      }
      
      posted in XCP-ng
      A
      abudef
    • RE: Error: Can't init vhd directory without using alias

      @pierrebrunet Tested and working again, thanks β™₯

      posted in Backup
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk

      @Emmanuel-V In my opinion, it would make more sense if a standalone disk exported in VMDK format were exported directly as monolithicSparse, so that it would not need to be converted. This makes more sense to me because when only the disk is exported, rather than the entire VM (OVA), it can be assumed that the disk will be attached directly to some VM.

      posted in Xen Orchestra
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk

      So in the end, I think the best approach is to export the VHD and convert it, because the conversion has to be done anyway, and the native VHD export is faster.

      posted in Xen Orchestra
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk

      Ah, I see it now. What XO exports is the streamOptimized format, which is used in OVAs for transfer. Such a standalone VMDK cannot be used directly and needs to be converted for both VMware Workstation and ESXi 🀦 , or you can use the OVA import, which performs the conversion automatically.

      So before such a VMDK can be attached to a VMware VM, it needs to be converted to monolithicSparse e.g.:

      qemu-img.exe convert -p -f vmdk -O vmdk -o subformat=monolithicSparse WS25.vmdk WS25-2.vmdk
      
      posted in Xen Orchestra
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk

      IΒ΄m not a developer so I asked Ai what it "thinks" about it...

      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚  XCP-ng VDI β”‚
      β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
             β”‚
             β”‚ VDI_exportContent()
             β”‚ format = VDI_FORMAT_VHD
             β–Ό
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚    VHD stream    β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
               β”‚ vhdToVMDK()
               β–Ό
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚  vhdToVMDKIterator()    β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
                  β”‚ parseVhdToBlocks()
                  β–Ό
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚    parseVhdStream()     β”‚
      β”‚                         β”‚
      β”‚    VHD blocks           β”‚
      β”‚    { id, data }         β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
                  β”‚ onlyBlocks()
                  β”‚
                  β”‚ lba = id * blockSize
                  β–Ό
      ══════════════════════════════════════════
           POSSIBLE ERROR HERE
           Incorrect mapping of id ↔ data
           or incorrect block ordering
      ══════════════════════════════════════════
                  β”‚
                  β–Ό
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚   generateVmdkData()    β”‚
      β”‚                         β”‚
      β”‚   VHD block             β”‚
      β”‚      ↓                  β”‚
      β”‚   grainData             β”‚
      β”‚      ↓                  β”‚
      β”‚   createMarkedGrain()   β”‚
      β”‚      ↓                  β”‚
      β”‚   tableBuffer           β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
                  β–Ό
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚   VMDK stream    β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
               β–Ό
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚    VMDK file     β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      
      posted in Xen Orchestra
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk

      I don't think it's a VMware issue. If the XO export created a VMDK with incorrect data block contents, qemu-img check can still complete without reporting any errors. It only means that it did not find any problems with the VMDK structure.

      posted in Xen Orchestra
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk
      qemu-img.exe info Windows Server 2025.vmdk
      image: Windows Server 2025.vmdk
      file format: vmdk
      virtual size: 64G (68719476736 bytes)
      disk size: 64G
      cluster_size: 65536
      Format specific information:
          cid: 2849992906
          parent cid: 4294967295
          create type: streamOptimized
          extents:
              [0]:
                  compressed: true
                  virtual size: 68719476736
                  filename: Windows Server 2025.vmdk
                  cluster size: 65536
                  format:
      
      qemu-img.exe check Windows Server 2025.vmdk
      No errors were found on the image.
      

      It seems that the disk itself is formally OK, but the content is somehow corrupted.

      posted in Xen Orchestra
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk

      2a23be37-665b-4827-896a-a20545061b00-image.jpeg

      posted in Xen Orchestra
      A
      abudef
    • RE: Error: Can't init vhd directory without using alias

      In any case, rolling back XO to an older build helps, so hopefully it will be fixed soon.

      posted in Backup
      A
      abudef
    • RE: VDI export to VMDK results in a corrupted disk

      I tried to export 3 VDIs from 2 different XCP-ng pools. 2 VDIs from Windows Server 2025 VMs and 1 from Windows Server 2022 VM. All 3 VMDKs seem to be corrupted when I try to use them in VMware Workstation.

      I also tried reimporting 1 of the exported VMDKs back into the XCP-ng repository and the VM booted without any issue using the reimported VDI.

      Maybe there is either an issue with this VMDK format in VMware Workstation or the XOΒ΄s export/import method creates VMDK files that can be exported and reimport back into XCP-ng repository while preserving the original state of the VDI in the XCP-ng repository even if itΒ΄s unusable in VMware WS.

      posted in Xen Orchestra
      A
      abudef