I deleted backups of VMs I no longer need (Backups > Restore > Delete backups). No problems so far, but when I want to look at the backup data store, I noticed that there are still directory structures left behind that are associated with those deleted backups (though they are empty). It would be nice if those folders were also deleted so that there is less folders to worry about when creating off site backups.
Kajetan321
@Kajetan321
Hello Everyone. I'm just getting started with Xcp-ng. I have some experience in VMware.
Best posts made by Kajetan321
-
Feature Request: Folder structure in data store left behind after backup is deleted
-
RE: Manual Backup (no schedule and no automatic deletion of old backups) Please?
@Forza Actually not all is lost. I have off site backups, so I could restore the backup target remote from it's off site backup.
I'm wondering if I power off XO, then restore the contents of the directory where my backup target remote points to, will XO then be able to see the old backups, before they were wiped? Or, will it be very confused because it's metadata is not stored on the remote but rather on the XO VM.
-
Manual Backup (no schedule and no automatic deletion of old backups) Please?
Hello, so I screwed up. I was playing with backups and I wanted to see if I can do a manual backup (triggered by me, no schedule). Well apparently this is not sported. I realized this after I deleted the schedule and the backup job would not save, saying I need a schedule. So I created a (default) schedule and then disabled it. I then manually triggered the backup to test this approach. Of course the backup went through just fine. Soon after I realized that I messed things up good. The default backup schedule defaults to only retaining one copy. My half a dozen previous backups have now been automatically removed. The problem is I need my first backup in case I want to start over working on my VM. Well, that gone now
I get that I caused this myself. I'm wondering if a function for manually triggered backups without deleting any previous backups can be added.
My use case is as follows. You start working on a new VM, you get the basic setup done. Now I want to be able to get back to this point at any time should the changes I make next not work out so I'd like to trigger a manual backup. Next few weeks are keeping me busy with other work. I finally come back to what I started earlier and continue my configuration. In the next few days I realize that what I have done is not going to work. At this point I would like to simply restore my first backup that already has the basic configuration done and I can go for attempt two.
I guess another way of saying this is I would like to tag certain backups as protected so that they will never be erased automatically to reclaim storage space. Does anyone agree that this would be useful?
Cheers.
-
RE: Issues synchronizing LDAP groups (Active Directory)
@thenorthernlight Thanks! It appears I had two problems with the configuration I posted earlier that were causing the Test plugin to fail:
Use StartTLS should be off
User filter should be (userPrincipalName={{name}})Now onto testing if actual AD logons are working.
Cheers.
Latest posts made by Kajetan321
-
RE: Unable to migrate VM: HANDLE_INVALID(SR, OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394)
Update: I was able to move the VM to a different host that is also xcp-ng 8.2. When I tried moving the VM back to where it came from now I'm getting: NO_HOSTS_AVAILABLE()
vm.migrate { "mapVdisSrs": { "f4d88025-9e26-44a1-8028-4d5d9c11c994 ": "18850841-5eb8-6b28-73ba-cae1c40af157" }, "mapVifsNetworks": { "b56126a8-85ab-80de-9db8-4864ec5618e5 ": "99b40169-8dab-6e9d-db96-23277b405b4a " }, "migrationNetwork": "99b40169-8dab-6e9d-db96-23277b405b4a ", "sr": "18850841-5eb8-6b28-73ba-cae1c40af157", "targetHost": "69c0c257-a547-4d49-8270-b49eafe35c2c", "vm": "78938c32-eb52-491f-1fbf-3ad5d2e374f0" } { "code": "NO_HOSTS_AVAILABLE", "params": [], "task": { "uuid": "4eb56a28-ffa7-cee6-31e1-87209af8de75 ", "name_label": "Async.VM.migrate_send", "name_description": "", "allowed_operations": [], "current_operations": {}, "created": "20250131T20:51:54Z", "finished": "20250131T20:51:54Z", "status": "failure", "resident_on": "OpaqueRef:72cbec6b-d489-49ca-a8a8-e623e3c5f4e4", "progress": 1, "type": "<none/>", "result": "", "error_info": [ "NO_HOSTS_AVAILABLE" ], "other_config": {}, "subtask_of": "OpaqueRef:NULL", "subtasks": [], "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_placement.ml)(line 104))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 1199))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/helpers.ml)(line 1356))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 1191))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 2279))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))" }, "message": "NO_HOSTS_AVAILABLE()", "name": "XapiError", "stack": "XapiError: NO_HOSTS_AVAILABLE() at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_XapiError.mjs:16:12) at default (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_getTaskResult.mjs:13:29) at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1068:24) at file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1102:14 at Array.forEach (<anonymous>) at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1092:12) at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1265:14)" }
I rebooted XO and tried moving the VM to the xcp-ng 8.3 machine again. It looks like the task started but now it's hung at "Connection to VM console (on xcp-m83) 0%" and I can't "Cancel" or "Destroy" the task
-
Unable to migrate VM: HANDLE_INVALID(SR, OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394)
I'm trying to migrate a powered off VM from one host to another and when I try to migrate I get the error below:
The source host is xcp-ng 8.2 and the destination host is xcp-ng 8.3
vm.migrate { "vm": "78938c32-eb52-491f-1fbf-3ad5d2e374f0", "mapVifsNetworks": { "b56126a8-85ab-80de-9db8-4864ec5618e5 ": "99b40169-8dab-6e9d-db96-23277b405b4a " }, "migrationNetwork": "99b40169-8dab-6e9d-db96-23277b405b4a ", "sr": "18850841-5eb8-6b28-73ba-cae1c40af157", "targetHost": "69c0c257-a547-4d49-8270-b49eafe35c2c" } { "code": "HANDLE_INVALID", "params": [ "SR", "OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394 " ], "task": { "uuid": "b0365bf6-8275-0194-fa8d-463cd966463c ", "name_label": "Async.VM.migrate_send", "name_description": "", "allowed_operations": [], "current_operations": {}, "created": "20250131T19:17:57Z", "finished": "20250131T19:17:58Z", "status": "failure", "resident_on": "OpaqueRef:e3f0dcf1-42a7-4ed2-afed-1d387e305657", "progress": 1, "type": "<none/>", "result": "", "error_info": [ "HANDLE_INVALID", "SR", "OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394 " ], "other_config": {}, "subtask_of": "OpaqueRef:NULL", "subtasks": [], "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vm_migrate.ml)(line 1573))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 131))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 1228))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 2298))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))" }, "message": "HANDLE_INVALID(SR, OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394 )", "name": "XapiError", "stack": "XapiError: HANDLE_INVALID(SR, OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394 ) at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_XapiError.mjs:16:12) at default (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/_getTaskResult.mjs:13:29) at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1068:24) at file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1102:14 at Array.forEach (<anonymous>) at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1092:12) at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202501311655/packages/xen-api/index.mjs:1265:14)" }
I tried to move the VM between hosts using XCP-ng Center and also got an error:
Migrating VM 'IPM-ova on 'xcp-m90t'' to 'xcp-m83 in 'xcp-m83'' Object has been deleted.SR:OpaqueRef:e8fd26cd-3470-4ef8-9738-8c056e034394 Time: 00:00:01 xcp-m83 Jan 31, 2025 2:35 PM Dismiss
I'm able to move other VMs around just fine.
-
What OS is XCP-ng 8.3 based on?
Is XCP-ng 8.3 based on CentOS 8.5 or something else? I'm having problems getting NUT to work and I'd like to try to get it working on the "parent" OS first.
-
block tdc: sector-size: 512/512 capacity: 20938752
I'm getting a lot of this message when examining output of dmesg. Would anyone know what this means?
-
Is Cold Migration of VMs from XCP-ng 8.3 back to 8.2.1 Not Supported?
I’m trying out XCP-ng 8.3. I moved a VM from a host running XCP-ng 8.2.1 to XCP-ng 8.3, that went just fine. Now I powered off the VM and I’m trying to move the VM back to the 8.2.1 host but I’m getting:
VM_HOST_INCOMPATIBLE_VERSION_MIGRATE
Is going back no supported?
-
RE: A task keeps poping up every second or so
@olivierlambert I just noticed this after I tried to export a large VM. The export did not complete, nothing was downloaded. Not sure if that's coincidence.
-
RE: A task keeps poping up every second or so
From source. Master, commit 636c8. As far as I know I don't have any scripts going.
-
A task keeps poping up every second or so
I just noticed that about every second there is a new task popping up in the task pane and the number of items keeps increasing. Please see screen shot. Is this normal? This happens even right after rebooting xo. Is this just normal operation or is something stuck?
-
CPU Provisioning
I have a host with 36 physical cores. On this system there will be two VMs running. Sometimes they will run one at a time, other times they will both be running simultaneously. Should I assign all 36 cores to both VMs so that each VM has access to all the cores when running on its own or will that cause horrible inefficiencies when both VMs are running and it’s better to assign 18 cores to each VM? The load will scale to as many cores as are available. Both VMs are running Windows. If I assign 18 cores to the VM and the VM is running on its own will this mean half of the CPU will be idle?
What about memory, can I over provision memory (assign the total amount of RAM to each VM) or is that no longer supported.
Any insight is appreciated.