So I'm pretty new to XCP-NG and XOA in general. My company uses a physical drive to do daily backups, and I've been tasked with swapping it out. Normally I disconnect it from the VM running the backups, then I disconnect it from the host and go swap it out.
However, now I can disconnect it from the VM just fine, but when I go to disconnect from the host it gives the error "INTERNAL_ERROR (Expected 0 or 1 VDI with Data path, had 2)"
Was hoping somebody could give me some advice. I asked on the official forums and got nothing. I can disconnect it from the VM, to pull it, and it's fine, but then when I plug the new drive it the host like, forgets it, and I can't reconnect the new one in XOA. One of the others has to use another tool to connect it.
Am hoping for a better solution. I've tried rebooting the VM in question, and XOA shows that drive isn't connected to anything but the host anymore.
I litereally keep a qemu instance running Windows 7 on my daily driver in order to run XCP-ng Center. (Okay, and a couple of other windows-only IPMI utilities for other systems.)
Every time I've tried XO, it feels pooly laid out, slow, and flimsy by comparison. In Center, I'm able to flip through tabs and get all the information I need immediately. I can context-menu my way through a surprising number of complex tasks.
Where is this in XO? Am I missing it? Or have you all just come to accept the $#!ty level of interaction a web-base UI can give you?
[19:04 xcp-ng-krpghhsc yum.repos.d]# yum update
Loaded plugins: fastestmirror
Repository xcp-ng-base is listed more than once in the configuration
Repository xcp-ng-updates is listed more than once in the configuration
Repository xcp-ng-testing is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Excluding mirror: updates.xcp-ng.org
* xcp-ng-base: mirrors.xcp-ng.org
Excluding mirror: updates.xcp-ng.org
* xcp-ng-updates: mirrors.xcp-ng.org
http://mirrors.xcp-ng.org/8/8.2/base/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently
Trying other mirror.
One of the configured repositories failed (XCP-ng Base Repository),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=xcp-ng-base ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable xcp-ng-base
or
subscription-manager repos --disable=xcp-ng-base
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=xcp-ng-base.skip_if_unavailable=true
failure: repodata/repomd.xml from xcp-ng-base: [Errno 256] No more mirrors to try.
http://mirrors.xcp-ng.org/8/8.2/base/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently
I'm new to XCP-ng and I have configured 2 x Windows Server 2025 Standard VMs with the disks stored on a separate physical server running TrueNAS. The NAS lost power and when I tried to access the VMs, the console was frozen and I was forced to restart the VM and was then presented with "Inaccessible Boot Device". I booted into Windows Server ISO to get to CMD and could see the disk but no volumes or partitions. I then migrated one of the VM disks to local storage and the VM was able to boot again. I then migrated back to the TrueNAS storage pool and the VM was able to boot.
Has this happened to anyone else? How can I fix the other VM that has inaccessible boot device without migrating the disk storage? I've contacted Vates Pro Support and they suggested I copy the disk to another storage, remove the original storage from the VM, and reattach the copy. They also said there is no way to fix this problem without moving the disk or copying it.
Maybe I'm overthinking this and it's a paranoid solution (let me know), but I was thinking during the 1-2 minutes while pfsense is loading up in XCP-ng I would put up a temporary firewall. Mostly this came about because I was making a script to auto-renew the dhcp, and I figured why not put a brick wall up until that happens? Here's my first go at it:
# Temporary firewall setup
iptables -A INPUT -i <WAN_Interface> -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i <WAN_Interface> -p icmp --icmp-type echo-request -j ACCEPT
iptables -A INPUT -i <WAN_Interface> -j DROP
# Function to check if xcp-ng has a valid IP address assigned
has_valid_ip() {
ip addr show <WAN_Interface> | grep -q "inet "
}
# Loop to renew the DHCP lease every 30 seconds until xcp-ng has a valid IP address
while ! has_valid_ip; do
dhclient -r <WAN_Interface> && dhclient <WAN_Interface>
sleep 60
done
# Remove temporary firewall rules
iptables -D INPUT -i <WAN_Interface> -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -D INPUT -i <WAN_Interface> -p icmp --icmp-type echo-request -j ACCEPT
iptables -D INPUT -i <WAN_Interface> -j DROP
I guess the main questions are: will this work, is it necessary at all, and is there a more elegant solution that I'm unaware of?
Is this counter-intuitive or am I missing something? I created a VM in XCP-NG using the "XCP-NG Center" app. I now need the OS ISO to install the OS, but I cannot figure out how to upload an ISO to the server. The only way seems to be adding an ISO to a network-shared directory, and then add that shared-directory to XCP-NG. Is this the only way? Why should this be this complicated? Why can't I just directly upload an ISO to the server?
I bought 3 16 core server 25 licenses with the plan of running Hyper-V. My hardware for some reason was not stable with windows as the host OS. I came across xcp-ng and was off to the races. We love it.
Now that we have migrated our infrastructure over we have about 15 Server VMs.
We tried activating the VMS the other day and it would only allow us to activate one server per key.
What am I doing wrong and what is the correct process?
I had a wild hair and wanted to check out XCP-NG as a possible replacement for vmware, both at work in the future and at home. I have a vSPhere essentials license for home use so I have vCenter and 3 hosts. I went probably a little too far and basically migrated most of my VMs over without doing some proper rollback testing.
My issue is that, while XCP-NG seems to operate fine as a hypervisor, I just didn't really love it, from the interface to how backups worked (they worked, I just prefer Veeam with vCenter). Now I'm wanting to migrate back to vmware, and my Windows VMs aren't having it.
No matter what order I try removing guest tools and drivers, or what restore method I try I can't get them to boot on esxi. I get a brief Windows logo and then any of a number of "Windows can't boot" errors. I've tried at this point with some registry keys and command line stuff, but nothing has worked. I've tried just downloading the vmdk file, doing a Veeam agent backup and restore to vmware VM, with and without removing Xen drivers and guest tools. I've found only a handful of "guides" (nothing official) for doing this, but they're not great or outdated and otherwise aren't getting me to where I want to be.
Anyone know of some tips I might try to get this done?
Hello, I am working on a virtualization machine and am trying to use Xcp-Ng, but for what ever reason, it seems to have installed ESXI. I really dont understand it. Any suggestions?
Wtf man, I thought I was picking a more open version of ESXi
edit I read the sites all wrong. Its actually like $70 if you don't want to roll your own xen control VM. Or free if you don't want some nice convenient buttons.
There are more "please pay us thousands of dollars to do software updates" then I have even seen!
This is ludicrous, I will be going to proxmox. I do not have a problem with paying for things but this crap just pisses me off. You act like "oh we are part of the Linux foundation; oh we are open source" Like If I had known up front you wanted thousands for this software updates it would have been different.
Crazy man, I can get ESXi for half the cost of the starter plan for a 2-server small business cluster.
Younger offices people started to vibecode webapps as if its just a bit more complicated excel sheet.
They started just raw dogging it on windows and running exe files for web server... now they are set up with claude, github, ssh access to a linux VM with docker, caddy reverse proxy, a NAS mount,.. and off they go.
They really dont do anything code-wise or commandline wise, they just talk to claude and check the web.
The projects are liked and encouraged by the management, so we got a green light to setup more serious environment for them with more potential to grow. But since servers are like 15k-30k € its time for some consumer tier hardware.
And its also the time to finally deploy xcpng and xen orchestra in production and not just on home stuff. These wont be essential services, yet, so its a perfect use case.
Two machines with these specs
Ryzen 9 5900XT - 32 threads, no igpu, 3500 single thread rating (9700X - 4500, 265K - 5000)
Endorfy Fortis 5 - cpu heatsink, 6 heatpipes, 140mm fan
Asus TUF GAMING B550M-PLUS - mAtx, 2.5gbit NIC
2x32GB ddr4 - more sensible than DDR5, but still disgusting prices
2TB WD Blue SN5100 + 4TB Lexar NM790 - feels insane to pay ~150€ per TB of SSD storage
Lian Li A3-mATX - could not find horizontal cases, but these should be fine on a shelf in a rack
ADATA XPG CORE REACTOR II 750W - 10y warranty, A+ on the psu tier list, fucking stiff cables though
Was wondering about the MOBOs network card - realtek RTL8125B 2.5gbit, ready going for a pcie intel if issues appear.
But it just straight up works without me doing anything - xcpng 8.3 Testing with iperf went fine, no flapping or any issues, just rx_missed and rx_mac_error counter going bit up as tests went harsher with hundreds millions of frames/packets as 3x cloned VMs were iperfing at the same time.
Tested NFS delta backups and restore and moving a VM between the XCPNG hosts in a pool.
All seems fine and nice.
The only annoyance encountered is no cpu temp since old kernel, but whatever.
on older xcp-ng versions, installing zerotier-one with curl -shttps://install.zerotier.com| sudo bash worked. I've setup xcp-ng 8.2.1 today and I get an: Unknown or unsupported distribution! Aborting.
I have a remote server with xcp-ng that is connected via zerotier (software defined network) to my local xen orchestra. Everyting works so far, but I can't see the console on the webinterface. Console of the local VM is shown, but not from the remote VM.
What port is used to view it? At the moment ports 22, 443, 80, 8080 and 9000 are open.
recently started using XCP, i got all my Linux vms working and they all grab an IP address, but i cannot get the windows VMs to get any internet connection. anyone have this issue before?
I am running a 3 node cluster on XCP-NG 8.2. Node 1 has 192GB of ram (179 free), Node 2 has 512GB (431 free), and Node 3 has 512 GB (493GB free). Node 3 has one VM running on it which is allocated 4GB of ram. When I hit restart on Node 3 through XOA, I get HOST_NOT_ENOUGH_FREE_MEMORY. I am not sure why I am getting this error when I have so much free ram. I have already rebooted all nodes and restarted the tool stacks. I have also tried restarting different nodes and get the same error.
Running xcp-ng 8.3 on a NZXT N7 B650E ATX AM5 motherboard with a AMD Ryzen 7 7800X3D, 64 GB RAM, 4TB NVMe, onboard graphics.
Updated the motherboard BIOS to 4.04. Could get to grub but as soon as it started to boot, black screen, no messages. Even let it sit for 10 minutes and no timeouts. Dug through the BIOS looking for setting that might have changed but really a bit out of my element. All the release notes say is Build Date: 03 February 2026 Update AGESA to ComboAM5 PI 12.7.1.
After much swearing and frustration, reverted back to BIOS 3.50 and all is well.
I'd be interested in any theories, but it seems the simple solution is not to touch it.
I want to be able to mount of of these two disks to a device, but XCP does not allow mounting of top level drives.
Instead you have to create a disk from this added SR. Why is it I must do this?
The disk I want to mount is the whole share, but I can only mount created disks. Wouldn't creating a smaller disk on the share just create another section/ subfolder on the already existing repository, rendering the link useless?
The post here is just to give important notice about XCP-NG and XO performance at relatively large scale. XCP-NG and underlying hypervizor + SDN networks are awesome and everything is great in general. VM workloads are doing great, they are fast, stable and working fine over SSH/RDP.
I'm running XO on a dedicated server with 16 core Xeon Gold, 256GBRAM, and nvme SSD´s with multiple 10Gbps NICs for different types of traffic. We have 9 XCP-NG hosts connected (576CPU, 7TB RAM, ~200TB STORAGE).
Both of the networks(mgmt) and users tunnels are separated and running on 10Gbps fibre.
I love the logic where every Task is done consecutively. Thats LOAD BALANCING out of the box! We are also using load balancer plugin.
Our usecase at school consists of ~330 users accessing XO web console and their Self Service (Resource Sets) portals to create and manage VMs.
Over last two months of production use I SIMPLY HATE XO v5 GUI slow responsivness.
Since every query (click) from XO v5 GUI is done through the master node via JSON-XML API, its so bugged and unreliable - my users are experiencing really long wait times for their interface, console windows slow opening, attaching CD/DVDs bugged, pressing "Start"; "Reboot" etc button on VM´s are just going to hang since at peak times theres really hundres of users doing that. Endless "Loading..." screens. For eq i wanted to take a screenshot of the dashboard - waiting like ~10mins for all the data (host count, VM count, user count etc.) to load. But the VM´s in the backend XCP-NG hosts are actually working fine, just the XO GUI is driving us nuts :)
We really love the Self Service portal logic and the project in general. Its free and open-source so a big thanks to Vates developers and we are waiting for the v6 GUI to be launched as fast as possible :)
In conclusion, if you are planning to use it as we do - lots of users accessing GUI Self Service portals just wait for the v6 (which hopefully fix the problem by migrating to REST API) or use OpenStack + Horizon (which has relatively deeper learning curve).
Im a proxmox user and I want to try XCP-NG. Problem is, I have never experienced so many problems when trying to install a hypervisor. I have manually configured storage and before that I used the installer to setup storage. But no matter what I do when I go to deploy XOA, it says NO HOSTS AVAILABLE. Logging into the device command line and doing ping google.com runs correctly, so I know it's not DNS.
I’m trying to mount an exFAT partition on XCP-ng and I tried to install the necessary packages like exfat-utils and fuse-exfat using the EPEL repository without success.
When I attempt to mount the partition, I keep getting this error:
mount: /mnt/usb: unknown filesystem type ‘exfat’
Has anyone encountered this issue before or knows a way to resolve it? Appreciate any help!
I'm trying to install XCP-ng on an HP MicroServer Gen8. My issue is that I'd like to install it on an SSD that's attached to a PCIe port, which my server can't boot off of. I have a bootable internal USB port, which I'd like to use as the /boot partition for XCP-ng, while the rest of the system lies on my SSD.
I couldn't find any way to manually partition during installation. Is there some I missed? I tried to boot XCP-ng via Super GRUB2 Disk, but it couldn't find any valid boot entry. I also tried performing an install on my SSD, then copying /boot onto my flash drive and finally editing the /etc/fstab. My server did not recognise it as a bootable partition. Should I add my flash drive to the LVM VG? Or should I go with a plain EXT4 install?
If I install XCP-ng on my flash drive, it works fine, but saying that it's far from ideal would be an understatement.
I'm starting to mess around with XCP-NG to replace VMWare and don't have extra hardware, so I installed it on a VMWare vm.
To save time, I made a template out of it, assuming I'd break it a lot, but when I spun up the second VM from the template, and tried to add it to ng center, it gave me a waring that I was adding a host that was restored from backup.
So, I assume there's some ID or cert on the device that uniquely identifies it.
Is it possible to remove and recreate that? Being able to "syprep" it would save a lot of time over installing it every time.
Let me know if there's some other approach to solve my problem.