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.
-
RE: XCP-ng Windows PV tools announcements
-
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!
-
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.


-
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.
-
RE: XO - enable PCI devices for pass-through - should it work already or not yet?
That's exactly it, thank you


-
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.
-
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.
-
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.
-
"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.

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)" }
-
RE: Error: Can't init vhd directory without using alias
@pierrebrunet Tested and working again, thanks

-
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. -
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.
-
RE: VDI export to VMDK results in a corrupted disk
Ah, I see it now. What XO exports is the
streamOptimizedformat, 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
monolithicSparsee.g.:qemu-img.exe convert -p -f vmdk -O vmdk -o subformat=monolithicSparse WS25.vmdk WS25-2.vmdk -
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 β ββββββββββββββββββββ -
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.
-
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.
-
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.
-
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.
